这是一段随机页面选择器,但是调试出错,高手帮忙看看! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>选择器</title> <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 Data(); var page =today.getSeconds()%5; window.open(list[page],"Random-Page"); } choices =new urlList("http://www.sina.com.cn", "http://www.yahoo.com.cn", "http://www.sohu.com", "http://www.3721.com", "http://www.17173.com"); </script> </head>
<body onLoad="selectPage(choices);"> <h1><hr>Please Wait...........Select Page</hr></h1> </body> </html>