一个关于JavaScript定时弹出窗口的问题?

来源:百度知道 编辑:UC知道 时间:2024/06/17 16:53:03
<html>
<head>
<meta http="Content-Equiv" content="text/html";charset="gb2312">
<SCRIPT language="JavaScript">
function openwindow(){
window.open("adv.htm","广告窗口","toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=700,heigth=250");
setTimeout('openwindow()',100);
}
</SCRIPT>
<style type="text/css">
body {background-image: url(images/001.jpg);}
</style>
</head>
<body onLoad="openwindow()">
<h2> </h2>
</body>
</html>

这段代买缺了什么?谢谢各位了...

<html>
<head>
<meta http="Content-Equiv" content="text/html";charset="gb2312">
<SCRIPT language="JavaScript">
function openwindow(){

window.open("aaa.htm","广告窗口","toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=700,heigth=250");

}
</SCRIPT>
<style type="text/css">
body {background-image: url(images/001.jpg);}
</style>
</head>
<body onLoad="setInterval('openwindow()',100);">
<h2> </h2>
</body>
</html>

<SCRIPT language="JavaScript">
function openwindow(){
window.open("adv.htm","广告窗口","toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=700,heigth=250");
setTimeout('openwindow()',100);
}