当滚动条到最底部,自动加载页面,如何实现,类似微博那种 当滚动条到最底部,自动加载页面,如何实现,类似微博那种参考下面网站http://www.dzone.com/links/index.html 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 查看下源文件<script> if(true){ jQuery(function(){ var m = window.location.search.match(/p=(\d+)/); var curPage = m ? parseInt(m[1]) : 1; var loading = false; jQuery("#content").scroll(function(){ if ( curPage >= 1 && !loading && this.scrollHeight - this.scrollTop - this.offsetHeight < this.offsetHeight ) { loading = true; if ((25*curPage) < 79346) { DWRUtil.setValue("scrollStats", 25*(curPage+1) + " of " + 79346); } else { DWRUtil.setValue("scrollStats", 79346); } $("progressIndicator").style.display="block"; jQuery.ajax({ type: "GET", dataType: "html", url: window.location + (window.location.search != '' ? "&" : "?") + "type=html&p=" + ( ++curPage ), success: function( html ){ html = jQuery.trim( html ); if ( html ) { jQuery("#content-inner").append( html ); // } } else curPage = 0; }, complete: function(){ loading = false;// alert(window.location.pathname + (window.location.search != '' ? ""+ window.location.search +"&" : "?") + "p=" + ( curPage )) pageTracker._trackPageview(window.location.pathname + (window.location.search != '' ? ""+ window.location.search +"&" : "?") + "p=" + ( curPage )); _qacct="p-ebK_XdQH1HeLo"; quantserve(); $("progressIndicator").style.display="none"; } }); } }); }); }</script> 当滚动条滚到底部的时候出发一个事件,ajax实现。。 asp.net 在母版页使用jquery的问题 ajax 返回内容中执行 js 无法运行 怎么获取option的值啊? 问大家一个Firefox兼容性问题,求高手赐教啊! 问题简单,但是想弄透彻...望大家来解疑... 在页面通过javascript动态生成的按钮,在打印完后就不能用了。请大家给指导一下。 iframe里的网页,怎么实现控制他的parent网页的滚动条的位置,好像“parent.scrollTop=200”不行 如何实现访问网页后自动更换浏览者桌面? 关于表格的操作!急!!!在线等待... 一简单问题。急! 求一个点击拖动的逻辑 求浮动于网页右下角的播放flv或swf的代码
if(true){
jQuery(function(){
var m = window.location.search.match(/p=(\d+)/);
var curPage = m ? parseInt(m[1]) : 1;
var loading = false; jQuery("#content").scroll(function(){
if ( curPage >= 1 && !loading && this.scrollHeight -
this.scrollTop - this.offsetHeight < this.offsetHeight ) {
loading = true;
if ((25*curPage) < 79346) {
DWRUtil.setValue("scrollStats", 25*(curPage+1) + " of " + 79346);
} else {
DWRUtil.setValue("scrollStats", 79346);
}
$("progressIndicator").style.display="block";
jQuery.ajax({
type: "GET",
dataType: "html",
url: window.location + (window.location.search != '' ? "&" : "?") + "type=html&p=" + ( ++curPage ),
success: function( html ){
html = jQuery.trim( html ); if ( html ) {
jQuery("#content-inner").append( html );
// }
} else
curPage = 0;
},
complete: function(){
loading = false;
// alert(window.location.pathname + (window.location.search != '' ? ""+ window.location.search +"&" : "?") + "p=" + ( curPage ))
pageTracker._trackPageview(window.location.pathname + (window.location.search != '' ? ""+ window.location.search +"&" : "?") + "p=" + ( curPage ));
_qacct="p-ebK_XdQH1HeLo"; quantserve();
$("progressIndicator").style.display="none";
}
});
}
});
});
}
</script>