87,921
社区成员
发帖
与我相关
我的任务
分享
var pageIndex = 2;
var stop = true;
if (allstop == true) {
$(window).scroll(function () {
totalheight = parseFloat($(window).height()) + parseFloat($(window).scrollTop());
if ($(document).height()-240 <= totalheight+250) {
if (stop == true) {
stop = false;
$.post("/images/casesList.aspx", { "pageIndex": pageIndex, "category_id": category_id }, function (txt) {
if (txt != '') {
alert("1111111111111111111");
$("#Loading").before(txt);
pageIndex++;
stop = true;
}
else {
alert("############################3");
$("#Loading").css('background', 'url("/images/bottom.png") no-repeat center');
stop = false;
}
}, "text");
}
}
});
}