ITeye博客

jquery

共 1 篇文章

jquery实例:随页面滚动条滚动而自动加载内容

<script language="javascript"> $(function (){ var i = 4;$(window).bind("scroll", function (event){ //滚动条到网页头部的 高度,兼容ie,ff,chrome var top = document.documentElement.scrollTop + document.body.scrollTop; //网页的高度 var textheight = $(document).height(); // 网页高度-top-当前窗口高度 if (textheight - top - $(window)…

2014-11-05 16:20 · jquery