查看: 2120|回复: 1
收起左侧

[其它] kafan缓冲区溢出

[复制链接]
白玉箫
发表于 2009-10-15 09:16:40 | 显示全部楼层 |阅读模式
Log is generated by FreShow.
[wide]http://bbs.kafan.cn/
    [script]http://drmcmm.baidu.com/js/m.js
        [script]http://drmcmm.baidu.com/js/sc.js
    [script]http://bbs.kafan.cn/include/javascript/common.js

  1. (function(){var G="http://cb.baidu.com/ecom";var H=15000;var C=null;var F={DIV_PREFIX:"baidu_clb_slot_div_prefix_",IFRAME_PREFIX:"baidu_clb_slot_iframe_prefix_",cSlot:function(N){var M=null;var E=null;for(var I in N){if(typeof N[I]!="function"){window.BAIDU_CLB_SLOTS_MANAGER.addAdBySlotId(I,N[I]);M=I;E=N[I]}}if(E._stype==0){this.cNslot(M)}else{if(E._stype==1){this.cFslot(M)}else{this.cWslot(E,M)}}},cNslot:function(E){var N=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(E);if(N.y){return }else{N.y=true}if(N._html==""&&N._fxp==false){return }if((N._isMlt==false&&N._html!="")||(N._html=="")){if(!D()){var M=this._cDiv(E);var I=this;this._cDomIframe(M,E)}else{this.cF(E,"about:blank","BAIDU_CLB_SETSLOTAD('"+E+"');",N._w,N._h)}}else{document.write(N._html)}},cFslot:function(E){var M=this;var P=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(E);if(P.y){return }else{P.y=true}if(P._html==""){return }function N(){if(!D()){var Q=M._cFdiv(E);M._cDomIframe(Q,E)}else{M.cIeFslot(E,"about:blank","BAIDU_CLB_SETSLOTAD('"+E+"');",P._w,P._h)}if(P._st>0){window.setTimeout(function(){var R=document.getElementById(M._cDivId(E));if(R){R.style.display="none"}},P._st*1000)}}function I(){M._sFslot(E)}if(window.attachEvent){window.attachEvent("onload",N);window.attachEvent("onresize",I);var O=document.compatMode&&document.compatMode=="CSS1Compat"?true:false;if(K()<7||!O){window.attachEvent("onscroll",I)}}else{if(window.addEventListener){window.addEventListener("load",N,false);window.addEventListener("resize",I,false)}}},_sFslot:function(E){var M=document.getElementById(this._cDivId(E));if(!M){return }var O=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(E);var N=document.compatMode&&document.compatMode=="CSS1Compat"?true:false;var I=N?document.documentElement:document.body;if(O._sf){try{if(D()&&(K()<7||!N)){if(O._top==1){M.style.top=(I.scrollTop+O._hs)+"px"}else{if(K()<7){M.style.top=(I.scrollTop+I.clientHeight-O._hs-O._h)+"px"}else{M.style.bottom=O._hs-I.scrollTop+"px"}}if(O._left==1){M.style.left=(I.scrollLeft+O._vs)+"px"}else{M.style.right=O._vs-I.scrollLeft+"px"}}else{if(O._top!=1){M.style.bottom=O._hs+"px"}else{M.style.top=O._hs+"px"}if(O._left!=1){M.style.right=O._vs+"px"}else{M.style.left=O._vs+"px"}}}catch(M){}}},cWslot:function(R,U){var E=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(U);if(E.y){return }else{E.y=true}if(R._html==""){return }var M=R._h;var S=R._w;var T=0;var I=0;if(R._top==1){T=R._hs}else{if(window.screen){T=window.screen.availHeight-R._hs-M}}if(R._left==1){I=R._vs}else{if(window.screen){I=window.screen.availWidth-R._vs-S}}if(R._bf||!D()){var N=null;if(D()){var P="";if(document.domain!=location.hostname){P="document.domain='"+document.domain+"';"}N=window.open("javascript:void( (function(){document.open();"+P+"d.write('');})() )","newwindow"+U,"height="+M+",width="+S+",top="+T+",left="+I+",screenX="+T+",screenY="+I+",toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=yes,status=yes")}else{N=window.open("about:blank","newwindow"+U,"height="+M+",width="+S+",top="+T+",left="+I+",screenX="+T+",screenY="+I+",toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no")}if(N){var O=N.document;O.open("text/html","replace");O.write(R._html);if(!D()){window.setTimeout(function(){O.close()},0)}else{window.setTimeout(function(){O.close()},H)}if(R._st>0){window.setTimeout(function(){if(N){N.close()}},R._st*1000)}}}else{var Q=this;if(window.attachEvent){window.attachEvent("onunload",function(){if((window.event.clientY<0&&!window.event.ctrlKey)||window.event.altKey){var W="";if(document.domain!=location.hostname){W="document.domain='"+document.domain+"';"}var V=window.open("javascript:void( (function(){document.open();"+W+"d.write('');setTimeout('document.close();', 15000);})() )","newwindow"+U,"height="+M+",width="+S+",top="+T+",left="+I+",screenX="+T+",screenY="+I+",toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=yes,status=yes");if(V){var X=V.document;X.open("text/html","replace");X.write(R._html);V.focus();if(!D()){X.close()}else{window.setTimeout(function(){X.close()},H)}if(R._st>0){window.setTimeout(function(){if(V){V.close()}},R._st*1000)}}}})}}},_cDivId:function(E){return this.DIV_PREFIX+E},_cIframeId:function(E){return this.IFRAME_PREFIX+E},_cDiv:function(E){var I=this._cDivId(E);document.write('<div id="'+I+'"></div>');return I},_cFdiv:function(E){var M=this._cDivId(E);var I=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(E);var N=document.createElement("div");N.id=M;if(I._sf){N.style.position="fixed";if(I._top==1){N.style.top=I._hs+"px"}else{N.style.bottom=I._hs+"px"}if(I._left==1){N.style.left=I._vs+"px"}else{N.style.right=I._vs+"px"}}else{N.style.position="absolute";if(I._top==1){N.style.top=I._hs+"px"}else{N.style.bottom=I._hs+"px"}if(I._left==1){N.style.left=I._vs+"px"}else{N.style.right=I._vs+"px"}}N.style.width=I._w+"px";N.style.height=I._h+"px";document.body.appendChild(N);return M},cIeFslot:function(V,U,T,R,P){var N=this._cDivId(V),M=this._cIframeId(V),I=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(V);var O=document.compatMode&&document.compatMode=="CSS1Compat"?true:false;var W=O?document.documentElement:document.body;var X=l=0,Y="absolute";if(I._sf){if(K()>6&&O){Y="fixed"}}X=I._hs;l=I._vs;var E=document.createElement("div");E.id=N;E.style.position=Y;if(I._left==1){E.style.left=l+"px"}else{E.style.right=l+"px"}if(I._top==1){E.style.top=X+"px"}else{E.style.bottom=X+"px"}E.style.width=R+"px";E.style.height=P+"px";E.style.border="0px";document.body.appendChild(E);var Q="";if(document.domain!=location.hostname){Q="document.domain='"+document.domain+"';"}var S='<iframe id="'+M+'" name="'+M+'"  width="'+R+'" height="'+P+'" vspace="0" hspace="0" allowTransparency="true" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border:0px;" src="javascript:void( (function(){var d = document;d.open();'+Q+"d.write('');d.close();})() )"";if(T!=C){S+=' onload="'+T+'"></iframe>'}else{S+="></iframe>"}E.innerHTML=S},_cDomIframe:function(N,M){var O=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(M);var P=this._cIframeId(M);var E=document.getElementById(N);var I=document.createElement("iframe");I.id=P;I.name=P;I.width=O._w+"px";I.height=O._h+"px";I.vspace=0;I.hspace=0;I.allowTransparency="true";I.scrolling="no";I.marginWidth=0;I.marginHeight=0;I.frameBorder=0;I.style.border=0;E.appendChild(I);I.contentWindow.document.write(O._html);window.setTimeout(function(){I.contentWindow.document.close()},0)},cF:function(T,S,R,P,N){var M=this._cDivId(T);var I=this._cIframeId(T);var E=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(T);var Q='<div id="'+M+'">';var O="";if(document.domain!=location.hostname){O="document.domain='"+document.domain+"';"}Q+='<iframe id="'+I+'" name="'+I+'"  width="'+P+'" height="'+N+'" vspace="0" hspace="0" allowTransparency="true" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border:0px;" src="javascript:void( (function(){var d = document;d.open();'+O+"d.write('');d.close();})() )"";if(R!=I){Q+=' onload="'+R+'"></iframe></div>'}else{Q+="></iframe></div>"}document.write(Q)},_setSlotAd:function(I){var E=window.BAIDU_CLB_SLOTS_MANAGER.getSlot(I);if(!E.y){E.y=true;window.BAIDU_CLB_SETSLOTAD.flag=true;var O=document.getElementById(this._cIframeId(I));var M=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(I);var N=body=null;N=O.contentWindow?O.contentWindow.document:O.contentDocument;N.write(M._html)}}};window.BAIDU_CLB_SETJSONADSLOT=function(E){F.cSlot(E)};window.BAIDU_CLB_SETHTMLSLOT=function(E){};window.BAIDU_CLB_SETSLOTAD=function(E){F._setSlotAd(E)};function L(E){return E.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quto;")}function J(E){return typeof encodeURIComponent=="function"?encodeURIComponent(E):escape(E)}function A(E){return navigator.userAgent.toLowerCase().indexOf(E)!=-1}function D(){return A("msie")&&!window.opera}function K(){var I=navigator.userAgent;var E=I.indexOf("MSIE ");return E==-1?0:parseFloat(I.substring(E+5,I.indexOf(";",E)))}var B={_toEscape:function(E){return window.encodeURIComponent?encodeURIComponent(E):escape(E)},_setCookie:function(E,M,P,O,I){var N=new Date();N.setTime(N.getTime()+I);document.cookie=E+"="+escape(M)+((I==null)?"":";expires="+N.toGMTString())+";domain="+escape(P)+(O?";path="+escape(O):"")},_getCookie:function(I){if(document.cookie.length>0){var M=document.cookie.indexOf(I+"=");if(M!=-1){M=M+I.length+1;var E=document.cookie.indexOf(";",M);if(E==-1){E=document.cookie.length}return unescape(document.cookie.substring(M,E))}}return""},_getMainDomain:function(){var M=document.domain;M=M.indexOf("www.")==0?M.substr(4):M;var E=/([a-z0-9][a-z0-9\-]*?\.(?:com|cn|net|org|gov|info|la|cc|co|jp)(?:\.(?:cn|jp))?)$/;var I=M.match(E);if(I){return I[0]}else{return M}},_getSw:function(){return window.screen.width},_getSh:function(){return window.screen.height},_getAw:function(){return window.screen.availWidth},_getAh:function(){return window.screen.availHeight},_getCd:function(){return window.screen.colorDepth},_getUrl:function(){return this._toEscape(document.URL)},_getRefer:function(){var N=document.referrer;var P=N.indexOf("http://")==0?N.replace("http://",""):N;var E=P.indexOf("/");if(E!=-1){P=P.substr(0,E)}var M=P.match(/([a-z0-9][a-z0-9\-]*?\.(?:com|cn|net|org|gov|info|la|cc|co|jp)(?:\.(?:cn|jp))?)$/);if(M){P=M[0]}var O=this._getMainDomain();var I=this._getCookie("BAIDU_CLB_REFER");if(O==P&&I!=""){return this._toEscape(I)}else{if(O!=P){this._setCookie("BAIDU_CLB_REFER",N,O);return this._toEscape(N)}else{return""}}},_getCtime:function(){return(new Date()).getTime()},_getLm:function(){return(new Date(document.lastModified)).getTime()},_getJa:function(){return navigator.javaEnabled()?1:0},_getCk:function(){return this._getCookie("BAIDUID")},_getFl:function(){if(navigator.plugins&&navigator.mimeTypes.length){var I=navigator.plugins["Shockwave Flash"];if(I&&I.description){return I.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var E=3,N=1;while(N){try{N=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+(E+1));E++}catch(M){N=C}}return E.toString()}else{if(D()){var N=C;try{N=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(M){var E=0;try{N=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=6;N.AllowScriptAccess="always"}catch(M){if(E==6){return E.toString()}}try{N=new ActiveXObject("ShockwaveFlash,ShockwaveFlash")}catch(M){}}if(N!=C){var E=N.GetVariable("$version").split(" ")[1];return E.replace(/,/g,".")}}}}return"0"},_getLn:function(){return navigator.language?navigator.language:navigator.browserLanguage},getSlotAdUrl:function(I,M){var E="";E+="di="+I;E+="&tm="+M;E+="&mod_t="+this._getLm();E+="&visi_t="+this._getCtime();E+="&flash_v="+this._getFl();E+="&java="+this._getJa();if(window.screen){E+="&screen_h="+this._getSh();E+="&screen_w="+this._getSw();E+="&page_h="+this._getAh();E+="&page_w="+this._getAw();E+="&color="+this._getCd()}E+="&asp_refer="+this._getRefer();E+="&asp_url="+this._getUrl();E+="&b_lang="+this._getLn();E+="&baidu_id="+this._getCk();return G+"?"+E}};window.BAIDU_CLB_fillSlot=function(I){var M=window.BAIDU_CLB_SLOTS_MANAGER;var E=M.getSlot(I);if(E&&!E.loaded){document.write('<script type="text/javascript" charset="utf-8" src="'+B.getSlotAdUrl(I,"BAIDU_CLB_SETJSONADSLOT")+'"><\/script>')}}})();

复制代码
白羊座
发表于 2009-10-15 09:18:28 | 显示全部楼层
果然是广告
百毒……

---------------------m.js-------------------------
(function(){var B="http://drmcmm.baidu.com/js/sc.js";window.BAIDU_CLB_addSlot=function(F){window.BAIDU_CLB_SLOTS_MANAGER.addSlot(F)};window.BAIDU_CLB_enableAllSlots=function(){window.BAIDU_CLB_SLOTS_MANAGER.enableAllSlots()};if(!window.BAIDU_CLB_SLOTS_MANAGER){window.BAIDU_CLB_SLOTS_MANAGER=new A()}function C(F){this.sid=F;this.ad=null;this.loaded=false;this.y=false}var D=C.prototype;D.addAdObject=function(F){this.ad=F;this.loaded=true};D.getAdObject=function(){return this.ad==null?null:this.ad};function A(){this.sa=null}var E=A.prototype;E.addSlot=function(F){if(this.sa==null){this.sa={}}if(!this.sa[F]){this.sa[F]=new C(F)}return this.sa[F]};E.getSlot=function(F){return this.sa[F]==null?null:this.sa[F]};E.getAdBySlotId=function(F){if(this.sa&&this.sa[F]){return this.sa[F].getAdObject()}return null};E.addAdBySlotId=function(F,G){if(this.sa&&this.sa[F]!=null){this.sa[F].addAdObject(G)}};E.enableAllSlots=function(){document.write('<script type="text/javascript" src="'+B+'"><\/script>')}})();

-----------------------sc.js-----------------------
(function(){var G="http://cb.baidu.com/ecom";var H=15000;var C=null;var F={DIV_PREFIX:"baidu_clb_slot_div_prefix_",IFRAME_PREFIX:"baidu_clb_slot_iframe_prefix_",cSlot:function(N){var M=null;var E=null;for(var I in N){if(typeof N[I]!="function"){window.BAIDU_CLB_SLOTS_MANAGER.addAdBySlotId(I,N[I]);M=I;E=N[I]}}if(E._stype==0){this.cNslot(M)}else{if(E._stype==1){this.cFslot(M)}else{this.cWslot(E,M)}}},cNslot:function(E){var N=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(E);if(N.y){return }else{N.y=true}if(N._html==""&&N._fxp==false){return }if((N._isMlt==false&&N._html!="")||(N._html=="")){if(!D()){var M=this._cDiv(E);var I=this;this._cDomIframe(M,E)}else{this.cF(E,"about:blank","BAIDU_CLB_SETSLOTAD('"+E+"');",N._w,N._h)}}else{document.write(N._html)}},cFslot:function(E){var M=this;var P=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(E);if(P.y){return }else{P.y=true}if(P._html==""){return }function N(){if(!D()){var Q=M._cFdiv(E);M._cDomIframe(Q,E)}else{M.cIeFslot(E,"about:blank","BAIDU_CLB_SETSLOTAD('"+E+"');",P._w,P._h)}if(P._st>0){window.setTimeout(function(){var R=document.getElementById(M._cDivId(E));if(R){R.style.display="none"}},P._st*1000)}}function I(){M._sFslot(E)}if(window.attachEvent){window.attachEvent("onload",N);window.attachEvent("onresize",I);var O=document.compatMode&&document.compatMode=="CSS1Compat"?true:false;if(K()<7||!O){window.attachEvent("onscroll",I)}}else{if(window.addEventListener){window.addEventListener("load",N,false);window.addEventListener("resize",I,false)}}},_sFslot:function(E){var M=document.getElementById(this._cDivId(E));if(!M){return }var O=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(E);var N=document.compatMode&&document.compatMode=="CSS1Compat"?true:false;var I=N?document.documentElement:document.body;if(O._sf){try{if(D()&&(K()<7||!N)){if(O._top==1){M.style.top=(I.scrollTop+O._hs)+"px"}else{if(K()<7){M.style.top=(I.scrollTop+I.clientHeight-O._hs-O._h)+"px"}else{M.style.bottom=O._hs-I.scrollTop+"px"}}if(O._left==1){M.style.left=(I.scrollLeft+O._vs)+"px"}else{M.style.right=O._vs-I.scrollLeft+"px"}}else{if(O._top!=1){M.style.bottom=O._hs+"px"}else{M.style.top=O._hs+"px"}if(O._left!=1){M.style.right=O._vs+"px"}else{M.style.left=O._vs+"px"}}}catch(M){}}},cWslot:function(R,U){var E=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(U);if(E.y){return }else{E.y=true}if(R._html==""){return }var M=R._h;var S=R._w;var T=0;var I=0;if(R._top==1){T=R._hs}else{if(window.screen){T=window.screen.availHeight-R._hs-M}}if(R._left==1){I=R._vs}else{if(window.screen){I=window.screen.availWidth-R._vs-S}}if(R._bf||!D()){var N=null;if(D()){var P="";if(document.domain!=location.hostname){P="document.domain='"+document.domain+"';"}N=window.open("javascript:void( (function(){document.open();"+P+"d.write('');})() )","newwindow"+U,"height="+M+",width="+S+",top="+T+",left="+I+",screenX="+T+",screenY="+I+",toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=yes,status=yes")}else{N=window.open("about:blank","newwindow"+U,"height="+M+",width="+S+",top="+T+",left="+I+",screenX="+T+",screenY="+I+",toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no")}if(N){var O=N.document;O.open("text/html","replace");O.write(R._html);if(!D()){window.setTimeout(function(){O.close()},0)}else{window.setTimeout(function(){O.close()},H)}if(R._st>0){window.setTimeout(function(){if(N){N.close()}},R._st*1000)}}}else{var Q=this;if(window.attachEvent){window.attachEvent("onunload",function(){if((window.event.clientY<0&&!window.event.ctrlKey)||window.event.altKey){var W="";if(document.domain!=location.hostname){W="document.domain='"+document.domain+"';"}var V=window.open("javascript:void( (function(){document.open();"+W+"d.write('');setTimeout('document.close();', 15000);})() )","newwindow"+U,"height="+M+",width="+S+",top="+T+",left="+I+",screenX="+T+",screenY="+I+",toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=yes,status=yes");if(V){var X=V.document;X.open("text/html","replace");X.write(R._html);V.focus();if(!D()){X.close()}else{window.setTimeout(function(){X.close()},H)}if(R._st>0){window.setTimeout(function(){if(V){V.close()}},R._st*1000)}}}})}}},_cDivId:function(E){return this.DIV_PREFIX+E},_cIframeId:function(E){return this.IFRAME_PREFIX+E},_cDiv:function(E){var I=this._cDivId(E);document.write('<div id="'+I+'"></div>');return I},_cFdiv:function(E){var M=this._cDivId(E);var I=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(E);var N=document.createElement("div");N.id=M;if(I._sf){N.style.position="fixed";if(I._top==1){N.style.top=I._hs+"px"}else{N.style.bottom=I._hs+"px"}if(I._left==1){N.style.left=I._vs+"px"}else{N.style.right=I._vs+"px"}}else{N.style.position="absolute";if(I._top==1){N.style.top=I._hs+"px"}else{N.style.bottom=I._hs+"px"}if(I._left==1){N.style.left=I._vs+"px"}else{N.style.right=I._vs+"px"}}N.style.width=I._w+"px";N.style.height=I._h+"px";document.body.appendChild(N);return M},cIeFslot:function(V,U,T,R,P){var N=this._cDivId(V),M=this._cIframeId(V),I=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(V);var O=document.compatMode&&document.compatMode=="CSS1Compat"?true:false;var W=O?document.documentElement:document.body;var X=l=0,Y="absolute";if(I._sf){if(K()>6&&O){Y="fixed"}}X=I._hs;l=I._vs;var E=document.createElement("div");E.id=N;E.style.position=Y;if(I._left==1){E.style.left=l+"px"}else{E.style.right=l+"px"}if(I._top==1){E.style.top=X+"px"}else{E.style.bottom=X+"px"}E.style.width=R+"px";E.style.height=P+"px";E.style.border="0px";document.body.appendChild(E);var Q="";if(document.domain!=location.hostname){Q="document.domain='"+document.domain+"';"}var S='<iframe id="'+M+'" name="'+M+'"  width="'+R+'" height="'+P+'" vspace="0" hspace="0" allowTransparency="true" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border:0px;" src="javascript:void( (function(){var d = document;d.open();'+Q+"d.write('');d.close();})() )\"";if(T!=C){S+=' onload="'+T+'"></iframe>'}else{S+="></iframe>"}E.innerHTML=S},_cDomIframe:function(N,M){var O=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(M);var P=this._cIframeId(M);var E=document.getElementById(N);var I=document.createElement("iframe");I.id=P;I.name=P;I.width=O._w+"px";I.height=O._h+"px";I.vspace=0;I.hspace=0;I.allowTransparency="true";I.scrolling="no";I.marginWidth=0;I.marginHeight=0;I.frameBorder=0;I.style.border=0;E.appendChild(I);I.contentWindow.document.write(O._html);window.setTimeout(function(){I.contentWindow.document.close()},0)},cF:function(T,S,R,P,N){var M=this._cDivId(T);var I=this._cIframeId(T);var E=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(T);var Q='<div id="'+M+'">';var O="";if(document.domain!=location.hostname){O="document.domain='"+document.domain+"';"}Q+='<iframe id="'+I+'" name="'+I+'"  width="'+P+'" height="'+N+'" vspace="0" hspace="0" allowTransparency="true" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border:0px;" src="javascript:void( (function(){var d = document;d.open();'+O+"d.write('');d.close();})() )\"";if(R!=I){Q+=' onload="'+R+'"></iframe></div>'}else{Q+="></iframe></div>"}document.write(Q)},_setSlotAd:function(I){var E=window.BAIDU_CLB_SLOTS_MANAGER.getSlot(I);if(!E.y){E.y=true;window.BAIDU_CLB_SETSLOTAD.flag=true;var O=document.getElementById(this._cIframeId(I));var M=window.BAIDU_CLB_SLOTS_MANAGER.getAdBySlotId(I);var N=body=null;N=O.contentWindow?O.contentWindow.document:O.contentDocument;N.write(M._html)}}};window.BAIDU_CLB_SETJSONADSLOT=function(E){F.cSlot(E)};window.BAIDU_CLB_SETHTMLSLOT=function(E){};window.BAIDU_CLB_SETSLOTAD=function(E){F._setSlotAd(E)};function L(E){return E.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quto;")}function J(E){return typeof encodeURIComponent=="function"?encodeURIComponent(E):escape(E)}function A(E){return navigator.userAgent.toLowerCase().indexOf(E)!=-1}function D(){return A("msie")&&!window.opera}function K(){var I=navigator.userAgent;var E=I.indexOf("MSIE ");return E==-1?0:parseFloat(I.substring(E+5,I.indexOf(";",E)))}var B={_toEscape:function(E){return window.encodeURIComponent?encodeURIComponent(E):escape(E)},_setCookie:function(E,M,P,O,I){var N=new Date();N.setTime(N.getTime()+I);document.cookie=E+"="+escape(M)+((I==null)?"":";expires="+N.toGMTString())+";domain="+escape(P)+(O?";path="+escape(O):"")},_getCookie:function(I){if(document.cookie.length>0){var M=document.cookie.indexOf(I+"=");if(M!=-1){M=M+I.length+1;var E=document.cookie.indexOf(";",M);if(E==-1){E=document.cookie.length}return unescape(document.cookie.substring(M,E))}}return""},_getMainDomain:function(){var M=document.domain;M=M.indexOf("www.")==0?M.substr(4):M;var E=/([a-z0-9][a-z0-9\-]*?\.(?:com|cn|net|org|gov|info|la|cc|co|jp)(?:\.(?:cn|jp))?)$/;var I=M.match(E);if(I){return I[0]}else{return M}},_getSw:function(){return window.screen.width},_getSh:function(){return window.screen.height},_getAw:function(){return window.screen.availWidth},_getAh:function(){return window.screen.availHeight},_getCd:function(){return window.screen.colorDepth},_getUrl:function(){return this._toEscape(document.URL)},_getRefer:function(){var N=document.referrer;var P=N.indexOf("http://")==0?N.replace("http://",""):N;var E=P.indexOf("/");if(E!=-1){P=P.substr(0,E)}var M=P.match(/([a-z0-9][a-z0-9\-]*?\.(?:com|cn|net|org|gov|info|la|cc|co|jp)(?:\.(?:cn|jp))?)$/);if(M){P=M[0]}var O=this._getMainDomain();var I=this._getCookie("BAIDU_CLB_REFER");if(O==P&&I!=""){return this._toEscape(I)}else{if(O!=P){this._setCookie("BAIDU_CLB_REFER",N,O);return this._toEscape(N)}else{return""}}},_getCtime:function(){return(new Date()).getTime()},_getLm:function(){return(new Date(document.lastModified)).getTime()},_getJa:function(){return navigator.javaEnabled()?1:0},_getCk:function(){return this._getCookie("BAIDUID")},_getFl:function(){if(navigator.plugins&&navigator.mimeTypes.length){var I=navigator.plugins["Shockwave Flash"];if(I&&I.description){return I.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var E=3,N=1;while(N){try{N=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+(E+1));E++}catch(M){N=C}}return E.toString()}else{if(D()){var N=C;try{N=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(M){var E=0;try{N=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=6;N.AllowScriptAccess="always"}catch(M){if(E==6){return E.toString()}}try{N=new ActiveXObject("ShockwaveFlash,ShockwaveFlash")}catch(M){}}if(N!=C){var E=N.GetVariable("$version").split(" ")[1];return E.replace(/,/g,".")}}}}return"0"},_getLn:function(){return navigator.language?navigator.language:navigator.browserLanguage},getSlotAdUrl:function(I,M){var E="";E+="di="+I;E+="&tm="+M;E+="&mod_t="+this._getLm();E+="&visi_t="+this._getCtime();E+="&flash_v="+this._getFl();E+="&java="+this._getJa();if(window.screen){E+="&screen_h="+this._getSh();E+="&screen_w="+this._getSw();E+="&page_h="+this._getAh();E+="&page_w="+this._getAw();E+="&color="+this._getCd()}E+="&asp_refer="+this._getRefer();E+="&asp_url="+this._getUrl();E+="&b_lang="+this._getLn();E+="&baidu_id="+this._getCk();return G+"?"+E}};window.BAIDU_CLB_fillSlot=function(I){var M=window.BAIDU_CLB_SLOTS_MANAGER;var E=M.getSlot(I);if(E&&!E.loaded){document.write('<script type="text/javascript" charset="utf-8" src="'+B.getSlotAdUrl(I,"BAIDU_CLB_SETJSONADSLOT")+'"><\/script>')}}})();

[ 本帖最后由 白羊座 于 2009-10-15 09:26 编辑 ]
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-5-8 21:51 , Processed in 0.137149 second(s), 16 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表