g2_messages_zh_cn-041978fca58d2e595d5830ce4cbb1f92.js

来自「Dm9000网络接口驱动大全」· JavaScript 代码 · 共 81 行 · 第 1/3 页

JS
81
字号
"undefined"){return-1}if(!isNaN(c[e])&&isNaN(d[e])&&c[e]==parseInt(d[e],10)){return 1}if(isNaN(c[e])&&!isNaN(d[e])&&parseInt(c[e],10)==d[e]){return-1}if(d[e]>c[e]){return-1}else if(d[e]<c[e]){return 1}}return 0};g.userAgent.isVersion=function(a){return g.userAgent.compare(g.userAgent.VERSION,a)>=0};function Ea(){var a=g.userAgent.VERSION;return g.net.cookies.get("letmeinanyway")||g.userAgent.GECKO&&g.userAgent.compare(a,"1.8")>=0||g.userAgent.IE&&g.userAgent.compare(a,"6.0")>=0};function qa(a){if(!w()){window.location="/group/<?cs var:CGI.Group.addr ?>/unsupported?url="+encodeURIComponent(window.location)}var b=document.getElementById("create_new_page_form");if(Z(a)){var c=b.getElementsByTagName("input");for(var d=0;d<c.length;d++){if(c[d].name=="name"){c[d].value=a}}}b.submit()}window._G2_CreateNewPage=qa;function w(){if(w.supported===undefined){w.supported=Ea()}return w.supported}window._G2_IsSupportedEditBrowser=w;function sa(a){if(!window.g2_modules){window.g2_modules=[]}var b=document.getElementById(a);window.g2_modules[a]=b;b.getChildElement=function(c){return document.getElementById(this.id+"_"+c)};return b}window._G2_RegisterModule=sa;function ra(a){if(window.g2_modules){return window.g2_modules[a]}}window._G2_GetModule=ra;function O(a){var b=null;if(o()){var c=window.is_ie5?"Microsoft.XMLHTTP":"Msxml2.XMLHTTP";try{b=new ActiveXObject(c)}catch(d){alert("You need to enable active scripting and activeX controls")}}else{b=new XMLHttpRequest}b.onreadystatechange=function(){a(b)};return b}var ga=(new Date).getTime();function ca(){++ga;return ga}window._UniqueNum=ca;function Ba(a){L(a,function(){})}window._SendServerRequest=Ba;function L(a,b){var c=O(b);c.open("GET",a+"&rand="+ca(),true);c.send(null)}window._StartGETRequest=L;function Da(a,b,c){var d=O(c);d.open("POST",a,true);d.send(b)}window._StartPOSTRequest=Da;function oa(a,b){if(o()){var c=document.getElementById(a),d=c.parentNode.parentNode,f=d.parentNode;f.style.height="100%";for(var e=0;e<d.rows.length;e++){d.rows[e].style.height="0px"}c.style.height="100%";t(window,"load",function(){d.style.position="absolute";d.style.height="0px";c.style.height="0px";var h="_G2_GetStarRowHeight_"+a,k="_G2_GetStarRowWidth_"+a;window[h]=function(){var j=d.parentNode.offsetHeight;for(var l=0;l<d.rows.length;l++){if(d.rows[l]!=c){j-=d.rows[l].offsetHeight}}return j-(b||0)};window[k]=function(){return d.parentNode.offsetWidth};c.style.setExpression("height",h+"()");c.style.setExpression("width",k+"()");t(window,"resize",function(){var j=window[h]();if(j>=0){c.style.height=j}var l=window[k]();if(l>=0){c.style.width=l}});document.recalc()})}}window._G2_AddStarRow=oa;window.listen=t;window.unlisten=C;window.HasClass=X;window.AddClass=ia;window.RemoveClass=za;window.GetPageOffsetLeft=z;window.GetPageOffsetRight=W;window.GetPageOffsetTop=u;window.GetWindowHeight=A;window.GetWindowWidth=va;window.BR_IsIE=o;window.IsDescendant=wa;window.IsDefined=Z;window.GetEventTarget=U;window.GetKeyCode=V;var $=(function(){var a={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},b={"boolean":function(c){return String(c)},number:function(c){return isFinite(c)?String(c):"null"},string:function(c){if(/["\\\x00-\x1f]/.test(c)){c=c.replace(/([\x00-\x1f\\"])/g,function(d,f){var e=a[f];if(e){return e}e=f.charCodeAt();return"\\u00"+Math.floor(e/16).toString(16)+(e%16).toString(16)})}return'"'+c+'"'},object:function(c){if(c){var d=[],f,e,h,k,j;if(c instanceof Array){d[0]="[";k=c.length;for(h=0;h<k;h+=1){j=c[h];e=b[typeof j];if(e){j=e(j);if(typeof j=="string"){if(f){d[d.length]=","}d[d.length]=j;f=true}}}d[d.length]="]"}else if(typeof c.hasOwnProperty==="function"){d[0]="{";for(h in c){if(c.hasOwnProperty(h)){j=c[h];e=b[typeof j];if(e){j=e(j);if(typeof j=="string"){if(f){d[d.length]=","}d.push(b.string(h),":",j);f=true}}}}d[d.length]="}"}else{return}return d.join("")}return"null"}};return{copyright:"(c)2005 JSON.org",license:"http://www.JSON.org/license.html",stringify:function(c){var d=b[typeof c];if(d){c=d(c);if(typeof c=="string"){return c}}return null},parse:function(c){try{return!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(c.replace(/"(\\.|[^"\\])*"/g,""))&&eval("("+c+")")}catch(d){return false}}}})();function s(){this.q={}}s.prototype.addEventListener=function(a,b){if(!(a in this.q)){this.q[a]={}}var c=ea(b);this.q[a][c]=b};s.prototype.removeEventListener=function(a,b){if(a in this.q){var c=ea(b);delete this.q[a][c]}};s.prototype.dispatchEvent=function(a){if(typeof a=="string"){a={type:a}}var b=a.type,c=true,d,f,e;if(!b){throw new Error("Error when dispatching event. Missing type");}if(b in this.q){f=this.q[b];if(!a.target){a.target=this}a=s.Hb(a);for(var h in f){e=this.q[b][h];if(typeof e=="function"){d=e.call(this,a)}else if(typeof e.handleEvent=="function"){d=e.handleEvent.call(e,a)}if(c&&d==false){c=false}}}return c&&!(a.returnValue==false)};s.Hb=function(a){if(!a.target){a.target=a.srcElement}if(!a.stopPropagation){a.stopPropagation=s.Mb}if(!a.preventDefault){a.preventDefault=s.Lb}return a};s.Lb=function(){this.returnValue=false};s.Mb=function(){this.cancelBubble=true};function p(a,b,c){this.el=a;this.La=b;this.c=c;this.bb=true;this.I=true}p.prototype._init=function(a,b,c,d){if(!this.s){this.La=a;this.a=b;this.H=c;this.w=d}};p.prototype._load=function(){if(!this.s){this.s=true;n(this.el,["hdr","ftr_sep","msg_sep"],this);n(this.hdr,["top","sep"]);n(this.hdr.sep,["l","m","r"]);n(this.ftr_sep,["lc"]);this.el.onclick=this.Ba.bind(this);if(this.H!="none"){this.hdr.top.onmousedown=this.Ea.bind(this)}}};p.prototype.D=function(){return false};p.prototype._setPrev=function(a,b){this.prev=a;this.prev_visual_link=b;if(this.prev){this.prev.next=this;this.prev.next_visual_link=b}};p.prototype.Ba=function(){this.select(false)};p.prototype.Ea=function(){this.L();this.select(false)};p.prototype._getDocId=function(){return 0};p.prototype.ia=function(){if(this.H=="under"){if(this.prev&&!this.prev_visual_link){this.prev._load();this.hdr.sep.l.className=this.a?"ctl":"cb pd9";this.hdr.sep.m.className=this.a?"ctop":"";this.hdr.sep.m.style.height=(this.a?4:0)+"px";this.hdr.sep.r.className=this.a?"ctr":"pd8";this.hdr.top.style.borderRight=this.a?"":"1px #e8e8e8 solid";this.prev.ftr_sep.lc.className=this.a?"cbl":"sbl";this.prev.msg_sep.style.display=this.a?"block":"none"}}else{if(this.next&&this.next_visual_link){this.next._load();this.msg_sep.style.display=this.a?"block":"none";this.ftr_sep.style.display=this.a?"block":"none";this.next.hdr.sep.m.style.height=4;if(!this.next.I){this.next.hdr.sep.m.className="ctop"}else{this.next.hdr.sep.m.className="ctopd"}if(this.a){if(!this.next.I){this.next.hdr.sep.l.className="ctl";this.next.hdr.sep.r.className="ctr"}else{this.next.hdr.sep.l.className="ctld";this.next.hdr.sep.r.className="ctr"}}else{if(!this.I){if(!this.next.I){this.next.hdr.sep.l.className="stl";this.next.hdr.sep.r.className="str"}else{this.next.hdr.sep.l.className="stldw";this.next.hdr.sep.r.className="strdw"}}else{if(!this.next.I){this.next.hdr.sep.l.className="stlwd";this.next.hdr.sep.r.className="strwd"}else{this.next.hdr.sep.l.className="stldd";this.next.hdr.sep.r.className="strdd"}}}}}};p.prototype.O=function(){this.ia()};p.prototype.select=function(a){var b=this.c.v!=this;this.c.v=this;this._load();this.c.Y();if(a){this.scrollIntoView(true)}if(b){this.c.dispatchEvent({type:"selmsgchanged",selectedMessage:this})}};p.prototype.scrollIntoView=function(a){var b=this.c.b;if(!this.prev){b.scrollTo(0,0)}else if(this.scroll_anchor){var c=u(this.scroll_anchor),d=u(this.el)+this.offsetHeight;ba(b,c,d,a)}else{Aa(b,this.el,"t")}};p.prototype.L=function(){this.a=!this.a;this.O();this.c.Q()};window._G2_Card=p;function i(a,b,c){p.call(this,null,null,null);this.el=a;this.La="msg_"+b;this.c=c;this.ib=b;this.I=false}i._COMPOSING_TITLE_COLOR="rgb(238, 238, 238)";i.ENABLE_REPLY_TEXT_REQUEST=false;window.MSG_USENET_POSTING_WARNING="";window.MSG_ACTIVE_REPLY_WARNING="";window.MSG_POST_SUCCESSFUL="";i.inherits(p);i.prototype._init=function(a,b,c,d,f,e,h,c){if(!this.s){this.S=a;this.ib=b;this.a=c;this.H=d;this.w=f;this.e=e;this.h=h}};i.prototype._load=function(){if(!this.s){if(this._preLoadHooks){for(var a=0;a<this._preLoadHooks.length;a++){this._preLoadHooks[a].apply(this)}}this.s=true;n(this.el,["hdn_from","hdn_group_name","dl_msg_cb2"],this);if(this.w){n(this.el,["hdr","ftr_sep","msg_sep"],this);n(this.hdr,["top","sep"]);n(this.hdr.sep,["l","m","r"]);n(this.ftr_sep,["lc"]);this.el.onclick=this.Ba.bind(this);if(this.H!="none"){this.hdr.top.onmousedown=this.Ea.bind(this)}}if(this.w){this.fb()}if(this.e){this.U()}if(!this.a){if(this.hdr.top.body_sum.innerHTML==""){x(this.hdr.top.body_sum,M(this.body.inbdy))}}}};i.prototype._addPreLoadHook=function(a){if(!this._preLoadHooks){this._preLoadHooks=[]}this._preLoadHooks.push(a)};i.prototype.D=function(){return true};i.prototype._setIsUsenet=function(a){this.ya=a};i.prototype._setBottomPosting=function(a){this.ga=a};i.prototype._setCanForward=function(a){this.Eb=a};i.prototype._setPostCriticalWarning=function(a){this.da=a};i.prototype._getDocId=function(){return this.S};i.prototype.fb=function(){this.ca=false;n(this.el,["hdr","body","cb"],this);n(this.hdr,["oh"]);n(this.hdr.oh,["f","ra","r"]);n(this.hdr.top,["oh_l","body_sum","prof"]);n(this.body,["inbdy"]);n(this.cb,["f","ra","r"]);this.hdr.top.oh_l.onmousedown=this.rb.bind(this);this.hdr.top.prof.onmousedown=this.sb.bind(this);var a=[[this.cb.r,"r"],[this.cb.f,"f"],[this.cb.ra,"ra"]];for(var b=0;b<a.length;b++){if(a[b][0]){a[b][0].onmousedown=this.Da.bind(this,a[b][1]);a[b][0].onclick=function(){return false}}}var a=[[this.hdr.oh.r,"r"],[this.hdr.oh.f,"f"],[this.hdr.oh.ra,"ra"]];for(var b=0;b<a.length;b++){if(a[b][0]){a[b][0].onclick=this.Da.bind(this,a[b][1])}}};i.prototype.rb=function(a){var a=a||window.event;N(a);this.ca=!this.ca;this.la()};i.prototype.sb=function(a){var a=a||window.event;N(a)};i.prototype.la=function(){this.hdr.top.oh_l.innerHTML=this.ca?"\u9690\u85cf\u9009\u9879":"\u66f4\u591a\u9009\u9879";this.hdr.oh.style.display=this.ca&&this.a?"block":"none"};i.prototype.Da=function(a){this.K(a,true);return false};i.prototype.K=function(a,b){this.Ta();this.U();var c=false;if(!this.e){c=true;this.e=true;this.R=false;this.cb2.cmp_body.value=""}var d=false;if(this.h!=a){d=true;this.h=a;this.Ga()}this.G();if(d||c){if(!this.B&&!this.da&&!(this.ya&&a!="f")){window.setTimeout(this.Pa.bind(this,this.cb2.to.rw),0)}else if(this.W){window.setTimeout(this.na.bind(this,this.cb2.cmp_body,null),0)}}if(this.e&&b){if(this.p){aa(this.c.b,this.cb,this.cb2_cwrn,false)}else{aa(this.c.b,this.cb,this.cb2,false)}}};i.prototype.Pa=function(a){a.focus()};i.prototype.na=function(a,b){if(b!=null){this.cb2.cmp_body.value=b}var c=0;if(this.ga){c=this.cb2.cmp_body.value.length}if(a.createTextRange){var d=a.createTextRange();d.move("character",c);d.select();d.scrollIntoView(c>0?false:true)}else if(a.setSelectionRange){try{a.setSelectionRange(c,c);a.scrollTop=c>0?10000:0}catch(f){}}if(!this.da){this.cb2.cmp_body.focus()}};i.prototype.U=function(){if(this.cb2_loaded!=1){this.B=false;this.o=false;this.j=false;this.J=false;this.n=false;this.W=false;this.zb=false;this.R=false;this.i=[];this.warningsChanged=false;this.p=null;this.u=[];this.Ob=false;this.Gb=5;this.Fb=30;this.Oa=14;this.ma=false;if(this.dl_msg_cb2){Ca(this.dl_msg_cb2,this.c.Wa());this.dl_msg_cb2=null}n(this.el,["cb2","cb2_cwrn","hdn_reply_to_subj","hdn_date","hdn_author","pok"],this);n(this.cb2,["cbar","dc","dc2","send","send2","form","to","cc","flw_to","from","subj","row_mod","wrn","wrn_cnt","no_subj_or","no_body_or","cmp_rsz","cmp_body"]);n(this.cb2.to,["ro","rw","name"]);n(this.cb2.cc,["rw"]);n(this.cb2.from,["ro"]);n(this.cb2.flw_to,["rw"]);n(this.cb2.subj,["rw"]);n(this.cb2.row_mod,["mod_cc","mod_sep_cc_flw","mod_flw_to","mod_sep_flw_subj","mod_subj"]);n(this.cb2_cwrn,["dc","wrn_cnt"]);n(this.pok,["pok_cnt"]);this.cb2.dc=[this.cb2.dc,this.cb2.dc2,this.cb2_cwrn.dc];this.cb2.send=[this.cb2.send,this.cb2.send2];this.c.fa(this.cb2.to.rw);this.c.fa(this.cb2.cc.rw);x(this.cb2.from.ro,this.hdn_from.value);this.hb=this.ub.bind(this);this.gb=this.tb.bind(this);for(var a=0;a<this.cb2.dc.length;a++)this.cb2.dc[a].onclick=this.lb.bind(this);for(var a=0;a<this.cb2.send.length;a++)this.cb2.send[a].onclick=this.mb.bind(this);this.cb2.cmp_body.onkeydown=this.nb.bind(this);this.cb2.row_mod.mod_cc.onmousedown=this.ba.bind(this,"cc");this.cb2.row_mod.mod_flw_to.onmousedown=this.ba.bind(this,"flw_to");this.cb2.row_mod.mod_subj.onmousedown=this.ba.bind(this,"subj");this.cb2.cmp_rsz.onmousedown=this.qb.bind(this);if(!this.w){this.cb2.cbar.style.paddingTop=0}this.cb2_loaded=true;if(this.e){this.Ga();this.G()}}return this.cb2};i.prototype.Ma=function(){if(this.ftr_sep){this.ftr_sep.style.backgroundColor=this.a?(this.e?i._COMPOSING_TITLE_COLOR:"rgb(238, 238, 238)"):"white"}};i.prototype.P=function(){if(this.a&&this.e&&!this.p){if(this.i.length&&this.warningsChanged){var a="";for(var b=0;b<this.i.length;b++){if(b>0){a+="<br><br>"}a+=this.i[b].msg}this.cb2.wrn_cnt.innerHTML=a;this.warningsChanged=false}this.cb2.wrn.style.display=this.i.length?"block":"none";this.cb2.to.ro.style.display=this.B?"block":"none";this.cb2.to.rw.style.display=this.B?"none":"block";this.cb2.cc.style.display=this.o?B:"none";this.cb2.flw_to.style.display=this.n?B:"none";this.cb2.subj.style.display=this.j?B:"none";this.cb2.row_mod.style.display=this.o&&this.j&&(!this.J||this.n)?"none":B;this.cb2.row_mod.mod_cc.style.display=this.o?"none":"inline";this.cb2.row_mod.mod_flw_to.style.display=!this.n&&this.J?"inline":"none";this.cb2.row_mod.mod_subj.style.display=this.j?"none":"inline";this.cb2.row_mod.mod_sep_cc_flw.style.display=!this.o&&(!this.j||!this.n&&this.J)?"inline":"none";this.cb2.row_mod.mod_sep_flw_subj.style.display=!this.j&&!this.n&&this.J?"inline":"none";this.cb2_cwrn.style.display="none";this.cb2.style.display="block"}else{if(this.p){this.cb2_cwrn.wrn_cnt.innerHTML=this.p}this.cb2_cwrn.style.display=this.p&&this.a&&this.e?"block":"none";this.cb2.style.display="none"}};i.prototype.G=function(){if(this.w){var a=[this.cb.r,this.cb.f,this.cb.ra],b=[false,false,false];if(this.h=="r")b[0]=true;if(this.h=="f")b[1]=true;if(this.h=="ra")b[2]=true;for(var c=0;c<a.length;c++){if(a[c]){if(b[c]){a[c].className="sel_cb_t blk b"}else{a[c].className="nsel_cb_t"+(c==0?" b":"")}}}this.cb.style.display=this.a?"block":"none"}this.ja();this.P();this.Ma()};i.prototype.O=function(){this.ia();this.hdr.top.oh_l.style.display=this.a?"inline":"none";this.body.style.display=this.a?"block":"none";this.hdr.top.body_sum.style.display=this.a?"none":"block";this.hdr.top.prof.style.display=this.a?"inline":"none";if(this.hdr.top.body_sum.innerHTML==""){x(this.hdr.top.body_sum,M(this.body.inbdy))}this.G();this.ka();if(this.w){this.la()}};i.prototype.ja=function(){this.U();if(!this.R){if(this.W&&this.g){if(this.h=="f"){this.cb2.cmp_body.value="\n\n\n---------- Forwarded message ----------\nFrom: "+this.g[2]+"\nDate: "+this.g[4]+"\nSubject: "+this.g[3]+"\n"+(this.g[6]!=""?"Cc: "+this.g[6]+"\n":"")+(this.g[5]!=""?"To: "+this.g[5]+"\n":"")+"\n\n"+this.g[0]}else{var a=(this.ga?"":"\n\n")+"On "+this.g[4]+", "+this.g[2]+" wrote:\n"+this.g[1]+(this.ga?"\n\n":"");this.cb2.cmp_body.value=a;if(this.cb2.cmp_body.value.length==0){window.setTimeout(this.na.bind(this,this.cb2.cmp_body,a),0)}}}else{this.cb2.cmp_body.value=""}}};i.prototype.ua=function(){this.U();var a="",b="",c=this.hdn_author.value,d=this.hdn_reply_to_subj.value,

⌨️ 快捷键说明

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