摘要: 插件官方地址:http://plugins.jquery.com/project/pagination插件js源码代码/** * This jQuery plugin displays pagination links inside the selected elements. * * @author Gabriel Birke (birke *at* d-scribe *dot* de) * @version 1.2 * @param {int} maxentries Number of entries to paginate * @param {Object} opts Several o 阅读全文
posted @ 2013-01-06 15:23 piuba 阅读(1338) 评论(0) 推荐(0) 编辑
摘要: jQuery(window).height()代表了当前可见区域的大小,而jQuery(document).height()则代表了整个文档的高度,可视具体情况使用. 注意当浏览器窗口大小改变时(如最大化或拉大窗口后) jQuery(window).height() 随之改变,但是jQuery(document).height()是不变的。$(document).scrollTop() 获取垂直滚动的距离 即当前滚动的地方的窗口顶端到整个页面顶端的距离$(document).scrollLeft() 这是获取水平滚动条的距离要获取顶端 只需要获取到scrollTop()==0的时候 就是... 阅读全文
posted @ 2013-01-06 10:33 piuba 阅读(43473) 评论(5) 推荐(17) 编辑