开发者

Browsers ScrollEnd Event

Is there is any browser scroll End event in jquery or javascript i need to implement some functionality in jquery whe开发者_StackOverflow社区n user scroll to end it will show another div at the end of the browser scroll end vertically . Thanks


$(function(){
   $(window).scroll(function(){
       if($(document).height()==$(window).scrollTop()+$(window).height()){
           alert('bottom');
           // show something, load content via ajax etc
       }
   });
});

Cheers

G.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜