setTimeout('xxxx()',5000);
function xxxx() 
{
 self.location = "........";
}

解决方案 »

  1.   

    <html>
    <head>
    <script>
    window.open('test1.php');
    setTimeout('fu1()',3600);
    function fu1(){
       window.location.href='test2.php';
    }
    </script>
    </head>
    <body>
    </body>
    </html>
      

  2.   

    5秒后转向:<meta http-equiv="refresh" content="5 url='b.php'">
    弹出:window.open("c.php");
      

  3.   

    我的意思还不够清楚,再说详细一点:
    在一个网页上有一个链接,比如叫“下载”,点击下载以后,会跳转到另外一个网页A.php,A运行以后,会弹出一个下载窗口B,然后打开另外一个网页C.php,这个时候的问题就是:会留下A.php这个空白网页,所以我想的是要不做一个自动关闭;要不做一个让A自动变C的跳转,就不用另外打开C。不知道怎么处理了,帮帮忙吧。唉,一惨字啊。奉上我的源码,看各位大哥大姐怎么帮我修改一下。
    <?php  echo "<script type=\"text/javascript\">";  
      echo "window.location.href=\"http://www.xxxx.com/cn_gbk/cpm/C.exe\";";
      echo "window.open(\"http://www.xxxx.com/cn_gbk/cpm/B.php\");";
      
      echo "</script>";?>