=
5;
//for(var
i=0+(currentPage-1-(currentPage-1)%num)
;
i<=(num+(currentPage-1-(currentPage-1)%num))&&(i
i++){
//
if(currentPage==i)
//
document.write(" color=red>"+(i+1)+" ");
//
else
if(i==0){
//
document.write(" target=\"_self\"
href=\"t20150818_4795391.htm\">"+1+" ");
//
}else
//
document.write(" target=\"_self\"
href=\"t20150818_4795391"+"_"
+
i
+
"."+"htm\">"+(i+1)+" ");
//}
//跳转页面
document.write('转到第 type="text"
id="num"
value='+(currentPage+1)+'
style="width:30px;text-align:center;"
/>页'+' type="submit"
value=" Go "
onClick="javascript:toPage()"
/>');
}
if
(countPage>1){
document.write("
color=\"#CCCCCC\"
style=\"width:550px\"
/>")
}
function
toPage(){
var
_num
=
document.getElementById("num").value;
var
str
=
"t20150818_4795391"+"_"+(_num-1)+"."+"htm";
var
url
=
location.href.substring(0,location.href.lastIndexOf("/")+1);
if(_num<=1||_num==null)
location.href
=
url+"t20150818_4795391"+"."+"htm";
else
if(_num>countPage)
alert("本篇文章最多"+countPage+"页");
else
location.href
=
url+str;
}
声明
来源:互联网
本文地址:http://farm.00-net.com/hq/1/2016-08-10/hq_72749.html