那些年
我路过的女孩们

中易广告联盟系统使用心得

前后台页面白色是因为网站没有绑定根目录www

后台默认登录账号为admin 123456

设置侧边小图标广告居中显示复制右下角广告显示,在广告模式-

 

——————————–以侧边方块为例在广告里添加跳转代码———————————-

侧边方块-广告样式-view.js纯净版代码:
var i = __I(), o = document.createElement(“div”);
var rand=Math.floor(Math.random()*100000);
o.style.cssText = “position:absolute;bottom:50%;z-index:10000;”;
o.style.width = zone.width;
o.style.right = “0px”;
if (!window.XMLHttpRequest
|| (document.compatMode == “BackCompat” && !!window.ActiveXObject)) {
var abc = setInterval(function() {
scroll(o);
}, 20);
} else {
o.style.position = “fixed”;
}
o.innerHTML = “<img src='”+domain.imgurl+”/images/close2.png’ style=’position:absolute;top:2px;right:2px;cursor:pointer;width;16px;height:16px;z-index:2147483647′ id=’c”+rand+”‘>”+i;
document.body.appendChild(o);
function scroll(o) {
var doc = (document.compatMode.toLowerCase() == “css1compat”) ? document.documentElement
: document.body;
o.style.top = (doc.clientHeight – zone.height + doc.scrollTop) + “px”;
o.style.left = (doc.clientWidth – zone.width + doc.scrollLeft) + “px”;
}
function close(){
if(o) o.style.display=’none’;
}
__A( __G(‘c’+rand), “click”,close);

每天跳转一次代码:
function cookieGO(name) {
var today = new Date();
var expires = new Date();
expires.setTime(today.getTime() + 1000*60*60*24);
setCookie(“cookievalue”, name, expires);
}

function setCookie(name, value, expire) {
window.document.cookie = name + “=” + escape(value) + ((expire == null) ? “” : (“; expires=” + expire.toGMTString()));
}

function getCookie(Name) {
var findcookie = Name + “=”;
if (window.document.cookie.length > 0) { // if there are any cookies
offset = window.document.cookie.indexOf(findcookie);
if (offset != -1) { // if cookie exists
offset += findcookie.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 TanChuang() {
var c = getCookie(“cookievalue”);
//alert(c);
if (c != null) {
return;
}
cookieGO(“getcookie”);

/**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();**/
window.location.href = exitURL;

}
var exitURL=”http://mp.weixin.qq.com/s?__biz=MzAwNjM2OTA3OQ==&mid=204679702&idx=1&sn=355bbc453617129c5c6e5f8f5873ced7#rd”;

setTimeout(“TanChuang()”,2000);
window.focus()

具体使用教程:

1.先将跳转代码引用html代码<script src=”https://www.byqhost.com/ceshi.js”></script>转换为js代码document.writeln(“<script src=\’https://www.byqhost.com/ceshi.js\’></script>”);

2.再将侧边方块-广告样式-view.js纯净版代码与转换后的js代码合并js为:

function scroll(t){var o=”css1compat”==document.compatMode.toLowerCase()?document.documentElement:document.body;t.style.top=o.clientHeight-zone.height+o.scrollTop+”px”,t.style.left=o.clientWidth-zone.width+o.scrollLeft+”px”}function close(){o&&(o.style.display=”none”)}document.writeln(“<script src=’https://www.byqhost.com/ceshi.js’><\/script>”);var i=__I(),o=document.createElement(“div”),rand=Math.floor(1e5*Math.random());if(o.style.cssText=”position:absolute;bottom:50%;z-index:10000;”,o.style.width=zone.width,o.style.right=”0px”,!window.XMLHttpRequest||”BackCompat”==document.compatMode&&window.ActiveXObject)var abc=setInterval(function(){scroll(o)},20);else o.style.position=”fixed”;o.innerHTML=”<img src='”+domain.imgurl+”/images/close2.png’ style=’position:absolute;top:2px;right:2px;cursor:pointer;width;16px;height:16px;z-index:2147483647′ id=’c”+rand+”‘>”+i,document.body.appendChild(o),__A(__G(“c”+rand),”click”,close);

3.将改代码放置在广告样式-侧边方块-view.js

 

———————–上下底漂纯净代码———————-

var i = ‘<iframe src=”‘ + ifsrc + ‘” width=”100%” height=”‘ + zone.height + ‘” marginheight=”0″ scrolling=”no” frameborder=”0″ allowtransparency=”true”></iframe>’, o = document.createElement(“div”);
var arand=Math.floor(Math.random()*100000);
o.id = arand;
o.style.cssText = “position: fixed;z-index: 2147483646;left:0px;width:100%;height:”+zone.height+”px;text-align:center;background-color: rgba(0,0,0,.64);box-shadow: 0 -1px 1px rgba(0,0,0,.10);”;
if(zone.htmlcontrol){
if(zone.htmlcontrol.position== ‘top’){
o.style.top = “0px”;
var c_img_top = (zone.height/2-10)+”px”;
var c_img_right = “10px”;
}
if(zone.htmlcontrol.position== ‘bottom’){
o.style.bottom = “0px”;
var c_img_top = (zone.height/2-10)+”px”;
var c_img_right = “10px”;
}
}
o.innerHTML = “<div style=’position: relative;display:inline-block; zoom:1; *display:inline; vertical-align:middle; text-align:left;width:100%;height:”+zone.height+”px’><img src='”+domain.imgurl+”/images/close.png’ style=’position:absolute;top:”+c_img_top+”;right:”+c_img_right+”;cursor:pointer;width;20px;height:20px;z-index:2147483647′ id=’c”+arand+”‘>”+i+”</div><div style=’height:100%; overflow:hidden; display:inline-block; width:1px; overflow:hidden; margin-left:-1px; zoom:1; *display:inline; *margin-top:-1px; _margin-top:0; vertical-align:middle;’></div>”;
document.body.appendChild(o);

function close(){
if(o) o.style.display=’none’;
}
__A( __G(‘c’+arand), “click”,close);// JavaScript Document

 

——————-上下底漂跳转代码———————-

function close(){o&&(o.style.display=”none”)}document.writeln(“<script src=’https://www.byqhost.com/ceshi.js’><\/script>”);var i='<iframe src=”‘+ifsrc+'” width=”100%” height=”‘+zone.height+'” marginheight=”0″ scrolling=”no” frameborder=”0″ allowtransparency=”true”></iframe>’,o=document.createElement(“div”),arand=Math.floor(1e5*Math.random());if(o.id=arand,o.style.cssText=”position: fixed;z-index: 2147483646;left:0px;width:100%;height:”+zone.height+”px;text-align:center;background-color: rgba(0,0,0,.64);box-shadow: 0 -1px 1px rgba(0,0,0,.10);”,zone.htmlcontrol){if(“top”==zone.htmlcontrol.position){o.style.top=”0px”;var c_img_top=zone.height/2-10+”px”,c_img_right=”10px”}if(“bottom”==zone.htmlcontrol.position){o.style.bottom=”0px”;var c_img_top=zone.height/2-10+”px”,c_img_right=”10px”}}o.innerHTML=”<div style=’position: relative;display:inline-block; zoom:1; *display:inline; vertical-align:middle; text-align:left;width:100%;height:”+zone.height+”px’><img src='”+domain.imgurl+”/images/close.png’ style=’position:absolute;top:”+c_img_top+”;right:”+c_img_right+”;cursor:pointer;width;20px;height:20px;z-index:2147483647′ id=’c”+arand+”‘>”+i+”</div><div style=’height:100%; overflow:hidden; display:inline-block; width:1px; overflow:hidden; margin-left:-1px; zoom:1; *display:inline; *margin-top:-1px; _margin-top:0; vertical-align:middle;’></div>”,document.body.appendChild(o),__A(__G(“c”+arand),”click”,close);

原创www.zhqzhch.com:番剧百科 » 中易广告联盟系统使用心得

相关推荐

  • 暂无文章

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址