想在网吧设置网页广告.

来源:百度知道 编辑:UC知道 时间:2024/05/28 15:38:13
万象收费系统,想在客户机上设置网页广告,就是每打开一个网页就出现一个广告图片,几秒就消失,如何设置的啊?

第一种
<html>baidu.com
<body onload='window.opener=null;setTimeout("window.close()",1000);'>
</body>
</html>

第二种方法让弹出窗口设置n秒后自动转向,
<meta http-equiv="refresh" content="5;url=close.htm">

然后让转向的那个页面自动关闭
<body onLoad="Javascript:window.close()">

哈,比较菜的做法

<SCRIPT LANGUAGE="javascript">
<!--
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no') //这句要写成一行
-->
</SCRIPT>

参数解释:
window.open 弹出新窗口的命令;
'page.html' 弹出窗口的文件名;
'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;
height=100 窗口高度;
widt