color=red>"+(i+1)+" ");
//
else
if(i==0){
//
document.write(" target=\"_self\"
href=\"t20150508_4585216.htm\">"+1+" ");
//
}else
//
document.write(" target=\"_self\"
href=\"t20150508_4585216"+"_"
+
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
=
"t20150508_4585216"+"_"+(_num-1)+"."+"htm";
var
url
=
location.href.substring(0,location.href.lastIndexOf("/")+1);
if(_num<=1||_num==null)
location.href
=
url+"t20150508_4585216"+"."+"htm";
else
if(_num>countPage)
alert("本篇文章最多"+countPage+"页");
else
location.href
=
url+str;
}
声明
来源:互联网
本文地址:http://farm.00-net.com/hq/1/2016-08-10/hq_73241.html