|
<script language="Javascript">
<!--
function SetCookie(name,value) //兩個(gè)參數(shù),一個(gè)是cookie的名子,一個(gè)是值
{
var exp = new Date(); //new Date("December 31, 9998");
exp.setTime(exp.getTime() + 60*60*1000); //24小時(shí) Days*24*60*60*1000
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function getCookie(name) //取cookies函數(shù)
{
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'; //這里修改成你的退彈網(wǎng)址
function ext() //在關(guān)閉IE窗口的時(shí)候彈出
{
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>
JavaScript技術(shù):超級(jí)24小時(shí)彈窗代碼 24小時(shí)退出彈窗代碼 100%彈窗代碼(IE only),轉(zhuǎn)載需保留來源!
鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。