我想知道如何创建一个在用户滚动时继续加载的网页。这种页面的一个很好的例子是http://mashable.com。
答案 0 :(得分:1)
我认为除了onscroll
事件之外,解决方案还将包含一个动态加载机制(所以我们只需要使用ajax),以下解决方案将非常适合您的任务:
请参阅以下内容:
http://www.webdeveloperplus.com/jquery/create-a-dynamic-scrolling-content-box-using-ajax/
http://www.9lessons.info/2009/07/load-data-while-scroll-with-jquery-php.html
http://asif18.com/4/php/window-on-scroll-load-contents-in-php-mysql-using-jquery-bootstrap/
http://jquery4u.com/tutorials/jquery-infinite-scrolling-demos/
(asp ver。) http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/