发现了一段最新的弹窗代码

[ 2006-02-16 06:16:12 | 作者: Admin ] 字号: | |
<script language="Javascript">function getCookie(theName){
theName += "=";
theCookie = document.cookie + ";";
start = theCookie.indexOf(theName);
if (start!=-1){
end = theCookie.indexOf(";",start);
return unescape(theCookie.substring(start + theName.length,end));
}
return false;
}

function setCookie(theName,theValue,theDay){
if ((theName!=null) && (theValue!=null)){
expDay = "Wed, 01 Jan 2020 18:56:35 GMT";
if (theDay!=null){
theDay = eval(theDay);
setDay = new Date();
setDay.setTime(setDay.getTime()+(theDay*1000*60*60*24));
expDay = setDay.toGMTString();
}
document.cookie = theName + "=" + escape(theValue) + ";expires=" + expDay;
return true;
}
return false;
}

function popup_cookie(){
ADPopUpWin = window.open("","popupwindow","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=320,height=280");
ADPopUpWin.blur();
ADPopUpWin.document.clear();
ADPopUpWin.document.open();
ADPopUpWin.document.write('<a href="链接地址" target=_blank><img src="显示图片地址" border=0 onclick="window.close();"></a>');
ADPopUpWin.document.close();
}

if (getCookie("POPUNDERAD_0214")){
if ((getCookie("POPUNDERAD_0214") <= 2)){
tempnum = parseInt(getCookie("POPUNDERAD_0214"));
setCookie("POPUNDERAD_0214",tempnum+1,1);
popup_cookie();
}
} else {
setCookie("POPUNDERAD_0214",1,1);
popup_cookie();
}
</script>
Share
评论Feed 评论Feed: http://www.85815.com/feed.asp?q=comment&id=972
UTF-8 Encoding 引用链接: http://www.85815.com/trackback.asp?id=972&key=
浏览模式: 显示全部 | 评论: 4 | 引用: 0 | 排序 | 浏览: 9674
引用 jesson
[ 2006-02-17 17:21:40 ]
这弹窗有什么用?
引用 Admin
[ 2006-02-21 13:36:24 ]
引用至 jesson
这弹窗有什么用?
晕...弹窗能有什么用哇
引用 jesson
[ 2006-02-21 17:51:38 ]
呵呵,问错了.应该是问,有什么特别的用?
引用 Admin
[ 2006-02-22 02:21:01 ]
引用至 jesson
呵呵,问错了.应该是问,有什么特别的用?
能在maxthon中弹出来,我试了
发表
表情图标
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
UBB代码
转换链接
表情图标
悄悄话
用户名:   密码:   注册?
验证码 * 请输入验证码