DEDECMS用sql标签分页(2)

else {startPage=nowPage+PageNum_3>=PagesLen?PagesLen-PageNum-1: nowPage-PageNum_2+1;var t=startPage+PageNum;endPage=t>PagesLen?PagesLen-1:t}   

for (var i=startPage;i<=endPage;i++){   

if (i==nowPage)strC+='<a href="###" style="color:red;font-weight:700;" onclick="upPage('+i+')">'+(i+1)+'</a> '   

else strC+='<a href="###" onclick="upPage('+i+')">'+(i+1)+'</a> '   

}   

strE=' <a href="###" onclick="upPage('+(PagesLen-1)+')">尾页</a> '   

strE2=nowPage+1+"/"+PagesLen+"页"+" 共"+j+"条"   

document  

getElementById("changpage").innerHTML=strS+strC+strE+strE2   

}   

</script>  

</table>  

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/cf9aab9def8285b6a2af399c65dac3f8.html