开发者

Onscroll, make a action

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜