您的位置:首页 > 编程语言

超级24小时弹窗代码 24小时退出弹窗代码 100%弹窗代码(IE only)

2010-06-11 00:00 661 查看
<script language="javascript"> 
<!-- 
function SetCookie(name,value) //两个参数,一个是cookie的名子,一个是值 
{ 
var exp = new Date(); //new Date("December 31, 9998"); 
exp.setTime(exp.getTime() + 60*60*1000); //24小时 Days*24*60*60*1000 
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString(); 
} 
function getCookie(name) //取cookies函数 
{ 
var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); 
if(arr != null) return unescape(arr[2]); return null; 
} 

if (getCookie('ads')!='cc') 
{ 
var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6"; 
var popURL = 'http://www.jb51. net'; //这里修改成你的退弹网址 

function ext() //在关闭IE窗口的时候弹出 
{ 
if(window.event.clientY<132 || altKey) iie.launchURL(popURL); 
} 

function brs() //插入Object 
{ 
document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>"; 
} 

eval("window.attachEvent('onload',brs);"); 
eval("window.attachEvent('onunload',ext);"); 
SetCookie ("ads", "cc") 
} 
//--> 
</script>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: