日期:2014-05-17  浏览次数:21404 次

求一个页面跳转的程序
<SCRIPT   language=JavaScript>
<!--

   

function   goto()
{
if(parseInt(form3.txtpage.value,10)> 0)
{
form3.action= "newmanage.asp?page= "+parseInt(form3.txtpage.value,10);
form3.submit();
}
else
alert( "您输入有误! ");
}

//-->
</SCRIPT>

<form   name= "form3 "   method= "post "   action= " ">
<table   width= "98% "   border= "0 "   align= "center ">
    <tr>
        <td> <div   align= "center "> <font   size= "-1 "> 共 <%=rscyc.recordcount%> 条 </font> <font   size= "-1 "> &nbsp;&nbsp;当前页 <%=session( "page ")%> /总页数 <font   color= "#FF0000 "> <%=rscyc.pagecount%> </font> &nbsp;&nbsp;
<%if   session( "page ")=1   then%>
  首页
<%else%>
<a   href= "newmanage.asp "> 首页 </a>
  <%end   if%>
  <%if   session( "page ")> 1   then%>
                            <a   href= "newmanage.asp?page=-1 "> 上一页 </a>
                            <%else%>
            上一页
            <%end   if%>
            <%
                      if   cint(session( "page ")) <cint(rscyc.PageCount)     then%>
            <a   href= "newmanage.asp?page=%2B1 "> 下一页 </a>
            <%else%>
            下一页
            <%
end   if
end   if
      %>  
      <%
        if   session( "page ")=rscyc.pagecount   then
      %>
          尾页
    <%else%>
      <a   href= "newmanage.asp?page= <%=rscyc.pagecount%> "> 尾页 </a>
    <%end   if%>
    </font>
            <font   size= "-1 "> 跳至
                                    <input   name= "txtpage "   type= "text "   id= "txtpage "   size= "5 "   onChange= "checkInt() ">
                                    <input   type= "button "     name= "Submit "   value= "go "   onClick= "goto() "   >     </font> </div>

    </tr>                 &n