thepage=goto.sendpage.value改为:thepage=document.goto.sendpage.value

解决方案 »

  1.   

    setTimeout  改成   setInterval
      

  2.   

    不行!
    thepage的值是取得出来的,但它就是不执行跳转页面的语句!
    都不知是什么问题
    setInterval也试过了,一样的效果!
      

  3.   

    是不是没取到sendpage的值你把“theaction”alert出来看看是不是你要的url?
      

  4.   

    theaction没错!参数都没错!
    就是执行不了跳转页面那句!
      

  5.   

    setTimeout("window.navigate(theaction)",6000); 改为:document.goto.action="show.asp?id=<%=id%>&page="+thepage
      

  6.   

    1. 
    <script>
    function go()
    {
    var thepage;
    thepage=goto.sendpage.value;
    goto.action="show.asp?id=<%=id%>&page="+thepage;
    }
    </script>or2. <form name=goto method=post action="" onsubmit="return go();">
    <%=cp%><BR>
    <a href=testpage.asp?id=<%=id%>&page=1>first</a><br>
     <a href=testpage.asp?id=<%=id%>&page=<%=cp-1%>>prev</a><br> 
    <a href=testpage.asp?id=<%=id%>&page=<%=cp+1%>>next</a> 
    <a href=testpage.asp?id=<%=id%>&page=<%=totalpage%>>last</a> 
    <input type="text" name="sendpage" size="2" value=<%=cp%>>go to
    </form>
    <script>
    function go()
    {
    var thepage;
    thepage=goto.sendpage.value;
    goto.action="testpage.asp?id=<%=id%>&page="+thepage;
    setTimeout("goto.submit()",1000);
    return false; 
    }
    </script>