📄 show_ads.js
字号:
(function(){var f=document,j=navigator,l=window;function da(){var b=f.cookie,a=Math.round((new Date).getTime()/1000),c=b.indexOf("__utma=")>-1,e=b.indexOf("__utmb=")>-1,d=b.indexOf("__utmc=")>-1,g,i={};if(c){g=b.split("__utma=")[1].split(";")[0].split(".");i.sid=(!e||!d?a:g[4])+"";i.vid=g[1]+"."+g[2];i.from_cookie=true}else{i.sid=l&&l.gaGlobal&&l.gaGlobal.sid?l.gaGlobal.sid:a+"";i.vid=l&&l.gaGlobal&&l.gaGlobal.vid?l.gaGlobal.vid:(n()^ea())*2147483647+"."+a;i.from_cookie=false}i.hid=l&&l.gaGlobal&&l.gaGlobal.hid?l.gaGlobal.hid:n();l.gaGlobal=i;return i}function n(){return Math.round(Math.random()*2147483647)}function ea(){var b=f.cookie?f.cookie:"",a=l.history.length,c,e,d=[j.appName,j.version,j.language?j.language:j.browserLanguage,j.platform,j.userAgent,j.javaEnabled()?1:0].join("");if(l.screen)d+=l.screen.width+"x"+l.screen.height+l.screen.colorDepth;else if(l.java){e=java.awt.Toolkit.getDefaultToolkit().getScreenSize();d+=e.screen.width+"x"+e.screen.height}d+=b;d+=f.referrer?f.referrer:"";c=d.length;while(a>0)d+=a--^c++;return fa(d)}function fa(b){var a=1,c=0,e,d;if(!(b==undefined||b=="")){a=0;for(e=b.length-1;e>=0;e--){d=b.charCodeAt(e);a=(a<<6&268435455)+d+(d<<14);c=a&266338304;a=c!=0?a^c>>21:a}}return a};var s={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"},u={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(b){return s[b]||u[b]||null};function B(){}B.prototype.c=function(){};B.prototype.e=function(){};B.prototype.o=function(){};var E=null;function G(){this.b=this.m();this.g=false;if(!this.b){this.g=this.i();if(!this.g)E.e("Browser does not allow cookies")}}G.prototype.f="__gads=";G.prototype.d="GoogleAdServingTest=";G.prototype.l=function(){return this.b};G.prototype.setCookieInfo=function(b){this.a=b._cookies_[0];if(this.a!=null){this.b=this.a._value_;this.n()}};G.prototype.k=function(b){var a=(new Date).valueOf(),c=new Date;c.setTime(a+b);return c};G.prototype.j=function(b){if(this.b!=null||!this.g){E.c("Skipping fetch cookie call");return}var a=document.domain,c="http://partner.googleadservices.com/gampad/cookie.js?callback=_GA_googleCookieHelper.setCookieInfo&client="+H(b)+"&domain="+H(a);E.c("Issuing a fetch cookie call with <a href='"+c+"'>"+c+"</a>");document.write("<script src = '"+c+"'><\/script>")};G.prototype.i=function(){document.cookie=this.d+"Good";var b=this.h(this.d),a=b=="Good";if(a){var c=this.k(-1);document.cookie=this.d+"; expires="+c.toGMTString()}return a};G.prototype.m=function(){var b=this.h(this.f);if(b!=null)E.c("Read first party cookie: "+b);else E.e("No first party cookie found");return b};G.prototype.h=function(b){var a=document.cookie,c=a.indexOf(b),e=null;if(c!=-1){var d=c+b.length,g=a.indexOf(";",d);if(g==-1)g=a.length;e=a.substring(d,g)}return e};G.prototype.n=function(){if(this.a==null)E.e("Skipping cookie creation: no cookie info");else if(this.b==null)E.o("Skipping cookie creation: no cookie value");else{var b=new Date;b.setTime(1000*this.a._expires_);var a=this.a._domain_,c=this.f+this.b+"; expires="+b.toGMTString()+"; path="+this.a._path_+"; domain=."+a;document.cookie=c;E.c("Written cookie: "+c)}};window.IDICommon=window.IDICommon||(function(){return{getHash:function(b){var a=b.indexOf("#")+1;return a?b.substr(a):""},htmlEscape:function(b){return/[&<>\"]/.test(b)?b.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,"""):b},makeIframeTag:function(b){var a="<iframe";for(var c in b)a+=" "+c+'="'+IDICommon.htmlEscape(b[c])+'"';return a+"></iframe>"},getIframe:function(b,a){try{return b.frames[a]}catch(c){return null}},makeIframeNode:function(b){var a=document.createElement("iframe");for(var c in b)a.setAttribute(c,b[c]);return a},appendHiddenIframe:function(b,a){setTimeout(function(){document.body.appendChild(IDICommon.makeIframeNode({id:b,name:b,src:a,width:0,height:0,frameBorder:0}))},0)},writeHiddenIframe:function(b,a){document.write(IDICommon.makeIframeTag({id:b,name:b,src:a,width:0,height:0,frameBorder:0}))},splitURIComponent:function(b,a){var c=[],e=b.length,d=0;while(d<e){var g=b.substr(d,a),i=g.length;if(d+i<e)for(var o=1;o<3;++o)if(g.charAt(i-o)=="%")g=g.substr(0,i-=o);c.push(g);d+=i}return c},MAX_URL_LENGTH:4095,IDI_DEFAULT_POLLING_INTERVAL:1000}})();window.IDIHost=window.IDIHost||(function(){var b=window.location.href.replace(/([^:\/])\/.*$/,"$1/robots.txt"),a="",c={},e={},d={},g={},i={};function o(h,k){for(var p in k)h[p]=k[p]}function v(h,k){var p=window.frames[h];if(p){var x;while(x=IDICommon.getIframe(p,h+"_"+c[h])){try{if(x.location.href=="about:blank")break}catch(t){break}d[h]+=IDICommon.getHash(x.location.href);++c[h]}var q=d[h].split("$"),y=q.length-1;if(y>0){d[h]=q[y];for(var z=0;z<y;++z)k(decodeURIComponent(q[z]),h)}}}function r(h){return a||h.replace(/([^:\/]\/).*$/,"$1ig/idi_relay")}function m(h){window.clearInterval(i[h]);i[h]=0}function F(h){b=h}function N(h){a=h}function O(h,k,p){m(h);i[h]=window.setInterval(function(){v(h,k)},typeof p=="object"&&p.pollingInterval||IDICommon.IDI_DEFAULT_POLLING_INTERVAL)}function I(h,k,p){var x;if(typeof p=="object")x=p.moduleRelayUrl;var t=e[h];if(isNaN(t))throw new Error("Invalid module id");else{var q=typeof x=="string"?x:r(g[h]),y=encodeURIComponent(k)+"$",z=IDICommon.MAX_URL_LENGTH-1-q.length,C=IDICommon.splitURIComponent(y,z),P=C.length;for(var w=0;w<P;++w)IDICommon.appendHiddenIframe(h+"_"+(t+w),q+"#"+C[w]);e[h]+=P}}function J(h,k,p,x,t){var q={frameBorder:0,scrolling:"no"},y,z,C,P,w;if(typeof t=="object"){y=t.iframeAttrs;z=t.callback;C=t.userPrefs;P=t.pollingInterval;w=t.parentDivId}if(typeof y=="object")o(q,y);o(q,{id:k,name:k,src:h,width:p,height:x});c[k]=0;e[k]=0;d[k]="";g[k]=h;var Q=[];if(typeof C=="object")for(var D in C)Q.push(encodeURIComponent(D)+"="+encodeURIComponent(C[D]));if(typeof z=="function"){Q.push("idi_hr="+encodeURIComponent(b));window.IDIHost.registerListener(k,z,t)}if(Q.length){var K=Q.join("&");if(q.src.length+1+K.length>IDICommon.MAX_URL_LENGTH){K+="$";var $=r(h),ka=IDICommon.MAX_URL_LENGTH-1-$.length,aa=IDICommon.splitURIComponent(K,ka),ba=aa.length;for(var D=0;D<ba;++D){var U=k+"_"+D,ca=$+"#"+aa[D];if(w){var V=document.getElementById(w);V.innerHTML+=IDICommon.makeIframeTag({id:U,name:U,src:ca,width:0,height:0,frameBorder:0})}else IDICommon.writeHiddenIframe(U,ca)}e[k]+=ba;K=""}q.src+="#"+K}if(w){var V=document.getElementById(w);V.innerHTML+=IDICommon.makeIframeTag(q)}else document.write(IDICommon.makeIframeTag(q))}return{setHostRelayUrl:F,setModuleRelayUrl:N,getModuleRelayUrl:r,registerListener:O,unregisterListener:m,postMessageToModule:I,createModule:J}})();function L(b){return b!=null?'"'+b+'"':'""'}function H(b){return typeof encodeURIComponent=="function"?encodeURIComponent(b):escape(b)}function M(b,a){if(b&&a)window.google_ad_url+="&"+b+"="+a}function R(b){var a=window,c=A(b),e=a[b];M(c,e)}function S(b,a){if(a)M(b,H(a))}function T(b){var a=window,c=A(b),e=a[b];S(c,e)}function W(b,a){var c=window,e=A(b),d=c[b];if(e&&d&&typeof d=="object")d=d[a%d.length];M(e,d)}function ga(b,a){var c=b.screen,e=navigator.javaEnabled(),d=-a.getTimezoneOffset();if(c){M("u_h",c.height);M("u_w",c.width);M("u_ah",c.availHeight);M("u_aw",c.availWidth);M("u_cd",c.colorDepth)}M("u_tz",d);M("u_his",history.length);M("u_java",e);if(navigator.plugins)M("u_nplug",navigator.plugins.length);if(navigator.mimeTypes)M("u_nmime",navigator.mimeTypes.length)}function ha(b){if(!b.google_enable_first_party_cookie)return;if(E==null)E=new B;if(b._GA_googleCookieHelper==null)b._GA_googleCookieHelper=new G;if(!b._google_cookie_fetched){b._google_cookie_fetched=true;b._GA_googleCookieHelper.j(X(b.google_ad_client))}}function X(b){if(b){b=b.toLowerCase();if(b.substring(0,3)!="ca-")b="ca-"+b}return b}function ia(b){if(b){b=b.toLowerCase();if(b.substring(0,9)!="dist-aff-")b="dist-aff-"+b}return b}function ja(b,a){var c=document.getElementById(b);c.style.height=a+"px"}function la(b,a,c){window.clearTimeout(c);var e=/^google_resize_flash_ad_idi\((\d+)\)/,d=b.match(e);if(d)ja(a,d[1])}function ma(b,a,c,e){c=c.substring(0,2000);c=c.replace(/%\w?$/,"");if((b.google_ad_output=="js"||b.google_ad_output=="json_html")&&(b.google_ad_request_done||b.google_radlink_request_done))a.write('<script language="JavaScript1.1" src='+L(c)+"><\/script>");else if(b.google_ad_output=="html"){if(b.name!="google_ads_frame"){if(e!=null)a.write('<div id="'+e+'">');if(na(b.google_ad_output,b.google_ad_client)){IDIHost.setModuleRelayUrl("http://pagead2.googlesyndication.com/pagead/idi_relay.html");var d=0;if(b.google_num_0ad_slots)d+=b.google_num_0ad_slots;if(b.google_num_ad_slots)d+=b.google_num_ad_slots;if(b.google_num_sdo_slots)d+=b.google_num_sdo_slots;var g="google_inline_div"+d,i="<div id="+L(g)+' style="position:relative;width:'+b.google_ad_width+'px"></div><div style="position:relative;width:'+b.google_ad_width+"px;height:"+b.google_ad_height+'px;z-index:-1"></div>';a.write(i);var o="google_frame"+d,v=b.setTimeout(function(){IDIHost.unregisterListener(o)},5000);IDIHost.createModule(c,o,b.google_ad_width,b.google_ad_height,{callback:function(r,m){la(r,m,v)},pollingInterval:500,iframeAttrs:{style:"position: absolute;left:0px",marginWidth:"0",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -