开发者

Onscroll, make a action

开发者 https://www.devze.com 2023-03-13 05:16 出处:网络
Is it possible to detect when a user is scrolling on a facebook canvas application (In a iframe). So i can m开发者_高级运维ake an action when the user scrolls down on the page.You can go for the jQuer

Is it possible to detect when a user is scrolling on a facebook canvas application (In a iframe). So i can m开发者_高级运维ake an action when the user scrolls down on the page.


You can go for the jQuery API and try out their scroll() event to detect the mouse scroll...

UPDATE

$(window).load(function(){
    $($('iframe').contents()).scroll(function(){
       alert('frame scrolled in jquery');
    }); 
});


Yes. You can detect it through the event listener "DOMMouseScroll". This page provides a good example of working with it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号