我一下的代码无法实现,问题也不懂啥问题
就是希望能够自动更新网页.
大家帮忙下好么?
<html><head><title>123</title>
<script language="javascript">
<!--
function unlist(a,b,c,d,e)
{
this[0]=a;
this[1]=b;
this[2]=c;
this[3]=d;
this[4]=e;
}
function selectpage(list)
{
var today=new Date();
var page=today.getSeconds()%5;
window.open(list[page],"radam - page");
}
choice=new unlist("http://www.hao123.com",
                  "http://www.163.com",
   "http://mail.sohu.com",
   "http://news.ifeng.com",
   "http://www.youease.cc");
-->
</script>
</head><body onload="selectpage(choice);">
<h1>
<p>please wait....</p>
</h1>
</body>
</html>

解决方案 »

  1.   

    <html><head><title>123</title>
    <style type="text/css">
    <!--
    body{margin:auto;}
    -->
    </style>
    <script type="text/javascript">
    <!--
    function unlist(a,b,c,d,e)
    {
    this[0]=a;
    this[1]=b;
    this[2]=c;
    this[3]=d;
    this[4]=e;
    }
    function selectpage()
    {
    var today=new Date();
    var page=today.getSeconds()%5;
    document.getElementById("if1").src = choice[page];
    }
    choice=new unlist(" http://www.hao123.com",
                      " http://www.163.com",
       " http://mail.sohu.com",
       " http://news.ifeng.com",
       " http://www.youease.cc");
    window.onload=function(){
    selectpage();
      setInterval("selectpage()",900);'时间间隔;'
    }
     //-->
    </script>
    </head><body><iframe id="if1"  name="if1" width="900"  height="500" src="about:blank" align="center">宽高</iframe>
    </body>
    <html> 
    俺解决了,大家可以看下