<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>
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>
评论Feed: http://www.85815.com/feed.asp?q=comment&id=972
引用链接: 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
呵呵,问错了.应该是问,有什么特别的用?