分页时候跳转代码

分页时候跳转代码

分页间隔



<li>

    <font color="#0000FF"><b>   第<input  id="SkipPage" name='SkipPage' onKeyDown='if(event.keyCode==13)event.returnValue=false' onchange="if(/\D/.test(this.value)){alert('请输入需要跳转到的页数并且必须为整 数!');this.value='1';}"
style='width: 20px;text-align:center' type='text' value='1'>页
<input name='submitSkip' type='button' onClick='GoPage("newss/list_10.html")' value='转到'></b></font>

</li>

<SCRIPT>
function GoPage(Myself)
{
var Lmyself=Myself.replace(".html","")
if (document.getElementById("SkipPage").value == 1)
{window.location.href=Myself;} //绝对路径可自己设置
else{
window.location.href=Lmyself+"_"+document.getElementById("SkipPage").value+".html";
}
}
</SCRIPT>






webform
桂ICP备16004754号