<script>
function dd(){
alert('nihao');
window.open("http://www.sina.com.cn")
}
function test(){
setInterval("dd()",3000);
}
</script>
function dd(){
alert('nihao');
window.open("http://www.sina.com.cn")
}
function test(){
setInterval("dd()",3000);
}
</script>
function open_window(){
window.open(url);
setTimeOut("open_window()",3000);//3秒
}
</script>
<body onload="open_window()">
</body>
Line:4
Char:1
Code:0
Error:缺少对象
var d = ["http://www.baidu.com","http://www.sohu.com.cn"];
var t = 3; //三秒var c = 0;
function oP()
{
if(++c > d.length-1)c = 0;
window.open(d[c]);
setTimeout("oP();",t*1000);
}oP();
</script>
<meta http-equiv="refresh" content="3"; url=http://www.163.com" />
过3秒刷向163