我想在完全向下滚动时向页面添加一些功能。 任何人都可以告诉是否有任何方法来查找页面是否完全使用Jquery向下滚动?使用Jquery进行页面滚动
1
A
回答
1
试试这个。
$(window).scroll(function(){
if(($(document).height() - $(document).scrollTop()) == $(window).height()){
//Scroll reached at the bottom
}
});
1
jQuery Waypoints是这份工作的合适工具。有几个演示突出了Waypoint使用的事件驱动模型。
0
对于滚动映射,你可以使用这个;
$(window).scroll(function() {
var scrollVal = $(this).scrollTop();
//console.log(scrollVal);
if (scrollVal > 0 && scrollVal < 100){
//code
}else if (scrollVal > 100 && scrollVal < 200) {
//code
}else{ //bigger than 200px
//code
}
});
相关问题
- 1. asp.net页面进行滚动
- 2. iOS禁用页面使用溢出滚动进行滚动:touch
- 3. 使用jQuery滚动页面,使用div
- 4. 使用鼠标滚轮和滚动条进行平滑垂直页面滚动
- 5. 使用jquery进行视差滚动
- 6. jQuery模式滚动页面滚动条
- 7. 使用jquery更改页面内容时停止滚动页面
- 8. 页面滚动jquery的
- 9. jquery mobile-页面不滚动
- 10. 停止页面滚动jquery
- 11. jQuery水平页面滚动
- 12. addClass div滚动页面jquery
- 13. jquery在页面上滚动
- 14. 的jQuery在页面滚动
- 15. jQuery iosslider页面滚动
- 16. 使用JQuery进行页面转换?
- 17. 使用JQuery进行页面导航
- 18. 使用JavaScript滚动页面
- 19. 使用JavaScript滚动页面
- 20. 当人们进入页面时,如何进行自动滚动
- 21. 面板进行滚动
- 22. 自动滚动页面在jQuery动画
- 23. 页面滚动发行
- 24. 当用户滚动页面时移动图像(使用jQuery)?
- 25. 滚动页面使用按键不工作使用jQuery?
- 26. topScroll动画阻塞页面滚动jquery
- 27. JQuery页面滚动动画框架
- 28. jQuery移动页面滚动的div
- 29. jquery mousewheel滚动跳动页面
- 30. 滚动页面,平行鼠标滚轮
重复:http://stackoverflow.com/questions/2837741/jquery-detecting-reaching-bottom-of-scroll-doesnt-work-only-detects-the-top 这应该anwser它。 – 2012-02-01 04:36:42