帮忙看看错在那里??
<html ><head>
<script language="javascript">
function urlList(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],"Random-Pages");
}
choice = new urlList("http://www.sina.com.cn","http://www.163.com","http://www.yahoo.com.cn","http://www.china-pub.com","http://www.net130.cn");
</script>
</head>
<body onload="selectPage(choice);">
<h1>
<hr>
Please Wait...Selecting Page
<hr>
</h1>
</body>
</html>
因为你的页面中并不存在相应的框架,你可以这样:window.open(list[page],"_blank");这是指在新窗口中打开. 我试试 可以哦~!谢谢
页:
[1]
