var VAD={debug:false,model:'normal',Channels:[],inti:null,anchor:"__ad__$key__$id",preview:"",second:60,agent:[],$:function(o){return document.getElementById(o);},$N:function(o){return document.getElementsByName(o);},$V:function(i){document.write(i);},adPoint:function(id){VAD.getPosition("ad_"+id);},getPosition:function(obj){var obj=VAD.getObject(obj);this.width=obj.offsetWidth;this.height=obj.offsetHeight;this.top=obj.offsetTop;this.left=obj.offsetLeft;while(obj=obj.offsetParent){this.top+=obj.offsetTop;this.left+=obj.offsetLeft;}},getObject:function(o){if(typeof(o)!="object"){var o=VAD.$(o);};return o;},delObject:function(obj){var obj=VAD.getObject(obj);obj.parentNode.removeChild(obj);},getCookie:function(key){var str="";var arr=document.cookie.replace(/%25/g,"%").replace(/%5F/g,"_").match(new RegExp("(^| )"+key+"=([^;]*)(;|$)"));if(arr!=null){try{str=decodeURIComponent(arr[2]);}catch(e){str=arr[2];}};return str;},setCookie:function(key,value,second,domain){var cookies=key.replace("_","%5F")+"="+encodeURIComponent(value)+"; ";if(second){var dExpire=new Date();dExpire.setTime(dExpire.getTime()+parseInt(second*1000));cookies+="expires="+dExpire.toUTCString()+"; ";};if(domain){cookies+="domain="+domain+"; ";};cookies+="path=/;";document.cookie=cookies;},getDocument:function(){return(document.documentElement&&document.documentElement.clientWidth)?document.documentElement:document.body;},adStart:function(){VAD.domain=VAD.host=location.host;if(VAD.host.indexOf(".")>0){var host=VAD.host.split(".");VAD.domain=host[host.length-2]+"."+host[host.length-1];}},strTrim:function(s){return s.replace(/(^\s*)|(\s*$)/g,"");},addIframe:function(url){VAD.addLoadEvent(function(){var Bodys=document.getElementsByTagName("body").item(0);var ifr=document.createElement("iframe");ifr.style.width="0px";ifr.style.height="0px";ifr.style.border="none";ifr.src=url;Bodys.appendChild(ifr);});},addLoadEvent:function(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}}};VAD.adStart();VAD.adLoad=function(config){this.Key=config["key"];this.Ads=[];VAD.Channels[this.Key]=config;this.adAdd=function(config){if(config["link"]){config["link"]=VAD.API+"?action=click&area="+this.Key+"&id="+config["id"]+"&url="+encodeURIComponent(config["link"])+"&variable="+(this.variable?encodeURIComponent(this.variable):'')+"&source="+encodeURIComponent("http://"+document.domain);};if(config["space"]&&config["space"]>0){var sid="S"+config["id"];var val=VAD.getCookie(sid);var now=(new Date().getTime()/1000/3600);if(config["space"]&&val&&(now-val<=config["space"])){return false;}else{VAD.setCookie(sid,now,(config["space"]*3600),"");}};if(!config["spare"]){if(new Date().getTime()>(config["expire"]*1000)){VAD.addIframe(VAD.API+"?action=expire&id="+config["id"]+"&rnd="+Math.random());}else{VAD.addIframe(VAD.API+"?action=view&id="+config["id"]);}};var len=this.Ads.length;this.Ads["ad_"+config["id"]]=config;this.Ads[len]=this.Ads["ad_"+config["id"]];};this.adHTML=function(ads){var TEMP_IMAGE='$title$';var TEMP_FLASH='';var TEMP_TEXT=''+ads["name"]+'';if(!ads["file"]){return TEMP_TEXT;}else{return(/\.swf$/i.test(ads["file"])==true?TEMP_FLASH:TEMP_IMAGE).replace(/\$src\$/gi,ads["file"]).replace(/\$width\$/gi,ads["width"]).replace(/\$height\$/gi,ads["height"]);}};this.adCreate=function(index){var ads=this.Ads[index];if(ads["form"]){return'';};var channel=VAD.Channels[this.Key];var TEMP_LINK=(channel["tag"]?'<'+channel["tag"]+' class="ad-'+index+'">':'')+(ads["link"]?'$fodder$':'$fodder$')+(channel["tag"]?'':'');TEMP_LINK=TEMP_LINK.replace(/\$key/ig,this.Key).replace(/\$id/ig,ads["id"]);var TEMP_COVER='$fodder$';TEMP_COVER=TEMP_COVER.replace(/\$key/ig,this.Key).replace(/\$id/ig,ads["id"]);var HTML=this.adHTML(ads);HTML=HTML.replace(/\$key/gi,this.Key).replace(/\$id/gi,ads["id"]);if(!ads["link"]){HTML=HTML.replace(/\$fid\$/gi,VAD.anchor);};if(/\.swf$/i.test(ads["file"])==false){return TEMP_LINK.replace(/\$fodder\$/gi,HTML).replace(/\$link\$/gi,ads["link"]).replace(/\$target\$/gi,ads["target"]).replace(/\$style\$/gi,ads["style"]).replace(/\$title\$/gi,ads["name"]).replace(/\$key/gi,this.Key).replace(/\$id/gi,ads["id"]);};var adClcik="";if(ads["link"]){HTML=HTML.replace(/\$script\$/gi,"never");HTML=HTML.replace(/\$net\$/gi,"none");switch(ads["target"]){case"_blank":adClcik='window.open('$link$'); ';break;case"_top":adClcik="top.location.href='$link$'; ";break;default:adClcik="location.href='$link$'; ";break;};HTML=HTML.replace(/\$fid\$/gi,"");HTML='';}else{HTML=HTML.replace(/\$script\$/gi,"always");HTML=HTML.replace(/\$net\$/gi,"all");};HTML=HTML.replace(/\$click\$/gi,adClcik.replace(/\$link\$/gi,ads["link"])).replace(/\$style\$/gi,ads["style"]).replace(/\$title\$/gi,ads["name"]);if(channel["tag"]){HTML='<'+channel["tag"]+' class="ad-'+index+'">'+HTML+'';};return TEMP_COVER.replace(/\$fodder\$/gi,HTML.replace(/'/ig,"'")).replace(/\$key/gi,this.Key).replace(/\$id/gi,ads["id"]).replace(/\$width\$/gi,ads["width"]).replace(/\$height\$/gi,ads["height"]);};this.adMove=function(obj){var _self=this;var inti="";if(obj){obj.style.top=VAD.getDocument().scrollTop+150+"px";inti=window.setTimeout(function(){_self.adMove(obj);},1);}else{clearInterval(inti);}};this.adInsert=function(){var channel=VAD.Channels[this.Key];if(this.Ads.length<1||channel["number"]==0){if(VAD.debug){var str='';for(var i=0;i'+this.Key+' - '+channel["width"]+'*'+channel["height"]+'';if(channel["tag"]){str+='<'+channel["tag"]+' class="ad-'+i+'">'+img+'';}else{str+=img;}};VAD.$V(str);};return;};var str='';var self=this;var doc=VAD.getDocument();switch(VAD.model){case"iframe":if(inArray([3,5,6,8,10,11],channel["show"])){channel["show"]=1;};break;case"single":break;};switch(channel["show"]){case 1:for(var i=0;iscreen.width) return;var adCouplet=[];adCouplet[0]="";adCouplet[1]="";for(var i=0;i0?n=1:n=0;adCouplet[n]=adCouplet[n]+this.adCreate(i);if(i==channel["number"]-1) break;};if(adCouplet[0]){var rnd=Math.random();VAD.$V('
'+adCouplet[0]+'
');if(channel["config"]["SCREEN-ROLL"]=="Y"){this.adMove(VAD.$(rnd));}};if(adCouplet[1]){var rnd=Math.random();VAD.$V('
'+adCouplet[1]+'
');if(channel["config"]["SCREEN-ROLL"]=="Y"){this.adMove(VAD.$(rnd));}};break;case 5:for(var i=0;i';if(i==channel["number"]-1) break;};break;case 8:for(var i=0;i'+this.adCreate(i)+'');(function(){var ad=self.Ads[i];var ADO=VAD.$('slide-ads-'+ad["id"]);var time=500;var h=0;var inter=window.setInterval(function(){if(time>0){time--;h+=15;}else{clearInterval(inter);return;};ADO.style.display="";ADO.style.height=(h>ad["height"]?ad["height"]:h)+"px";if(h>=ad["height"]){clearInterval(inter);return;}},10);window.setTimeout(function(){clearInterval(inter);var N=ad["height"];var inter=window.setInterval(function(){if(N>1){N-=10;N=(N<=1?1:N);ADO.style.height=N+"px";}else{clearInterval(inter);VAD.delObject(ADO);return;}},30);},(1000*ad["time"]));})();if(i==channel["number"]-1) break;};break;case 9:var _files='';var _links='';var _texts='';var _width=channel["width"];var _height=channel["height"];for(var i=0;i';break;case 10:for(var i=0;i';if(channel["config"]["POSITION-Y"]=="top"){BT="";BB+="
";}else{BT=BT+"
";BB="";};if(channel["config"]["SHOW-CLOSE"]!="Y"){BT=BB='';};VAD.$V('
'+BT+this.adCreate(i)+BB+'
');(function(){var ad=self.Ads[i];var ADO=VAD.$('slide-ads-'+ad["id"]);var N=0;var inti=window.setInterval(function(){if(N<100){N+=10;ADO.style.filter="alpha(opacity="+N+");";ADO.style.mozOpacity=(N/100);ADO.style.opacity=(N/100);}else{clearInterval(inti);return;}},50);var inter=window.setInterval(function(){switch(channel["config"]["POSITION-X"]){case"left":ADO.style.left="0px";break;case"center":ADO.style.left=((doc.scrollLeft+doc.offsetWidth-ad["width"])/2)+"px";break;case"right":ADO.style.right="0px";break;};switch(channel["config"]["POSITION-Y"]){case"top":ADO.style.top=doc.scrollTop+"px";break;case"center":ADO.style.top=(doc.scrollTop+(doc.clientHeight-ad["height"])/2)+"px";break;case"bottom":ADO.style.top=(doc.scrollTop+(doc.clientHeight-ad["height"]-(channel["config"]["SHOW-CLOSE"]?16:0)))+"px";break;}},10);if(channel["config"]["SHOW-CLOSE"]!="Y"){window.setTimeout(function(){var N=100;clearInterval(inter);var inter=window.setInterval(function(){if(N>0){N-=15;ADO.style.filter="alpha(opacity="+N+");";ADO.style.mozOpacity=(N/100);ADO.style.opacity=(N/100);}else{VAD.delObject(ADO);clearInterval(inter);return;}},50);},(1000*ad["time"]));}})();if(i==channel["number"]-1) break;};break;case 11:for(var i=0;i'+this.adCreate(i)+'');(function(){var ad=self.Ads[i];var ADO=VAD.$('float-ads-'+ad["id"]);var x=parseInt(Math.random()*doc.offsetWidth)-ad["width"];var y=parseInt(Math.random()*doc.offsetHeight)-ad["height"];var xin=true;var yin=true;var step=1;var delay=1;var obj=ADO;var func=function(){var L=0;var T=doc.scrollTop;var R=doc.clientWidth-ADO.offsetWidth;var B=T+doc.clientHeight-ADO.offsetHeight;ADO.style.left=x+doc.scrollLeft+'px';ADO.style.top=y+doc.scrollTop+'px';x=x+step*(xin?1:-1);if(xR){xin=false;x=R;};y=y+step*(yin?1:-1);if(yB){yin=false;y=B;};ADO.onmouseover=function(){clearInterval(inti)};ADO.onmouseout=function(){inti=setInterval(func,delay);}};var inti=window.setInterval(func,delay);})();};break;};if(str){VAD.$V(str);}}} //nocahce /* 2019-07-06 00:10:30 */ if(typeof VAD == "undefined"){ document.write('adManager Error!'); }else{ VAD.API="http://ad.dedecms.com/adsview/"; var _ad31 = new VAD.adLoad({ "key":"dedeoffrightad", "id":31, "name":"官方首页右侧图片广告-246*60", "show":1, "number":4,"width":246, "height":60, "price":0, "unit":"月", "tag":"li", "config":{}}); _ad31.adAdd({ 'id':50, 'name':'DedeCMS专用主机,一键开通,目录权限一步配置到位', 'file':'http://ad.dedecms.com//files/image/2017/0405/16-07-44-1611721803.gif', 'width':246, 'height':60, 'link':'http://www.dedecms.com/webhost/', 'target':'_blank', 'expire':1585670399, 'view':'', 'click':'', 'form':0, 'style':'', 'spare':0, 'time':'', 'space':''}); _ad31.adAdd({ 'id':48, 'name':'网硕互联优惠乐不停', 'file':'http://ad.dedecms.com//files/image/2017/0405/14-11-29-1512885336.gif', 'width':247, 'height':60, 'link':'https://www.wsisp.net/sale/20170110/?wwwDEDE', 'target':'_blank', 'expire':1609430399, 'view':'', 'click':'', 'form':0, 'style':'', 'spare':0, 'time':'', 'space':''}); /* 匹配2条 */ _ad31.adInsert(); }