足球游戏_中国足彩网¥体育资讯$

限量版广告 1个IP一天只弹一次的AD代码
来源:易贤网 阅读:1029 次 日期:2015-04-27 10:49:32
温馨提示:易贤网小编为您整理了“限量版广告 1个IP一天只弹一次的AD代码”,方便广大网友查阅!

---------------------------ad.js-的代码如下:---------------------------------

以下是引用片段:

function setCookie(name, value, expire) {

window.document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));

}

function getCookie(Name) {

var search = Name + "=";

if (window.document.cookie.length > 0) { // if there are any cookies

offset = window.document.cookie.indexOf(search);

if (offset != -1) { // if cookie exists

offset += search.length; // set index of beginning of value

end = window.document.cookie.indexOf(";", offset) // set index of end of cookie value

if (end == -1)

end = window.document.cookie.length;

return unescape(window.document.cookie.substring(offset, end));

}

}

return null;

}

function register(name) {

var today = new Date();

var expires = new Date();

expires.setTime(today.getTime() + 1000*60*60*24);

setCookie("ItDoor", name, expires);

}

var exitURL=http://www.jztop.com/;

function openWin() {

var c = getCookie("ItDoor");

if (c != null) {

return;

}

register("xiaolin");

var featureStr="''";

featureStr="'top=0,left=0,width=800,height=600,toolbar=yes, menubar=no, scrollbars=no, resizable=no, location=no, status=no,center:no'";

self.focus();

var ExitWindow = window.open(exitURL,'', featureStr);

ExitWindow.focus();

}

openWin();

window.focus() ========================完成任务==============

在需要弹出的网页中调用上面的代码:

以下是引用片段:

<Script src="ad.js"></Script>

中国足彩网信息请查看IT技术专栏

中国足彩网信息请查看脚本栏目
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!
关于我们 | 联系我们 | 人才招聘 | 网站声明 | 网站帮助 | 非正式的简要咨询 | 简要咨询须知 | 加入群交流 | 手机站点 | 投诉建议
工业和信息化部备案号:滇ICP备2023014141号-1 足球游戏_中国足彩网¥体育资讯$ 滇公网安备53010202001879号 人力资源服务许可证:(云)人服证字(2023)第0102001523号
云南网警备案专用图标
联系电话:0871-65317125(9:00—18:00) 获取招聘考试信息及咨询关注公众号:hfpxwx
咨询QQ:526150442(9:00—18:00)版权所有:易贤网
云南网警报警专用图标