第一个页面打开后60妙自动关闭,打开第二个页面。60妙可以指定
www.csu.com?aps=32  出现60秒自动关闭 弹开第二个页面
www.csu.com?aps=34  出现60秒自动关闭 弹开第三个页面
...............................

解决方案 »

  1.   

    这样?
    <html> <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
    <title>自动定时打开页面 </title> 
    </head> <body> 
    <script language="javascript"> 
    function A() 

       var url = document.getElementById('theUrl').value, pars = document.getElementById('theNumber').value.split(','), i = 0, w = null;
       
       (function(){
    if(w) w.close(), w = null;
    w = window.open(url + '?' + pars[i]);
    i >= pars.length-1 ? i = 0 : i++;
    setTimeout(arguments.callee, 3000); // 3000改成 60000就是一分钟了
    })()
      

    </script> 请输入打广告的地址 <input type="text" id="theUrl"> <br/> 
    自动传递的参数(用,分割) <input type="text" id="theNumber"> <br/> 
    <input type="button" value="自动打广告" onclick="A()" /> 
    </body> </html>
      

  2.   

    的确是高手,我一个晚上没有搞定的问题,居然解决了!!!
    还有一点点小问题,请解决一下,就是时间能否在界面中设置呢?万分感谢!!!<html> <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
    <title>自动定时打开页面 </title> 
    </head> <body> 
    <script language="javascript"> 
    function A() 

       var url = document.getElementById('theUrl').value, pars = document.getElementById('theNumber').value.split(','), i = 0, w = null;
       
       (function(){
                    if(w) w.close(), w = null;
                    w = window.open(url +  pars[i]);
                    i >= pars.length-1 ? i = 0 : i++;
                    setTimeout(arguments.callee, 3000); //时间能否是自己设置的theTime,即能手动设置
        })()
      

    </script> 请输入打广告的地址 <input type="text" id="theUrl"> <br/> 
    自动传递的参数(用,分割) <input type="text" id="theNumber"> <br/> 
    自动跳转的时间<input type="text" value="45000" id="theTime"><br/>
    <input type="button" value="自动打广告" onclick="A()" /> 
    </body> </html>
      

  3.   

    还有一个小问题就是
    theNumber里面如果填写“29,22,39”
    进入页面
    29
    22
    39
    后又回到了29 22 39 能否循环一次就结束呢?多谢了高手!
      

  4.   

    这样吧?
    <html> <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
    <title>自动定时打开页面 </title> 
    </head> <body> 
    <script language="javascript"> 
    function A() 

      var url = document.getElementById('theUrl').value, pars = document.getElementById('theNumber').value.split(','), i = 0, w = null, t = parseInt(document.getElementById('theTime').value); 
      if(t == '') t = 3000; //如果用户输入的时间为空就设置时间默认为3秒
      (function(){ 
                    if(w) w.close(), w = null; 
                    w = window.open(url +  pars[i]); 
                   // i >= pars.length-1 ? i = 0 : i++;
       if(i>=pars.length-1) return//打开最后一页后退出
       else i++;                setTimeout(arguments.callee, t); //时间能否是自己设置的theTime,即能手动设置
        })() 
      

    </script> 请输入打广告的地址 <input type="text" id="theUrl"> <br/> 
    自动传递的参数(用,分割) <input type="text" id="theNumber"> <br/> 
    自动跳转的时间 <input type="text" value="45000" id="theTime"> <br/> 
    <input type="button" value="自动打广告" onclick="A()" /> 
    </body> </html>