vbs中的setTimeout问题

来源:百度知道 编辑:UC知道 时间:2024/05/02 22:58:41
在js中有setTimeout,而在vbs中我不知道怎么用.请哪位高手帮我看看,要求用vbs实现下面第二段的功能
我在网上拷了两段代码供大家参考:
<html>
<head>
<script language="VBScript">
setopenwindow=window.open("","new","height=60,width=300,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no")
setopenwindow.document.write("<TITLE>例子</TITLE>")
setopenwindow.document.write("<h1>Hello!</h1>")
</script>
</head>
<body onload=openwin()>
</body>
</html>
________________________________
<html>
<head>
<script language=javascript>
popwin = window.open

("","new","height=60,width=300,toolbar=no,status=no,menubar=no,sc

rollbars=no,resizable=no");
popwin.document.write("<TITLE>例子</TITLE>")
popwin.document.write("<h1>Hello!</h1>&q

<html>
<head>
<script language="VBScript">
dim openwindow
function openwin()
set openwindow=window.open("","new","height=60,width=300,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no")
openwindow.document.write("<TITLE>例子</TITLE>")
openwindow.document.write("<h1>Hello!</h1>")
setTimeout "openwindow.close()",2000
end function
</script>
</head>
<body onload=openwin()>
</body>
</html>