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

📄 expansion_embed.js

📁 If you have not registered, Please [regist first].You should upload at least five sourcecodes/docume
💻 JS
📖 第 1 页 / 共 3 页
字号:
"(service, payload)\nEnd Sub\nPublic Sub CreateChannel(channel)\n Call m_Transport."+lc+"(channel)\nEnd Sub\nPublic Sub "+oc+"()\n End Sub\nEnd Class\n Function "+nc+"(transport, auth)\nDim wrap\nSet wrap = New "+mc+"\nwrap.SetTransport transport\nwrap.SetAuth auth\nSet "+nc+" = wrap\nEnd Function";try{window.execScript(a,"vbscript");window.nix_setup_complete=l}catch(b){}}};W.prototype.k=6;W.prototype.M=i;W.prototype.G=j;W.prototype.connect=function(){this.a.K()==0?this.Ma():this.La()};W.prototype.Ma=function(){if(!this.M){var a=this.a.L;try{a.contentWindow.opener=window[nc](this,this.Cb);this.M=l}catch(b){}this.M||window.setTimeout(t(this.Ma,this),100)}};W.prototype.La=function(){if(!this.M){try{var a=window.opener;if(a&&oc in a){this.G=a;var b=this.G.GetAuthToken();if(b!=this.jc)return;this.G.CreateChannel(window[nc](this,this.Cb));this.M=l;this.a.z()}}catch(c){return}this.M||window.setTimeout(t(this.La,this),100)}};W.prototype.Kb=function(a){this.G=a;var b=this.G.GetAuthToken();b!=this.jc||this.a.z()};W.prototype.F=function(a,b){function c(){this.a.t(a,b)}window.setTimeout(t(c,this),1)};W.prototype.send=function(a,b){this.G.SendMessage(a,b)};W.prototype.b=function(){W.I.b.call(this);this.G=j};var X=function(a){x.call(this);this.g=a;this.name=this.g.cn||ub(10);this.ub={};K[this.name]=this;Sb(window,"unload",pc)};v(X,x);X.prototype.d=j;X.prototype.Ja=1;X.prototype.j=function(){return this.Ja==2};X.prototype.l=j;X.prototype.L=j;X.prototype.wb=function(a){this.l=a};X.prototype.Rb=function(){var a;if(ha(document.postMessage)||ha(window.postMessage)||C&&window.postMessage)a=1;else if(Qa)a=2;else if(C&&this.g.pru)a=3;else if(C)a=6;else if(this.g.lpu&&this.g.ppu)a=4;return a};X.prototype.Mb=function(){if(!this.d){this.g.tp||(this.g.tp=this.Rb());switch(this.g.tp){case 1:this.d=new V(this,this.g.ph);break;case 6:this.d=new W(this);break;case 2:this.d=new M(this);break;case 3:this.d=new T(this);break;case 4:this.d=new N(this);break}if(!this.d)n(Error("CrossPageChannel: No suitable transport found!"))}};X.prototype.Ob=i;X.prototype.Hb=i;X.prototype.connect=function(a){this.zc=a||ea;if(this.Ob)this.Hb=l;else{if(this.g.ifrid)this.L=s(this.g.ifrid)?document.getElementById(this.g.ifrid):this.g.ifrid;if(this.L){var b=this.L.contentWindow;b||(b=window.frames[this.g.ifrid]);this.wb(b)}if(!this.l)if(window==top)n(Error("CrossPageChannel: Can't connect, peer window-object not set."));else this.wb(window.parent);this.Mb();this.d.connect()}};X.prototype.close=function(){if(!!this.j()){this.Ja=3;this.d.dispose();this.d=j}};X.prototype.z=function(){if(!this.j()){this.Ja=2;this.zc()}};X.prototype.dc=function(){this.close()};X.prototype.pb=function(a,b,c){this.ub[a]={name:a,callback:b,jsonEncoded:!!c}};X.prototype.send=function(a,b){if(!!this.j())if(this.l.closed)this.close();else{if(ia(b))b=(new w).serialize(b);this.d.send(a,b)}};X.prototype.t=function(a,b){if(!a||a=="tp")this.d.Y(b);else if(this.j()){var c=this.ub[a];if(c){if(c.jsonEncoded)try{b=pa(b)}catch(d){return}c.callback(b)}}};X.prototype.K=function(){return window.parent==this.l?1:0};X.prototype.b=function(){X.I.b.call(this);this.close();this.L=this.l=j;delete this.ub;K[this.name]=j};var pc=function(){for(var a in K){var b=K[a];b&&b.dispose()}};var qc="expandable_ad",rc=function(a){var b=a||document.location.protocol+"//"+document.location.host;return b+"/robots.txt"};var Y=function(){this.p=this.U=i;this.maintainCoordinates=l;this.o=this.n=this.ab=this.$a=0};Y.prototype.rc=function(a,b){b=new H(b);this.o=parseInt(b.ea("w"),10);this.n=parseInt(b.ea("h"),10);var c=b.ea("xpc"),d=b.ea("p"),e={};e.cn=c;e.ph=d;e.ppu=rc(d);e.lpu=rc(a.location.protocol+"//"+a.location.host);return e};Y.prototype.Yb=function(a){var b=this.rc(document,a);this.a=new X(b);this.a.pb(qc,t(this.F,this));this.Ib()};Y.prototype.Ib=function(){this.a.connect(function(){});window.setTimeout(t(this.ga,this),30000)};Y.prototype.ga=function(){if(this.a&&!this.a.j())this.a=j};Y.prototype.Ya=function(a){if(a&&typeof a.width=="number"&&typeof a.height=="number"&&typeof a.expansionCallback=="function"&&typeof a.collapseCallback=="function"){this.$a=a.height;this.ab=a.width;this.Tb=a.expansionCallback;this.Fb=a.collapseCallback;this.Yb(document.location.href);this.U=l}else this.U=i;return this.U};Y.prototype.Za=function(){!this.U||this.p||this.qb("expand_w"+this.ab+"_h"+this.$a)};Y.prototype.Ra=function(){!this.U||!this.p||this.qb("collapse")};Y.prototype.bb=function(){return this.n};Y.prototype.cb=function(){return this.o};Y.prototype.fb=function(){return this.$a};Y.prototype.gb=function(){return this.ab};Y.prototype.ib=function(){return this.p};Y.prototype.jb=function(){return this.U};Y.prototype.xb=function(a){this.maintainCoordinates=a};Y.prototype.qb=function(a){this.a&&this.a.j()&&this.a.send(qc,a)};Y.prototype.F=function(a){var b=a.split("_");if(!(b[0]!="ok")){var c,d,e,f=2;for(;f<b.length;++f){var g=b[f].charAt(0),h=parseInt(b[f].substring(1),10);if(g=="w")c=h;else if(g=="h")d=h;else if(g=="d")e=h}if(b[1]=="expand"&&typeof c=="number"&&typeof d=="number"&&typeof e=="number"&&c>0&&d>0&&e>=0)this.ha(c,d,e);else b[1]=="collapse"&&typeof c=="number"&&typeof d=="number"&&c>0&&d>0&&this.fa(c,d)}};Y.prototype.ha=function(a,b,c){this.p=l;this.maintainCoordinates&&this.tc(a,b,c);typeof this.Tb=="function"&&this.Tb(a,b,c)};Y.prototype.fa=function(a,b){this.p=i;this.maintainCoordinates&&this.kc();typeof this.Fb=="function"&&this.Fb(a,b)};Y.prototype.tc=function(a,b,c){if(c==0||c==3){var d=a-this.o;if(d>0)document.body.style.marginLeft=d+"px"}if(c==0||c==1){var e=b-this.n;if(e>0)document.body.style.marginTop=e+"px"}};Y.prototype.kc=function(){document.body.style.marginLeft="0";document.body.style.marginTop="0"};u("CreativeToolset",Y);u("CreativeToolset.prototype.collapseWindow",Y.prototype.Ra);u("CreativeToolset.prototype.enableExpansion",Y.prototype.Ya);u("CreativeToolset.prototype.expandWindow",Y.prototype.Za);u("CreativeToolset.prototype.getCollapsedHeight",Y.prototype.bb);u("CreativeToolset.prototype.getCollapsedWidth",Y.prototype.cb);u("CreativeToolset.prototype.getExpandedHeight",Y.prototype.fb);u("CreativeToolset.prototype.getExpandedWidth",Y.prototype.gb);u("CreativeToolset.prototype.isExpanded",Y.prototype.ib);u("CreativeToolset.prototype.isExpansionEnabled",Y.prototype.jb);u("CreativeToolset.prototype.shouldMaintainCoordinates",Y.prototype.xb);var sc,tc,uc,vc,wc,xc,yc=function(){xc=wc=vc=uc=tc=sc=i;var a=Na();if(!!a)if(a.indexOf("Firefox")!=-1)sc=l;else if(a.indexOf("Camino")!=-1)tc=l;else if(a.indexOf("iPhone")!=-1||a.indexOf("iPod")!=-1)uc=l;else if(a.indexOf("Android")!=-1)vc=l;else if(a.indexOf("Chrome")!=-1)wc=l;else if(a.indexOf("Safari")!=-1)xc=l};yc();var zc=tc;var Ac,Bc=function(a,b){var c=Ya(a);if(c.defaultView&&c.defaultView.getComputedStyle){var d=c.defaultView.getComputedStyle(a,"");if(d)return d[b]}return j};var Cc=function(a,b){return Bc(a,b)||(a.currentStyle?a.currentStyle[b]:j)||a.style[b]};var Dc=function(a){var b;b=a?a.nodeType==9?a:Ya(a):document;if(C&&!Za(b).ua())return b.body;return b.documentElement},Ec=function(a){var b=a.getBoundingClientRect();if(C){var c=a.ownerDocument;b.left-=c.documentElement.clientLeft+c.body.clientLeft;b.top-=c.documentElement.clientTop+c.body.clientTop}return b},Fc=function(a){if(C)return a.offsetParent;var b=Ya(a),c=Cc(a,"position"),d=c=="fixed"||c=="absolute",e=a.parentNode;for(;e&&e!=b;e=e.parentNode){c=Cc(e,"position");d=d&&c=="static"&&e!=b.documentElement&&e!=b.body;if(!d&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight||c=="fixed"||c=="absolute"))return e}return j},Gc=function(a){var b,c=Ya(a),d=Cc(a,"position"),e=Qa&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0);if(typeof Ac=="undefined")Ac=zc&&!(Ea(Wa,"1.8.0.11")>=0);var f=new y(0,0),g=Dc(c);if(a==g)return f;if(a.getBoundingClientRect){b=Ec(a);var h=Za(c).db();f.x=b.left+h.x;f.y=b.top+h.y}else if(c.getBoxObjectFor&&!e&&!Ac){b=c.getBoxObjectFor(a);var m=c.getBoxObjectFor(g);f.x=b.screenX-m.screenX;f.y=b.screenY-m.screenY}else{var k=a;do{f.x+=k.offsetLeft;f.y+=k.offsetTop;if(k!=a){f.x+=k.clientLeft||0;f.y+=k.clientTop||0}if(D&&Cc(k,"position")=="fixed"){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}k=k.offsetParent}while(k&&k!=a);if(Pa||D&&d=="absolute")f.y-=c.body.offsetTop;k=a;for(;(k=Fc(k))&&k!=c.body;){f.x-=k.scrollLeft;if(!Pa||k.tagName!="TR")f.y-=k.scrollTop}}return f},Hc=function(a){var b=new y;if(a.nodeType==1)if(a.getBoundingClientRect){var c=Ec(a);b.x=c.left;b.y=c.top}else{var d=Za(a).db(),e=Gc(a);b.x=e.x-d.x;b.y=e.y-d.y}else{b.x=a.clientX;b.y=a.clientY}return b};var $=function(a,b){this.o=a.width;this.n=a.height;this.yc=b;this.wa=this.Vb(a.src,document);this.p=i;this.f=a;this.Xb(this.Wb())};$.prototype.Wb=function(){var a={};a.ifrid=this.f.id;a.pu=this.f.src;a.ph=this.wa;a.cn=this.yc;a.ppu=rc(this.wa);a.lpu=rc();return a};$.prototype.Xb=function(a){this.a=new X(a);this.a.pb(qc,t(this.F,this));this.a.connect(function(){});window.setTimeout(t(this.ga,this),30000)};$.prototype.ga=function(){if(this.a&&!this.a.j()){this.a.d.connect=function(){};if(this.a.d.k==1)this.a.d.pa=function(){};if(this.a.d.k==4)this.a.d.Hc=function(){};this.a.d.dispose();this.a.dispose()}};$.prototype.Vb=function(a,b){var c=a.indexOf("//"),d=c>0,e=d?a.substring(0,c):b.location.protocol,f=d?a.substring(c+2):b.location.host,g=f.indexOf("/");if(g<0)g=f.indexOf("?");if(d&&g>0)f=f.substring(0,g);return e+"//"+f};$.prototype.F=function(a){var b=a.split("_"),c=b[0];if(c=="expand")this.ha(b);else c=="collapse"&&this.fa()};$.prototype.rb=function(a){this.a.send(qc,a)};$.prototype.ha=function(a){if(!this.p){var b,c,d=0;for(;d<a.length;++d){var e=a[d].charAt(0);if(e=="w")b=parseInt(a[d].substring(1),10);else if(e=="h")c=parseInt(a[d].substring(1),10)}var f=this.Qb(b,c);this.Sb(b,c,f);this.rb("ok_expand_w"+b+"_h"+c+"_d"+f)}};$.prototype.fa=function(){if(!!this.p){this.Gb();this.rb("ok_collapse_w"+this.o+"_h"+this.n)}};$.prototype.Gb=function(){this.f.style.width=this.o+"px";this.f.style.height=this.n+"px";this.f.style.left="0";this.f.style.top="0";this.f.style.zIndex=j;this.f.parentNode.style.zIndex=j;this.f.parentNode.parentNode.style.zIndex=j;this.p=i};$.prototype.Sb=function(a,b,c){this.f.style.position="absolute";this.f.style.width=a+"px";this.f.style.height=b+"px";this.f.style.zIndex=9999;this.f.parentNode.style.zIndex=9999;this.f.parentNode.parentNode.style.zIndex=9999;if(a>this.o&&(c==0||c==3))this.f.style.left="-"+(a-this.o)+"px";if(b>this.n&&(c==1||c==0))this.f.style.top="-"+(b-this.n)+"px";this.p=l};$.prototype.Qb=function(a,b){var c=Hc(this.f),d=$a(window),e=a-this.o,f=b-this.n,g=c.y,h=f>g,m=d.height-(c.y+this.n),k=h||m>=g,p=c.x,q=e>p,B=d.width-(c.x+this.o),Z=q||B>=p,U=0;if(k&&Z)U=2;else if(k&&!Z)U=3;else if(!k&&Z)U=1;else if(!k&&!Z)U=0;return U};var Ic=function(){},Kc=function(a){var b=a.google_frame_id;b||(b="google_frame_"+Math.floor(Math.random()*2147483647));var c=a.google_ad_url,d=parseInt(a.google_ad_width,10),e=parseInt(a.google_ad_height,10),f=a.google_container_id,g=Jc(b,c,d,e,f);return a[b]=g},Jc=function(a,b,c,d,e){if(!a||!b||c<=0||d<=0)return j;var f=ub(10);b=Lc(b,c,d,f);var g=Mc(a,b,c,d,e);return new $(g,f)},Lc=function(a,b,c,d){var e=Za().R;return a+(a.indexOf("?")==-1?"?":"&")+"w="+b+"&h="+c+"&xpc="+d+"&p="+escape(e.location.protocol+"//"+e.location.host)},Mc=function(a,b,c,d,e){var f="border:none;height:"+d+"px;margin:0;padding:0;position:relative;visibility:visible;width:"+c+"px",g='<ins style="display:inline-table;'+f+'"><ins style="display:block;'+f+'"><iframe allowtransparency=true frameborder=0 height='+d+" hspace=0 id="+a+' marginheight=0 marginwidth=0 name=google_ads_frame scrolling=no src="'+b+'" style="left:0;position:absolute;top:0" vspace=0 width='+c+"></iframe></ins></ins>",h=Za(),m=h.eb(e);if(m)m.innerHTML=g;else h.R.write(g);return h.eb(a)};u("ExpandableAdSlot",$);u("ExpandableAdSlotFactory",Ic);u("ExpandableAdSlotFactory.createIframe",Jc);u("ExpandableAdSlotFactory.createIframeFromWindow",Kc);})()

⌨️ 快捷键说明

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