我现在想实现一个功能,当第一个页面打开30秒时,页面自动切换到第二个页面,因为第一个系统介绍,第二页才是想让用户看的东西。如何用定时脚本实现页面定时跳转呢??语言最好是JSP!

解决方案 »

  1.   

    <meta refresh="30"/>  打错了个字母
      

  2.   

    <meta http-equiv="refresh" content="1;url=XX.jsp">1是秒数,需要多久设多久
      

  3.   

    <META HTTP-EQUIV="Refresh" CONTENT="5;URL=转的url">
      

  4.   

    可以用javascript 
      <script   language="javascript">   
      <!--   
      setTimeout("document.location.href='http://www.163.com'",3000);   
      //-->   
      </script>这个也可以:
    <meta   http-equiv="Refresh"   content="xxx;yyy.jsp"/>   
      xxx是秒数   
      xxx秒之后就会跳转到yyy.jsp这两个方法都能实现
      

  5.   

    <body onload = xxx()>
    function xxx(){
        if()
            跳转
    }
      

  6.   

    function ReAutoLoad(){ if(url != null){  
        window.location.href(url);
    }
    }
    setTimeout(ReAutoLoad,30000);
      

  7.   

    function ReAutoLoad(){ if(url != null){  
        window.location.href(url);
    }
    }
    setTimeout(ReAutoLoad,30000);
      

  8.   

    学习了
    <meta http-equiv="refresh" content="1;url=XX.jsp"> 
      

  9.   

    <meta http-equiv="refresh" content="1;url=XX.jsp">