⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show_ads.js

📁 HTML快速上手:几个典型的HTML实例
💻 JS
📖 第 1 页 / 共 4 页
字号:
function Bb(){var a=Ab.cookie,b=Math.round((new Date).getTime()/1000),c=B.google_analytics_domain_name,d=typeof c=="undefined"?Cb("auto"):Cb(c),e=a.indexOf("__utma="+d+".")>-1,f=a.indexOf("__utmb="+d)>-1,j=a.indexOf("__utmc="+d)>-1,i,l={};if(e){i=a.split("__utma="+d+".")[1].split(";")[0].split(".");l.sid=f&&j?i[3]+"":B&&B.gaGlobal&&B.gaGlobal.sid?B.gaGlobal.sid:b+"";l.vid=i[0]+"."+i[1];l.from_cookie=m}else{l.sid=B&&B.gaGlobal&&B.gaGlobal.sid?B.gaGlobal.sid:b+"";l.vid=B&&B.gaGlobal&&B.gaGlobal.vid?B.gaGlobal.vid:(Db()^Eb()&2147483647)+"."+b;l.from_cookie=g}l.dh=d;l.hid=B&&B.gaGlobal&&B.gaGlobal.hid?B.gaGlobal.hid:Db();return B.gaGlobal=l}function Db(){return Math.round(Math.random()*2147483647)}function Eb(){var a=Ab.cookie?Ab.cookie:"",b=B.history.length,c,d,e=[A.appName,A.version,A.language?A.language:A.browserLanguage,A.platform,A.userAgent,A.javaEnabled()?1:0].join("");if(B.screen)e+=B.screen.width+"x"+B.screen.height+B.screen.colorDepth;else if(B.java){d=java.awt.Toolkit.getDefaultToolkit().getScreenSize();e+=d.screen.width+"x"+d.screen.height}e+=a;e+=Ab.referrer?Ab.referrer:"";c=e.length;for(;b>0;)e+=b--^c++;return Fb(e)}function Fb(a){var b=1,c=0,d,e;if(!(a==undefined||a=="")){b=0;d=a.length-1;for(;d>=0;d--){e=a.charCodeAt(d);b=(b<<6&268435455)+e+(e<<14);c=b&266338304;b=c!=0?b^c>>21:b}}return b}function Cb(a){if(!a||a==""||a=="none")return 1;if("auto"==a){a=Ab.domain;if("www."==a.substring(0,4))a=a.substring(4,a.length)}return Fb(a.toLowerCase())};var C=function(){};C.prototype.va=g;C.prototype.dispose=function(){if(!this.va){this.va=m;this.b()}};C.prototype.b=function(){};var Gb=function(a){if(/^\s*$/.test(a))return g;var b=/\\["\\\/bfnrtu]/g,c=/"[^"\\\n\r\u2028\u2029\x00-\x1f\x7f-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,d=/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,e=/^[\],:{}\s\u2028\u2029]*$/;return e.test(a.replace(b,"@").replace(c,"]").replace(d,""))},Hb=function(a){String(a);if(Gb(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};var D=function(){};D.prototype.serialize=function(a){var b=[];this.ga(a,b);return b.join("")};D.prototype.ga=function(a,b){switch(typeof a){case "string":this.Ia(a,b);break;case "number":this.Db(a,b);break;case "boolean":b.push(a);break;case "undefined":b.push("null");break;case "object":if(a==h){b.push("null");break}if(s(a)=="array"){this.Cb(a,b);break}this.Eb(a,b);break;case "function":break;default:throw Error("Unknown type: "+typeof a);}};var Ib={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},Jb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x80-\uffff]/g:/[\\\"\x00-\x1f\x80-\xff]/g;D.prototype.Ia=function(a,b){b.push('"',a.replace(Jb,function(c){if(c in Ib)return Ib[c];var d=c.charCodeAt(0),e="\\u";if(d<16)e+="000";else if(d<256)e+="00";else if(d<4096)e+="0";return Ib[c]=e+d.toString(16)}),'"')};D.prototype.Db=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")};D.prototype.Cb=function(a,b){var c=a.length;b.push("[");var d="",e=0;for(;e<c;e++){b.push(d);this.ga(a[e],b);d=","}b.push("]")};D.prototype.Eb=function(a,b){b.push("{");var c="";for(var d in a)if(a.hasOwnProperty(d)){var e=a[d];if(typeof e!="function"){b.push(c);this.Ia(d,b);b.push(":");this.ga(e,b);c=","}}b.push("}")};var E="SETUP_ACK",F={},Lb=function(a,b){var c=b||Kb,d=c.length,e="";for(;a-- >0;)e+=c.charAt(Math.floor(Math.random()*d));return e},Kb="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var G=function(){};u(G,C);G.prototype.f=0;var H=function(a){this.a=a;this.Q=[];this.Ob=t(this.Za,this)};u(H,G);H.prototype.f=2;H.prototype.ca=g;H.prototype.Fb=0;H.prototype.connect=function(){if(this.a.s()==0){this.l=this.a.t;this.l.XPC_toOuter=t(this.za,this)}else this.ma()};H.prototype.ma=function(){var a=m;try{if(!this.l)this.l=window.frameElement;if(this.l&&this.l.XPC_toOuter){this.Da=this.l.XPC_toOuter;this.l.XPC_toOuter.XPC_toInner=t(this.za,this);a=g;this.send("tp",E);this.a.m()}}catch(b){}if(a){if(!this.Ma)this.Ma=t(this.ma,this);window.setTimeout(this.Ma,100)}};H.prototype.H=function(a){if(this.a.s()==0&&!this.a.g()&&a==E){this.Da=this.l.XPC_toOuter.XPC_toInner;this.a.m()}else throw Error("Got unexpected transport message.");};H.prototype.za=function(a,b){if(!this.ca&&this.Q.length==0)this.a.j(a,b);else{this.Q.push({serviceName:a,payload:b});if(this.Q.length==1)this.Fb=window.setTimeout(this.Ob,1)}};H.prototype.Za=function(){for(;this.Q.length;){var a=this.Q.shift();this.a.j(a.serviceName,a.payload)}};H.prototype.send=function(a,b){this.ca=m;this.Da(a,b);this.ca=g};H.prototype.b=function(){H.o.b.call(this);this.l=this.Da=h};var I=function(a){this.a=a;this.R=this.a.c.ppu;this.Qb=this.a.c.lpu;this.ea=[]},Mb,Nb;u(I,G);I.prototype.f=4;I.prototype.fa=0;I.prototype.w=g;I.prototype.O=g;var Ob="googlexpc";I.prototype.M=function(){return Ob+"_"+this.a.name+"_msg"};I.prototype.L=function(){return Ob+"_"+this.a.name+"_ack"};I.prototype.connect=function(){if(!this.O){this.Sa();this.O=m}this.Oa()};I.prototype.Sa=function(){var a=this.M();this.D=this.W(a);this.Ba=window.frames[a];a=this.L();this.p=this.W(a);this.U=window.frames[a]};I.prototype.W=function(a){var b=document.createElement("iframe"),c=b.style;c.position="absolute";c.top="-10px";c.left="10px";c.width="1px";c.height="1px";b.name=a;b.id=b.name;b.src=this.R+"#INITIAL";document.body.appendChild(b);return b};I.prototype.nb=function(){this.a.name=Lb(10);this.sa();this.O=g;this.Sb=this.W(Ob+"_reconnect_"+this.a.name)};I.prototype.sb=function(){var a=this.a.h.frames,b=a.length,c=0;for(;c<b;c++){var d;try{if(a[c]&&a[c].name)d=a[c].name}catch(e){}if(!!d){var f=d.split("_");if(f.length==3&&f[0]==Ob&&f[1]=="reconnect"){this.a.name=f[2];this.sa();this.O=g;break}}}};I.prototype.sa=function(){if(this.D){this.D.parentNode.removeChild(this.D);this.Ba=this.D=h}if(this.p){this.p.parentNode.removeChild(this.p);this.U=this.p=h}};I.prototype.Oa=function(){if(this.Aa(this.M())&&this.Aa(this.L())){this.pb=new Pb(this,this.a.h.frames[this.M()],t(this.vb,this));this.ja=new Pb(this,this.a.h.frames[this.L()],t(this.ub,this));this.pa()}else{if(this.a.s()==1&&!this.Sb)this.nb();else this.a.s()==0&&this.sb();window.setTimeout(t(this.connect,this),100)}};I.prototype.Aa=function(a){try{var b=this.a.h.frames[a];if(!b||b.location.href.indexOf(this.Qb)!=0)return g}catch(c){return g}return m};I.prototype.pa=function(){var a=this.a.h.frames;if(a[this.L()]&&a[this.M()]){this.qb=new Qb(this.R,this.Ba);this.T=new Qb(this.R,this.U);window.setTimeout(t(function(){this.qb.send("SETUP");this.w=this.Vb=m},this),100)}else{if(!this.Pa)this.Pa=t(this.pa,this);window.setTimeout(this.Pa,100)}};I.prototype.oa=function(){if(this.Bb&&this.Rb){this.a.m();if(this.K){var a=0,b;for(;a<this.K.length;a++){b=this.K[a];this.a.j(b.service,b.payload)}delete this.K}}};I.prototype.vb=function(a){if(a=="SETUP"){if(!!this.T){this.T.send(E);this.Bb=m;this.oa()}}else if(this.a.g()||this.Bb){var b=a.indexOf("|"),c=a.substring(0,b),d=a.substring(b+1);b=c.indexOf(",");if(b==-1){var e=c;this.T.send("ACK:"+e);this.ta(d)}else{var e=c.substring(0,b);this.T.send("ACK:"+e);var f=c.substring(b+1).split("/");f[0]=parseInt(f[0],10);f[1]=parseInt(f[1],10);if(f[0]==1)this.Ea=[];this.Ea.push(d);if(f[0]==f[1]){this.ta(this.Ea.join(""));delete this.Ea}}}};I.prototype.ub=function(a){if(a==E){this.w=g;this.Rb=m;this.oa()}else if(this.a.g())if(!!this.w){var b=parseInt(a.split(":")[1],10);if(b==this.fa){this.w=g;this.Ha()}}};I.prototype.Ha=function(){if(!(this.w||!this.ea.length)){var a=this.ea.shift();++this.fa;this.qb.send(this.fa+a);this.w=m}};I.prototype.ta=function(a){var b=a.indexOf(":"),c=a.substr(0,b),d=a.substring(b+1);this.a.g()?this.a.j(c,d):(this.K||(this.K=[])).push({service:c,payload:d})};I.prototype.J=3800;I.prototype.send=function(a,b){var c=a+":"+b;if(!w||b.length<=this.J)this.ea.push("|"+c);else{var d=b.length,e=Math.ceil(d/this.J),f=0,j=1;for(;f<d;){this.ea.push(","+j+"/"+e+"|"+c.substr(f,this.J));j++;f+=this.J}}this.Ha()};I.prototype.b=function(){I.o.b.call(this);var a=Rb;Aa(a,this.pb);Aa(a,this.ja);this.pb=this.ja=h;nb(this.D);nb(this.p);this.Ba=this.U=this.D=this.p=h};var Rb=[],Tb=function(){var a=g;try{var b=0,c=Rb.length;for(;b<c;b++)a=a||Rb[b].receive()}catch(d){Rb[b].d.a.rb();if(!Rb.length)return}var e=xa();if(a)Mb=e;var f=e-Mb<1000?10:100;Nb=window.setTimeout(Sb,f)},Sb=t(Tb,I),Ub=function(){Mb=xa();Nb&&window.clearTimeout(Nb);Nb=window.setTimeout(Sb,10)},Qb=function(a,b){this.R=a;this.Ab=b;this.ra=0};Qb.prototype.send=function(a){this.ra=++this.ra%2;var b=this.R+"#"+this.ra+encodeURIComponent(a);try{if(x)this.Ab.location.href=b;else this.Ab.location.replace(b)}catch(c){}Ub()};var Pb=function(a,b,c){this.d=a;this.wb=b;this.Kb=c;this.Xa=this.wb.location.href.split("#")[0]+"#INITIAL";Rb.push(this);Ub()};Pb.prototype.receive=function(){var a=this.wb.location.href;if(a!=this.Xa){this.Xa=a;var b=a.split("#")[1];if(b){b=b.substr(1);this.Kb(decodeURIComponent(b))}return m}else return g};var J=function(a,b){C.call(this);this.ob=b;this.r=[];this.Va(a)};u(J,C);J.prototype.X=h;J.prototype.Y=h;J.prototype.G=function(a){this.X=a};J.prototype.Ka=function(a){this.Y=a};J.prototype.k=function(){if(this.r.length)return this.r.pop();return this.qa()};J.prototype.v=function(a){this.r.length<this.ob?this.r.push(a):this.ua(a)};J.prototype.Va=function(a){if(a>this.ob)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");var b=0;for(;b<a;b++)this.r.push(this.qa())};J.prototype.qa=function(){return this.X?this.X():{}};J.prototype.ua=function(a){if(this.Y)this.Y(a);else if(ra(a.dispose))a.dispose();else for(var b in a)delete a[b]};J.prototype.b=function(){J.o.b.call(this);var a=this.r;for(;a.length;)this.ua(a.pop());delete this.r};var L=function(a,b){this.type=a;this.currentTarget=this.target=b};u(L,C);L.prototype.b=function(){delete this.type;delete this.target;delete this.currentTarget};L.prototype.F=g;L.prototype.da=m;L.prototype.stopPropagation=function(){this.F=m};L.prototype.preventDefault=function(){this.da=g};var M=function(a,b){a&&this.init(a,b)};u(M,L);M.prototype.type=h;M.prototype.target=h;M.prototype.relatedTarget=h;M.prototype.offsetX=0;M.prototype.offsetY=0;M.prototype.clientX=0;M.prototype.clientY=0;M.prototype.screenX=0;M.prototype.screenY=0;M.prototype.button=0;M.prototype.keyCode=0;M.prototype.charCode=0;M.prototype.ctrlKey=g;M.prototype.altKey=g;M.prototype.shiftKey=g;M.prototype.metaKey=g;M.prototype.i=h;M.prototype.init=function(a,b){this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;this.relatedTarget=a.relatedTarget?a.relatedTarget:this.type=="mouseover"?a.fromElement:this.type=="mouseout"?a.toElement:h;this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;this.clientX=typeof a.clientX=="number"?a.clientX:a.pageX;this.clientY=typeof a.clientY=="number"?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(this.type=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.i=a;delete this.da;delete this.F};M.prototype.stopPropagation=function(){this.F=m;if(this.i.stopPropagation)this.i.stopPropagation();else this.i.cancelBubble=m};M.prototype.preventDefault=function(){this.da=g;if(this.i.preventDefault)this.i.preventDefault();else{this.i.returnValue=g;try{this.i.keyCode=-1}catch(a){}}};M.prototype.eb=function(){return this.i};M.prototype.b=function(){M.o.b.call(this);this.i=h};var O=function(){},Vb=0;O.prototype.aa=h;O.prototype.listener=h;O.prototype.proxy=h;O.prototype.src=h;O.prototype.type=h;O.prototype.capture=h;O.prototype.handler=h;O.prototype.key=0;O.prototype.removed=g;O.prototype.na=g;O.prototype.init=function(a,b,c,d,e,f){if(ra(a))this.aa=m;else if(a&&a.handleEvent&&ra(a.handleEvent))this.aa=g;else throw Error("Invalid listener argument");this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.na=g;this.key=++Vb;this.removed=g};O.prototype.handleEvent=function(a){if(this.aa)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};var Wb={},P={},Xb={},Yb=new J(0,600);Yb.G(function(){return{q:0}});Yb.Ka(function(a){a.q=0});var Q=new J(0,600);Q.G(function(){return[]});Q.Ka(function(a){a.length=0;delete a.P;delete a.Ca});var Zb=new J(0,600);Zb.G(function(){var a=function(b){return bc.call(a.src,a.key,b)};return a});var cc=function(){return new O},dc=new J(0,600);dc.G(cc);var ec=function(){return new M},fc=function(){var a=h;if(w){a=new J(0,600);a.G(ec)}return a},gc=fc(),hc="on",ic={},jc=function(a,b,c,d,e){if(b)if(s(b)=="array"){var f=0;for(;f<b.length;f++)jc(a,b[f],c,d,e);return h}else{var j=!!d,i=P;b in i||(i[b]=Yb.k());i=i[b];if(!(j in i)){i[j]=Yb.k();i.q++}i=i[j];var l=va(a),k,o;if(i[l]){k=i[l];var f=0;for(;f<k.length;f++){o=k[f];if(o.listener==c&&o.handler==e){if(o.removed)break;return k[f].key}}}else{i[l]=Q.k();k=i[l];i.q++}var p=Zb.k();p.src=a;o=dc.k();o.init(c,p,a,b,j,e);var q=o.key;p.key=q;k.push(o);Wb[q]=o;Xb[l]||(Xb[l]=Q.k());Xb[l].push(o);if(a.addEventListener){if(a==r||!a.Nb)a.addEventListener(b,p,j)}else a.attachEvent(kc(b),p);return q}else throw Error("Invalid event type");},lc=function(a,b,c,d,e){if(s(b)=="array"){var f=0;for(;f<b.length;f++)lc(a,b[f],c,d,e);return h}var j=!!d,i=mc(a,b,j);if(!i)return g;var f=0;for(;f<i.length;f++)if(i[f].listener==c&&i[f].capture==j&&i[f].handler==e)return nc(i[f].key);return g},nc=function(a){if(!Wb[a])return g;var b=Wb[a];if(b.removed)return g;var c=b.src,d=b.type,e=b.proxy,f=b.capture;if(c.removeEventListener){if(c==r||!c.Nb)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(kc(d),e);var j=va(c),i=P[d][f][j];if(Xb[j]){var l=Xb[j];Aa(l,b);l.length==0&&delete Xb[j]}b.removed=m;i.Ca=m;oc(d,f,j,i);delete Wb[a];return m},oc=function(a,b,c,d){if(!d.P)if(d.Ca){var e=0,f=0;for(;e<d.length;e++)if(d[e].removed)dc.v(d[e]);else{if(e!=f)d[f]=d[e];f++}d.length=f;d.Ca=g;if(f==0){Q.v(d);delete P[a][b][c];P[a][b].q--;if(P[a][b].q==0){Yb.v(P[a][b]);delete P[a][b];P[a].q--}if(P[a].q==0){Yb.v(P[a]);delete P[a]}}}},mc=function(a,b,c){var d=P;if(b in d){d=d[b];if(c in d){d=d[c];var e=va(a);if(d[e])return d[e]}}return h},kc=function(a){if(a in ic)return ic[a];return ic[a]=hc+a},qc=function(a,b,c,d){var e=1,f=P;if(b in f){f=f[b];if(c in f){f=f[c];var j=va(a);if(f[j]){var i=f[j];if(i.P)i.P++;else i.P=1;try{var l=i.length,k=0;for(;k<l;k++){var o=i[k];if(o&&!o.removed)e&=pc(o,d)!==g}}finally{i.P--;oc(b,c,j,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -