上一页
"); //循环 var num = 4; for(var i=0+(currentPage-1-(currentPage-1)%num) ; i<=(num+(currentPage-1-(currentPage-1)%num))&&(i...
"+""+""); } } else {document.write("下一页
");} //跳转页面 document.write("到第
页
"+ ""); function toPage(){ var _num = document.getElementById("num").value; if(isNaN(_num)){ alert("请输入数字"); return false; } var str = "index"+"_"+(_num-1)+"."+"html"; var url = location.href.substring(0,location.href.lastIndexOf("/")+1); if(_num<=1||_num==null) location.href = url+"index"+"."+"html"; else if(_num>countPage) alert("本频道最多"+countPage+"页"); else location.href = url+str; }