📄 show_ads.js
字号:
(function(){var f=document,j=navigator,m=window;function aa(){var a=f.cookie,c=Math.round((new Date).getTime()/1000),b=m.google_analytics_domain_name,d=typeof b=="undefined"?s("auto"):s(b),e=a.indexOf("__utma="+d+".")>-1,g=a.indexOf("__utmb="+d)>-1,i=a.indexOf("__utmc="+d)>-1,k,n={};if(e){k=a.split("__utma="+d+".")[1].split(";")[0].split(".");n.sid=g&&i?k[3]+"":(m&&m.gaGlobal&&m.gaGlobal.sid?m.gaGlobal.sid:c+"");n.vid=k[0]+"."+k[1];n.from_cookie=true;n.dh=d}else{n.sid=m&&m.gaGlobal&&m.gaGlobal.sid?m.gaGlobal.sid:c+"";n.vid=m&&m.gaGlobal&&m.gaGlobal.vid?m.gaGlobal.vid:(u()^ba())*2147483647+"."+c;n.from_cookie=false}n.hid=m&&m.gaGlobal&&m.gaGlobal.hid?m.gaGlobal.hid:u();m.gaGlobal=n;return n}function u(){return Math.round(Math.random()*2147483647)}function ba(){var a=f.cookie?f.cookie:"",c=m.history.length,b,d,e=[j.appName,j.version,j.language?j.language:j.browserLanguage,j.platform,j.userAgent,j.javaEnabled()?1:0].join("");if(m.screen)e+=m.screen.width+"x"+m.screen.height+m.screen.colorDepth;else if(m.java){d=java.awt.Toolkit.getDefaultToolkit().getScreenSize();e+=d.screen.width+"x"+d.screen.height}e+=a;e+=f.referrer?f.referrer:"";b=e.length;while(c>0)e+=c--^b++;return w(e)}function w(a){var c=1,b=0,d,e;if(!(a==undefined||a=="")){c=0;for(d=a.length-1;d>=0;d--){e=a.charCodeAt(d);c=(c<<6&268435455)+e+(e<<14);b=c&266338304;c=b!=0?c^b>>21:c}}return c}function s(a){if(!a||a==""||a=="none")return 1;if("auto"==a){a=f.domain;if("www."==a.substring(0,4))a=a.substring(4,a.length)}return w(a)};var ga={google_ad_channel:"channel",google_ad_host:"host",google_ad_host_tier_id:"ht_id",google_ad_region:"region",google_ad_section:"region",google_ad_type:"ad_type",google_adtest:"adtest",google_alternate_ad_url:"alternate_ad_url",google_alternate_color:"alt_color",google_bid:"bid",google_city:"gcs",google_color_bg:"color_bg",google_color_border:"color_border",google_color_line:"color_line",google_color_link:"color_link",google_color_text:"color_text",google_color_url:"color_url",google_contents:"contents",google_country:"gl",google_cust_age:"cust_age",google_cust_ch:"cust_ch",google_cust_gender:"cust_gender",google_cust_id:"cust_id",google_cust_interests:"cust_interests",google_cust_job:"cust_job",google_cust_l:"cust_l",google_cust_lh:"cust_lh",google_cust_u_url:"cust_u_url",google_disable_video_autoplay:"disable_video_autoplay",google_ed:"ed",google_encoding:"oe",google_feedback:"feedback_link",google_flash_version:"flash",google_gl:"gl",google_hints:"hints",google_kw:"kw",google_kw_type:"kw_type",google_language:"hl",google_referrer_url:"ref",google_region:"gr",google_reuse_colors:"reuse_colors",google_safe:"adsafe",google_targeting:"targeting",google_ui_features:"ui"},ha={google_ad_format:"format",google_ad_output:"output",google_ad_callback:"callback",google_ad_override:"google_ad_override",google_ad_slot:"slotname",google_analytics_uacct:"ga_wpids",google_correlator:"correlator",google_cpa_choice:"cpa_choice",google_image_size:"image_size",google_last_modified_time:"lmt",google_max_num_ads:"num_ads",google_max_radlink_len:"max_radlink_len",google_num_radlinks:"num_radlinks",google_num_radlinks_per_unit:"num_radlinks_per_unit",google_only_ads_with_video:"only_ads_with_video",google_page_location:"loc",google_page_url:"url",google_rl_dest_url:"rl_dest_url",google_rl_filtering:"rl_filtering",google_rl_mode:"rl_mode",google_rt:"rt",google_skip:"skip"};function A(a){return ga[a]||ha[a]||null};function E(){}E.prototype.c=function(){};E.prototype.e=function(){};E.prototype.o=function(){};var H=null;function I(){this.b=this.m();this.g=false;if(!this.b){this.g=this.i();if(!this.g)H.e("Browser does not allow cookies")}}I.prototype.f="__gads=";I.prototype.d="GoogleAdServingTest=";I.prototype.l=function(){return this.b};I.prototype.setCookieInfo=function(a){this.a=a._cookies_[0];if(this.a!=null){this.b=this.a._value_;this.n()}};I.prototype.k=function(a){var c=(new Date).valueOf(),b=new Date;b.setTime(c+a);return b};I.prototype.j=function(a){if(this.b!=null||!this.g){H.c("Skipping fetch cookie call");return}var c="script",b=document.domain,d="http://partner.googleadservices.com/gampad/cookie.js?callback=_GA_googleCookieHelper.setCookieInfo&client="+J(a)+"&domain="+J(b);H.c("Issuing a fetch cookie call with <a href='"+d+"'>"+d+"</a>");document.write("<"+c+' src="'+d+'"></'+c+">")};I.prototype.i=function(){document.cookie=this.d+"Good";var a=this.h(this.d),c=a=="Good";if(c){var b=this.k(-1);document.cookie=this.d+"; expires="+b.toGMTString()}return c};I.prototype.m=function(){var a=this.h(this.f);if(a!=null)H.c("Read first party cookie: "+a);else H.e("No first party cookie found");return a};I.prototype.h=function(a){var c=document.cookie,b=c.indexOf(a),d=null;if(b!=-1){var e=b+a.length,g=c.indexOf(";",e);if(g==-1)g=c.length;d=c.substring(e,g)}return d};I.prototype.n=function(){if(this.a==null)H.e("Skipping cookie creation: no cookie info");else if(this.b==null)H.o("Skipping cookie creation: no cookie value");else{var a=new Date;a.setTime(1000*this.a._expires_);var c=this.a._domain_,b=this.f+this.b+"; expires="+a.toGMTString()+"; path="+this.a._path_+"; domain=."+c;document.cookie=b;H.c("Written cookie: "+b)}};window.IDICommon=window.IDICommon||(function(){return{getHash:function(a){var c=a.indexOf("#")+1;return c?a.substr(c):""},htmlEscape:function(a){return/[&<>\"]/.test(a)?a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,"""):a},makeIframeTag:function(a){var c="<iframe";for(var b in a)c+=" "+b+'="'+IDICommon.htmlEscape(a[b])+'"';return c+"></iframe>"},getIframe:function(a,c){try{return a.frames[c]}catch(b){return null}},makeIframeNode:function(a){var c=document.createElement("iframe");for(var b in a)c.setAttribute(b,a[b]);return c},appendHiddenIframe:function(a,c){setTimeout(function(){document.body.appendChild(IDICommon.makeIframeNode({id:a,name:a,src:c,width:0,height:0,frameBorder:0}))},0)},writeHiddenIframe:function(a,c){document.write(IDICommon.makeIframeTag({id:a,name:a,src:c,width:0,height:0,frameBorder:0}))},splitURIComponent:function(a,c){var b=[],d=a.length,e=0;while(e<d){var g=a.substr(e,c),i=g.length;if(e+i<d)for(var k=1;k<3;++k)if(g.charAt(i-k)=="%")g=g.substr(0,i-=k);b.push(g);e+=i}return b},MAX_URL_LENGTH:4095,IDI_DEFAULT_POLLING_INTERVAL:1000}})();window.IDIHost=window.IDIHost||(function(){var a=window.location.href.replace(/([^:\/])\/.*$/,"$1/robots.txt"),c="",b={},d={},e={},g={},i={};function k(h,o){for(var q in o)h[q]=o[q]}function n(h,o){var q=window.frames[h];if(q){var B;while(B=IDICommon.getIframe(q,h+"_"+b[h])){try{if(B.location.href=="about:blank")break}catch(v){break}e[h]+=IDICommon.getHash(B.location.href);++b[h]}var t=e[h].split("$"),C=t.length-1;if(C>0){e[h]=t[C];for(var D=0;D<C;++D)o(decodeURIComponent(t[D]),h)}}}function p(h){return c||h.replace(/([^:\/]\/).*$/,"$1ig/idi_relay")}function r(h){window.clearInterval(i[h]);i[h]=0}function l(h){a=h}function x(h){c=h}function y(h,o,q){r(h);i[h]=window.setInterval(function(){n(h,o)},typeof q=="object"&&q.pollingInterval||IDICommon.IDI_DEFAULT_POLLING_INTERVAL)}function O(h,o,q){var B;if(typeof q=="object")B=q.moduleRelayUrl;var v=d[h];if(isNaN(v))throw new Error("Invalid module id");else{var t=typeof B=="string"?B:p(g[h]),C=encodeURIComponent(o)+"$",D=IDICommon.MAX_URL_LENGTH-1-t.length,F=IDICommon.splitURIComponent(C,D),P=F.length;for(var z=0;z<P;++z)IDICommon.appendHiddenIframe(h+"_"+(v+z),t+"#"+F[z]);d[h]+=P}}function K(h,o,q,B,v){var t={frameBorder:0,scrolling:"no"},C,D,F,P,z;if(typeof v=="object"){C=v.iframeAttrs;D=v.callback;F=v.userPrefs;P=v.pollingInterval;z=v.parentDivId}if(typeof C=="object")k(t,C);k(t,{id:o,name:o,src:h,width:q,height:B});b[o]=0;d[o]=0;e[o]="";g[o]=h;var Q=[];if(typeof F=="object")for(var G in F)Q.push(encodeURIComponent(G)+"="+encodeURIComponent(F[G]));if(typeof D=="function"){Q.push("idi_hr="+encodeURIComponent(a));window.IDIHost.registerListener(o,D,v)}if(Q.length){var L=Q.join("&");if(t.src.length+1+L.length>IDICommon.MAX_URL_LENGTH){L+="$";var ca=p(h),ra=IDICommon.MAX_URL_LENGTH-1-ca.length,da=IDICommon.splitURIComponent(L,ra),ea=da.length;for(var G=0;G<ea;++G){var U=o+"_"+G,fa=ca+"#"+da[G];if(z){var V=document.getElementById(z);V.innerHTML+=IDICommon.makeIframeTag({id:U,name:U,src:fa,width:0,height:0,frameBorder:0})}else IDICommon.writeHiddenIframe(U,fa)}d[o]+=ea;L=""}t.src+="#"+L}if(z){var V=document.getElementById(z);V.innerHTML+=IDICommon.makeIframeTag(t)}else document.write(IDICommon.makeIframeTag(t))}return{setHostRelayUrl:l,setModuleRelayUrl:x,getModuleRelayUrl:p,registerListener:y,unregisterListener:r,postMessageToModule:O,createModule:K}})();var ia=ia||{},M=this;if(Object.prototype.propertyIsEnumerable);;;;var ja=function(a,c){var b=c.length;for(var d=0;d<b;d++){var e=b==1?c:c.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a};var ka,la,ma,na,oa,pa,qa,sa,ta,ua,va,wa,xa=function(){var a=false,c=false,b=false,d=false,e=false,g=false,i=false,k=false,n=false,p="";if(M.navigator){var r=M.navigator,l=r.userAgent;a=l.indexOf("Opera")==0;c=!a&&l.indexOf("MSIE")!=-1;b=!a&&l.indexOf("WebKit")!=-1;n=b&&l.indexOf("Mobile")!=-1;d=!a&&!b&&r.product=="Gecko";e=d&&r.vendor=="Camino";var x,y;if(a)x=M.opera.version();else{if(d)y=/rv\:([^\);]+)(\)|;)/;else if(c)y=/MSIE\s+([^\);]+)(\)|;)/;else if(b)y=/WebKit\/(\S+)/;if(y){y.test(l);x=RegExp.$1}}p=r.platform||"";g=p.indexOf("Mac")!=-1;i=p.indexOf("Win")!=-1;k=p.indexOf("Linux")!=-1}ka=a;la=c;ma=d;na=e;oa=b;pa=oa;qa=x;sa=p;ta=g;ua=i;va=k;wa=n};xa();;;;;var ya=function(a){return typeof a=="string"?document.getElementById(a):a},za=ya;var Aa=function(a){return a.nodeType==9?a:a.ownerDocument||a.document};;;var Ba=function(a,c){var b=Aa(a);if(b.defaultView&&b.defaultView.getComputedStyle){var d=b.defaultView.getComputedStyle(a,"");if(d)return d[c]}return null};var Ca=function(a){var c=Aa(a),b="";if(c.createTextRange){var d=c.body.createTextRange();d.moveToElementText(a);b=d.queryCommandValue("FontName")}if(!b){b=Ba(a,"fontFamily")||(a.currentStyle?a.currentStyle.fontFamily:null)||a.style.fontFamily;if(ka&&va)b=b.replace(/ \[[^\]]*\]/,"")}var e=b.split(",");if(e.length>1)b=e[0];return ja(b,"\"'")};function N(a){return a!=null?'"'+a+'"':'""'}function J(a){return typeof encodeURIComponent=="function"?encodeURIComponent(a):escape(a)}function R(a,c){if(a&&c)window.google_ad_url+="&"+a+"="+c}function S(a){var c=window,b=A(a),d=c[a];R(b,d)}function T(a,c){if(c)R(a,J(c))}function W(a){var c=window,b=A(a),d=c[a];T(b,d)}function X(a,c){var b=window,d=A(a),e=b[a];if(d&&e&&typeof e=="object")e=e[c%e.length];R(d,e)}function Da(a,c){var b=a.screen,d=navigator.javaEnabled(),e=-c.getTimezoneOffset();if(b){R("u_h",b.height);R("u_w",b.width);R("u_ah",b.availHeight);R("u_aw",b.availWidth);R("u_cd",b.colorDepth)}R("u_tz",e);R("u_his",history.length);R("u_java",d);if(navigator.plugins)R("u_nplug",navigator.plugins.length);if(navigator.mimeTypes)R("u_nmime",navigator.mimeTypes.length)}function Ea(a){if(!a.google_enable_first_party_cookie)return;if(H==null)H=new E;if(a._GA_googleCookieHelper==null)a._GA_googleCookieHelper=new I;if(!a._google_cookie_fetched){a._google_cookie_fetched=true;a._GA_googleCookieHelper.j(Y(a.google_ad_client))}}function Y(a){if(a){a=a.toLowerCase();if(a.substring(0,3)!="ca-")a="ca-"+a}return a}function Fa(a){if(a){a=a.toLowerCase();if(a.substring(0,9)!="dist-aff-")a="dist-aff-"+a}return a}function Ga(a,c){var b=document.getElementById(a);b.style.height=c+"px"}function Ha(a,c,b){window.clearTimeout(b);var d=/^google_resize_flash_ad_idi\((\d+)\)/,e=a.match(d);if(e)Ga(c,e[1])}function Ia(a,c,b,d){b=b.substring(0,2000);b=b.replace(/%\w?$/,"");var e="script";if((a.google_ad_output=="js"||a.google_ad_output=="json_html")&&(a.google_ad_request_done||a.google_radlink_request_done))c.write("<"+e+' language="JavaScript1.1" src='+N(b)+"></"+e+">");else if(a.google_ad_output=="html"){if(a.name!="google_ads_frame"){if(d!=null)c.write('<div id="'+d+'">');if(Ja(a.google_ad_output,a.google_ad_client)){IDIHost.setModuleRelayUrl("http://pagead2.googlesyndication.com/pagead/idi_relay.html");var g=0;if(a.google_num_0ad_slots)g+=a.google_num_0ad_slots;if(a.google_num_ad_slots)g+=a.google_num_ad_slots;if(a.google_num_sdo_slots)g+=a.google_num_sdo_slots;var i="google_inline_div"+g,k="<div id="+N(i)+' style="position:relative;width:'+a.google_ad_width+'px"></div><div style="position:relative;width:'+a.google_ad_width+"px;height:"+a.google_ad_height+'px;z-index:-1"></div>';c.write(k);var n="google_frame"+g,p=a.setTimeout(function(){IDIHost.unregisterListener(n)},5000);IDIHost.createModule(b,n,a.google_ad_width,a.google_ad_height,{callback:function(r,l){Ha(r,l,p)},pollingInterval:500,iframeAttrs:{style:"position: absolute;left:0px",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -