一个一次弹2个窗口页面的代码

1   
2if session("ad")<>"ad" then   
1<script language="javascript">   
2function ad(){   
3window.open('http://www.nbsky.net','novod','scrollbars=yes,resizable=yes,menubar=yes,toolbar=yes,location=yes,status=yes,width=300,height=260,top=18,left=1');   
4window.open('http://www.8391.com','8391','scrollbars=yes,resizable=yes,menubar=yes,toolbar=yes,location=yes,status=yes,width=290,height=260,top=18,left=320');   
5}   
6setTimeout("ad()",3333);   
7</script>
1   
2session("ad")="ad"   
3end if   

演示地址
http://www.ting2008.com/
记录COOKIE 只弹一次刷新一次后不会在出现弹窗

Published At
Categories with Web编程
Tagged with
comments powered by Disqus