📄 userlogin.js
字号:
document.domain="baidu.com";document.write("<style>#shadowDiv{display:none;width:100%;height:100%;position:absolute;top:0px:left:0px;background-color:#FFF;filter: alpha(opacity=70);opacity:0.7;z-index:65534}#popDiv{border:1px solid #78b664;display:none;position:absolute;width:450px;height:300px;z-index:65535;background-color:#fff;}a.tLink{color:#000;text-decoration: none;}#webimmsg{cursor:pointer;position:relative;}#im_count{position:absolute;height:17px;top:-4px;left:26px;}#im_count{background:url(http://img.baidu.com/img/iknow/images/impop.gif) no-repeat top right;}#im_count b{background:url(http://img.baidu.com/img/iknow/images/impop.gif) no-repeat top left;padding:0 2px 4px 4px;margin-right:2px;display:block;color:#fff;line-height:12px;}</style>");function bind(C,B){if(arguments<=1){return C}var A=Array.prototype.slice.call(arguments,2);if(A.length>0){return function(){C.apply(B,A.concat(Array.prototype.slice.call(arguments)))}}return function(){C.apply(B,arguments)}}if(!(typeof (Fe)=="object"&&Fe&&Fe.version)){var Fe={version:"20080809",emptyFn:function(){}}}Fe.body=function(){var A=0,J=0,E=0,C=0,B=0,K=0;var F=window,D=document,I=D.documentElement;A=I.clientWidth||D.body.clientWidth;J=F.innerHeight||I.clientHeight||D.body.clientHeight;C=D.body.scrollTop||I.scrollTop;E=D.body.scrollLeft||I.scrollLeft;B=Math.max(D.body.scrollWidth||0,I.scrollWidth||0);K=Math.max(D.body.scrollHeight||0,I.scrollHeight||0,J);return{scrollTop:C,scrollLeft:E,documentWidth:B,documentHeight:K,viewWidth:A,viewHeight:J}};Fe.each=function(E,A){if(E){if(E.length==undefined){for(var B in E){A.call(E[B],E[B],B)}}else{for(var C=0,D=E.length;C<D;C++){A.call(E[C],E[C],C)}}}return E};Fe.G=function(){for(var A=[],B=arguments.length-1;B>-1;B--){var C=arguments[B];A[B]=null;if(typeof (C)=="object"&&C&&C.dom){A[B]=C.dom}else{if((typeof (C)=="object"&&C&&C.tagName)||C==window||C==document){A[B]=C}else{if(typeof (C)=="string"&&(C=document.getElementById(C))){A[B]=C}}}}return A.length<2?A[0]:A};Fe.extend=function(D,A,C){if(C){Fe.extend(D,C)}if(D&&A&&typeof (A)=="object"){for(var B in A){D[B]=A[B]}}return D};Fe.extend(Fe,(function(){var D=navigator.userAgent;var E=0,C=0,A=0,F=0,H=0,B=0;if(D.indexOf("Safari")>-1&&/Version\/(\d+(\.\d+)?)/.test(D)){E=RegExp.$1}if(window.opera&&/Opera(\s|\/)(\d+(\.\d+)?)/.test(D)){A=RegExp.$2}if(D.indexOf("Gecko")>-1&&D.indexOf("KHTML")==-1&&/rv\:(\d+(\.\d+)?)/.test(D)){H=RegExp.$1}if(/MSIE (\d+(\.\d+)?)/.test(D)){F=RegExp.$1}if(/Firefox(\s|\/)(\d+(\.\d+)?)/.test(D)){B=RegExp.$2}if(D.indexOf("KHTML")>-1&&/AppleWebKit\/([^\s]*)/.test(D)){C=RegExp.$1}return({isStrict:document.compatMode=="CSS1Compat",isSafari:E,isWebkit:C,isOpera:A,isGecko:H,isIE:F,isFF:B})})());Fe.hide=function(){Fe.each(arguments,function(A){if(A=Fe.G(A)){A.style.display="none"}})};Fe.show=function(){Fe.each(arguments,function(A){if(A=Fe.G(A)){A.style.display=""}})};Fe.on=function(C,B,A){if(!(C=Fe.G(C))){return false}B=B.replace(/^on/,"").toLowerCase();if(C.attachEvent){C[B+A]=function(){A.call(C,window.event)};C.attachEvent("on"+B,C[B+A])}else{C.addEventListener(B,A,false)}};Fe.un=function(C,B,A){if(!(C=Fe.G(C))){return C}B=B.replace(/^on/,"").toLowerCase();if(C.detachEvent){C.detachEvent("on"+B,C[B+A]);C[B+A]=null}else{C.removeEventListener(B,A,false)}return C};Fe.ready=function(){var C=false,E=false,D=[];function A(){if(!C){C=true;Fe.each(D,function(H,F){H()})}}function B(){if(E){return }E=true;if(document.addEventListener&&!Fe.isOpera){document.addEventListener("DOMContentLoaded",A,false)}if(Fe.isIE&&window==top){(function(){if(C){return }try{document.documentElement.doScroll("left")}catch(H){setTimeout(arguments.callee,0);return }A()})()}if(Fe.isOpera){document.addEventListener("DOMContentLoaded",function(){if(C){return }for(var H=0;H<document.styleSheets.length;H++){if(document.styleSheets[H].disabled){setTimeout(arguments.callee,0);return }}A()},false)}if(Fe.isSafari){var F;(function(){if(C){return }if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return }if(F===undefined){F=0;var K=document.getElementsByTagName("style");var I=document.getElementsByTagName("link");if(K){F+=K.length}if(I){for(var J=0,H=I.length;J<H;J++){if(I[J].getAttribute("rel")=="stylesheet"){F++}}}}if(document.styleSheets.length!=F){setTimeout(arguments.callee,0);return }A()})()}Fe.on(window,"load",A)}return function(F){if(typeof F!="function"){return false}B();if(C){F()}else{D[D.length]=F}}}();function G(A){return Fe.G(A)}function lockButton(A){A=G(A);A.disabled=true;setTimeout(function(){A.disabled=false},3000)}function insertWbr(D,A){if(D.length<=A){return D}var B=document.createElement("textarea");try{B.innerHTML=D}catch(E){B.value=D}var C=B.value;C=C.replace(new RegExp("(\\S{"+A+"})","img"),"$1<wbr>");C=C.replace(/<wbr>/img,"\u0001").replace(/<br>/img,"\u0002").replace(/</img,"<").replace(/>/img,">").replace(/\u0002/img,"<br>").replace(/\u0001/img,"<wbr>");if(Fe.isOpera){C.replace(/<wbr>/img,"<i style='margin-left:-4px;opacity: 0'> </i>")}return C}String.prototype.trim=function(){return this.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+$)/g,"")};String.prototype.byteLength=function(){return this.replace(/[^\u0000-\u007f]/g,"\u0061\u0061").length};String.prototype.format=function(){if(arguments.length==0){return this}for(var B=this,A=0;A<arguments.length;A++){B=B.replace(new RegExp("\\$"+A+"\\$","g"),arguments[A])}return B};if(![].push){Array.prototype.push=function(){for(var A=0;A<arguments.length;A++){this[this.length]=arguments[A]}return this.length}}if(![].pop){Array.prototype.pop=function(){var A=this[this.length-1];this.length--;return A}}function addEvent(C,B,A){Fe.on(C,B,A)}function proxy(){var C=[];for(var B=0,A=arguments.length;B<A;B++){C[B]=arguments[B]}var D=C[0];C.shift();return function(){D.apply(null,C)}}function changeClassName(F,C,A){var D=G(F);var B=new RegExp("\\b"+C+"\\b","g");var E=D.className.replace(C,"");D.className=(A?E+" "+C:E);return true}function addClassName(B,A){changeClassName(B,A,true)}function removeClassName(B,A){changeClassName(B,A,false)}function getCookie(C){var B="(?:; )?"+C+"=([^;]*);?";var A=new RegExp(B);if(A.test(document.cookie)){return decodeURIComponent(RegExp["$1"])}else{return null}}function setCookie(F,H,B,C,A,E){var D=F+"="+encodeURIComponent(H);if(B){D+="; expires="+B.toGMTString()}if(C){D+="; path="+C}if(A){D+="; domain="+A}if(E){D+="; secure"}document.cookie=D}function userLogin(B,C,A){if(B){onLoginSuccess=B}else{onLoginSuccess=defalutLoginSuccess}if(C){onLoginFailed=C}else{onLoginFailed=defaultLoginFail}A="?"+(A?A+"&":"")+"t="+(new Date()).getTime();Pop.show("登录",{url:"/userlogin.html"+A,width:400,height:300})}var defalutLoginSuccess=function(){window.location.reload()};var onLoginSuccess=defalutLoginSuccess;var loginSuccess=function(){Pop.hide();onLoginSuccess()};var defaultLoginFail=function(){window.location="http://passport.baidu.com/?login&tpl=ik&u="+escape("http://zhidao.baidu.com/")};var onLoginFailed=defaultLoginFail;var loginFailed=function(){Pop.hide();onLoginFailed()};function FactoryXMLHttpRequest(){if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP")}else{if(window.XMLHttpRequest){return new XMLHttpRequest()}else{return null}}}function request(B,A,D){var C=FactoryXMLHttpRequest();C.open("GET",B,true);C.onreadystatechange=proxy(function(H,E,F){if(H.readyState==4){if(H.status==200){E(H)}else{F(H)}}},C,A,D);C.send(null)}function checkLogin(hasLogin,notLogin,p){function onOk(req,hasLogin,notLogin){if(!!eval("("+req.responseText+")")){hasLogin();return true}userLogin(hasLogin,notLogin,p);return false}request("/q?ct=28&lm=1&t="+(new Date()).getTime(),function(req){onOk(req,hasLogin,notLogin)},hasLogin)}function checkLoginF(A,B){checkLogin(A,A,B)}var Pop={onOk:function(){},onclosed:function(){},create:function(){if(!G("popDiv")){var B=document.createElement("div");B.id="shadowDiv";var C=document.createElement("div");C.id="popDiv";var A=document.createElement("iframe");A.id="shadowIframe";A.style.filter="alpha(opacity=0)";A.style.opacity="0";A.style.position="absolute";C.style.width=C.style.height="500px";C.innerHTML='<div id="popTitle"><table width="100%" cellspacing="0" bgcolor="#78b664" cellpadding="0" border="0" style="-moz-user-select: none; height: 24px;"><tr><td width="6" height="24"/><td id="dialogBoxTitle" style="color:#fff; font-size: 14px; font-weight: bold;"></td><td id="dialogClose" width="20" valign="middle" align="right"><input id="dialogBoxClose" onclick="Pop.hide()" width="16" type="image" height="16" border="0" align="absmiddle" title="关闭" src="http://img.baidu.com/img/iknow/dialogclose.gif"/></td><td width="6"/></tr></table></div><div id="popBody" style="display:none;text-align:center;padding:20px;font-size:14px;"></div><div id="ifrDiv"><iframe id="popIframe" name="popIframe" width="98%" frameborder="0" height="90%" scrolling="no" src="about:blank"></iframe></div>';document.body.insertBefore(A,document.body.firstChild);document.body.insertBefore(C,document.body.firstChild);document.body.insertBefore(B,document.body.firstChild);addEvent(window,"resize",Pop.resize)}},resize:function(){Pop.create();var K=Fe.body().scrollTop;var H=Fe.body().documentWidth||500;var A=Fe.body().documentHeight||500;var J=G("shadowDiv");var E=G("popDiv");var D=G("shadowIframe");var I=parseInt(E.style.width,10)||500;var B=parseInt(E.style.height,10)||500;J.style.width=H+"px";J.style.height=A+"px";D.style.width=(H-20)+"px";D.style.height=(A-20)+"px";J.style.left=J.style.top="0px";D.style.top=D.style.left="5px";var F=(Fe.body().viewWidth-I)/2;var C=(Fe.body().viewHeight-B)/2+K;if(F<1){F=K}if(C<1){C="20"}E.style.left=F+"px";E.style.top=C+"px"},hide:function(){Pop.onclosed();try{G("popDiv").style.display="none";G("shadowDiv").style.display="none";G("shadowIframe").style.width="0px";G("shadowIframe").style.height="0px";G("shadowIframe").style.display="none"}catch(B){}try{G("popIframe").src="about:blank"}catch(A){try{document.frames.popIframe.location="about:blank"}catch(A){}}},config:function(F,A){if(F){G("dialogBoxTitle").innerHTML=F}Pop.onclosed=A.onclosed||function(){};if(A.url){if(A.url!=true){try{G("popIframe").src=A.url}catch(D){try{document.frames.popIframe.location=A.url}catch(D){}}}G("ifrDiv").style.display="block";G("popBody").style.display="none"}else{if(A.info){G("ifrDiv").style.display="none";G("popBody").style.display="block";G("popBody").innerHTML=A.info}}var B=A.width||450;var E=A.height||400;var C=G("popDiv");C.style.width=B+"px";C.style.height=E+"px"},show:function(B,A){Pop.create();Pop.config(B,A);Pop.resize();G("popDiv").style.display="block";G("shadowDiv").style.display="block";G("shadowIframe").style.display=""},confirm:function(C,B){Pop.onOk=proxy(function(D){Pop.onclosed=function(){};Pop.hide();D()},B.ok||Pop.hide);var A="<span class='f14'>$2$</span><br><br><p align='center'><input type='button'value='$0$' onclick='Pop.onOk();'> <input type='button'value='$1$' onclick='Pop.hide()'></p>";A=A.format(B.okInfo||"确定",B.cancelInfo||"取消",C);Pop.show(B.title||"信息确认",{info:A,width:(B.width||300),height:(B.height||150),onclosed:B.cancel})}};function TopLoginSuccess(){window.location.reload()}function TopLoginFail(){window.location="http://passport.baidu.com/?login&tpl=ik&u="+escape(location.href)}function NewAskTop(){if(document.ftop.word.value.trim()==""){function B(){document.ftop.word.value=G("emptyAskTitle").value;NewAskTop()}var A="<form style='text-align:left;margin-top:25px' name='empform' onsubmit='return false'><div style='background:url(http://img.baidu.com/img/iknow/noteicon.gif) 0 0 no-repeat;padding:4px 0 8px 24px;font-size:14px'>请输入您的提问标题:</div><input size='42' id='emptyAskTitle'><br /><input type='button' class='bnsrh' style='margin-top:4px' value='继续提问' id='empaskbtn'> <a href='http://www.baidu.com/search/zhidao_help.html#%C8%E7%BA%CE%CC%E1%CE%CA' target='_blank' style='font-size:12px;'>如何提问</a></form><br><br>";Pop.show(" ",{info:A,width:350,height:240});G("empaskbtn").onclick=B;setTimeout(function(){G("emptyAskTitle").focus()},100);document.empform.onsubmit=function(){B();return false};stat("btn=ask");return false}else{document.fask.word.value=document.ftop.word.value}document.fask.submit()}function newQuestionSearch(){if(document.ftop.word.value.trim()==""){function B(){document.ftop.word.value=G("empWord").value;document.ftop.fr.value="answersearch_0";newQuestionSearch()}var A="<form style='text-align:left;margin-top:25px;' name='empform' onsubmit='return false' id='empform'><div style='background:url(http://img.baidu.com/img/iknow/noteicon.gif) 0 0 no-repeat;padding:4px 0 8px 24px;font-size:14px'>请输入关键词,搜索您感兴趣的问题:</div><input size='40' id='empWord'><br><input type='button' class='bnsrh' style='margin-top:4px' value='搜索问题' id='epbtn'><span style='padding-left:10px;font-size:12px'>期待您的回答!</span></form><br><br>";Pop.show(" ",{info:A,width:350,height:240});G("epbtn").onclick=B;setTimeout(function(){G("empWord").focus()},100);document.empform.onsubmit=function(){B();return false};stat("btn=answersearch");return false}document.ftop.lm.value=65536;if(document.ftop.fr.value!="answersearch_0"){document.ftop.fr.value="answersearch"}document.ftop.submit()}function qSearch(){if(document.ftop.word.value.trim()==""){function B(){document.ftop.word.value=G("emptySearchTitle").value;document.ftop.fr.value="search_0";qSearch()}var A="<form style='text-align:left;margin-top:25px' name='empSearchForm' onsubmit='return false'><div style='background:url(http://img.baidu.com/img/iknow/noteicon.gif) 0 0 no-repeat;padding:4px 0 8px 24px;font-size:14px'>请输入您要搜索的问题:</div><input size='40' id='emptySearchTitle'><br /><input type='button' class='bnsrh' style='margin-top:4px' value='继续搜索' id='qsearchButton'></form><br><br>";Pop.show(" ",{info:A,width:350,height:240});G("qsearchButton").onclick=B;setTimeout(function(){G("emptySearchTitle").focus()},100);document.empSearchForm.onsubmit=function(){B();return false};stat("btn=search");return false}document.ftop.lm.value=0;if(document.ftop.fr.value!="search_0"){document.ftop.fr.value="search"}document.ftop.submit()}function NewAskBottom(){document.ftop.word.value=document.fbot.word.value;NewAskTop()}function AddScore(){document.faddscore.submit()}function EditAnswer(){if(checkcoAndsn(document.myform,"回答")){document.myform.submit()}}function JudgeBestAnswer(){document.fpj.submit()}if(typeof (HTMLElement)!="undefined"&&!window.opera){HTMLElement.prototype.__defineGetter__("innerText",function(){return this.textContent});HTMLElement.prototype.__defineSetter__("innerText",function(A){this.textContent=A})}var G_HIBAR=(function(){var H=document,E,D,C,B=3;function A(K,I,J){K.style.display=C?"none":"block";K.style.left=I+"px";K.style.top=J+"px"}function F(I){C&&G_HIBAR(I)}addEvent(window,"resize",F);addEvent(document,"click",F);return function(J){(J||window.event).cancelBubble=true;E=E||H.getElementById("usrbar");D=D||H.getElementById("nav_extra");var K=H.getElementById("my_home"),L=E.scrollHeight,I=0;do{I+=K.offsetLeft}while(K=K.offsetParent);I=I-6;A(D,I,B);C=!C}})();var tipArr=new Array();var IknowTip=(function(){var F=60000,K=null,L=0,C=0,U=300,N=10;var D=null,X=new Array(),T=true,P=false;var J=false,Q,H=false,I=new Date(Date.parse("Jan 1, 2026"));var S=location.host.replace(/:\d+/,"");function V(){if(H){if(document.all){detachEvent(window,"resize",V)}else{removeEventListener(window,"resize",V)}return false}var Y=document.getElementById("my_home");var Z=0;Q=Q||G("tip_holder");do{Z+=Y.offsetLeft}while(Y=Y.offsetParent);G("tip").style.display="block";Q.style.display="block";Q.style.left=(document.getElementById("usercenter"))?(Z-4)+"px":(Z-182)+"px";K=setTimeout(function(){L++;E()},F)}function W(){Q=Q||G("tip");Q.style.display="none";H=true;clearTimeout(K)}function M(){if(!getCookie("BDTIPTYPE")||getCookie("BDTIPTYPE")=="none"){setCookie("BDTIPTYPE","none",I,"/",S)}D=getCookie("BDTIPTYPE");if(getCookie("BDTIPID")&&getCookie("BDTIPID")!="none"){var Y="";X=getCookie("BDTIPID").split("-");X.pop();if(X.length>=U){for(var Z=X.length-U;Z<X.length;Z++){Y+=X[Z]+"-"}X=X.slice(X.length-U);setCookie("BDTIPID",Y,I,"/",S)}}J=true}var E=function(){if(!G("tip")){return false}if(L>=tipArr.length||(L-C)>=N||P){W();return false}if(!J){M()}if(A(tipArr[L])){if(T){setTimeout(proxy(O,tipArr[L].info_id+""+tipArr[L].type),100);T=false}R(tipArr[L])}else{L++;E()}};function B(){if(!G("tip_close")){return false}if(!G("tip_url2")){return false}if(!G("tip_url1")){return false}function Z(){clearTimeout(K);O(tipArr[L].info_id+""+tipArr[L].type);L++;setTimeout(E,100)}function Y(){O(tipArr[L].info_id+""+tipArr[L].type);W();Y=true}G("tip_close").onclick=Y;G("tip_url2").onclick=G("tip_url1").onclick=Z}function A(a){for(var Z in a){if(a[Z]=="null"||a[Z]==null){return false}}if(D&&D.indexOf(a.type)>-1){C++;return false}if(X.length){var b=a.info_id+""+a.type;for(var Z=0,Y=X.length;Z<Y;Z++){if(b==X[Z]){return false}}}return true}function R(b){var a=insertWbr(b.content,16);var Z=b.icon_href;var Y=Z+(Z.indexOf("?")>-1?"&":"?")+"tiptype="+b.type;G("tip_url1").href=G("tip_url2").href=Y;G("tip_icon").src=b.icon_src;G("tip_title").innerHTML=b.title;G("tip_txt").innerHTML=a;G("tip_url2").innerHTML=b.link_text;V()}function O(Y){if(!getCookie("BDTIPID")){setCookie("BDTIPID",Y+"-",I,"/",S)}else{var Z=getCookie("BDTIPID");setCookie("BDTIPID",Z+Y+"-",I,"/",S)}X.push(Y)}Fe.on(window,"load",B);Fe.on(window,"resize",E);return E})();Fe.ready(IknowTip);function stat(A){if(document.images){(new Image()).src="/stat?"+A+"&t="+(new Date()).getTime()}}window.IMOld=(function(){var E=null,D=0,F=null,B=null;H.interval=30*1000;H.url="http://fetch.im.baidu.com/ihaloader?op=msgcount&charset=gbk&callback=IMOld&refer=tieba.baidu.com";H.reset=function(){H.onchange(0);I(0);if(H.timer){clearInterval(H.timer)}C()};H.fetch=function(){E=A();B=new Date().getTime();if(E){E=E.split("|");B=parseInt(E[1],36);D=E[0];E=null}setTimeout(function(){J();C();if(D>0&&typeof (H.onchange)=="function"){H.onchange(D)}},1000)};function J(){I(D);F=document.createElement("SCRIPT");F.type="text/javascript";F.src=H.url+(H.url.indexOf("?")>0?"&":"?")+".stamp="+new Date().getTime().toString(36);document.getElementsByTagName("HEAD")[0].appendChild(F)}function I(M){var K=new Date(),L=K.getTime();K.setTime(L+3*H.interval);document.cookie="IM_old="+M+"|"+L.toString(36)+";domain=baidu.com;path=/;expires="+K.toGMTString();if(F){F.parentNode.removeChild(F);F=null}}function A(){var K=document.cookie.match(/(^| )IM_old=([^;]*)(;|$)/);if(K!=null){return unescape(K[2])}return null}function C(){H.timer=setInterval(function(){var K=A(),M=0,L=0;if(K){K=K.split("|");L=parseInt(K[1],36);M=K[0];K=null}if(Math.abs(new Date().getTime()-L)>H.interval){J()}if(D!=M){D=M;if(typeof (H.onchange)=="function"){H.onchange(M)}}},500)}function H(K){I(K)}return H})();window.startBaiduHi=(function(){var D=navigator.userAgent.indexOf("MSIE")>-1&&!window.opera,F=navigator.userAgent.indexOf("Firefox")!=-1;function C(){var B="";try{B=new ActiveXObject("WebDetect.Detect").GetVersion()}catch(I){}try{if(typeof (navigator.mimeTypes["application/x-baiduhi"])=="object"){B=".*"}}catch(I){}return B}function H(I){var B=new Date(),J=B.getTime();B.setTime(J+30*1000);document.cookie="IM_add="+escape(I+"|hi.baidu.com|"+(new Date().getTime()).toString(36))+";domain=baidu.com;path=/;expires="+B.toGMTString();if(!/(^| )IM_=/.test(document.cookie)){if(H.f&&H.f.tagName=="FORM"){H.f.submit();return }var J=document.createElement("DIV");J.style.display="none";document.body.insertBefore(J,document.body.firstChild);J.innerHTML="<form name='__IM_REDIRECT_FORM' method='get' target='baidu_webim' action='http://web.im.baidu.com'></form>";H.f=document.forms.__IM_REDIRECT_FORM;H.f.submit();J=null}}function E(I){var B=[];for(prop in I){if(prop!="onim"&&prop!="onwebim"){B.push(prop+"="+I[prop])}}return(B.length>0?"&"+B.join("&"):"")}function A(B,L,J,K){var M=document.createElement("script");document.body.appendChild(M);M.src="http://im.baidu.com/nop?type="+B+"&sid="+L+"&id="+J+E(K)+"&t="+new Date().getTime()}return function(K,N,L,M){A(K,N,L,M);var J=C();if(J==""){if(/c2cmsg|message|addcontact|addgroup|creategroup/i.test(K)){H(L);if(M&&M.onwebim){M.onwebim()}}return false}if(!(new RegExp(J.replace(/(\.)/g,"\\."),"i").test(K))){return false}var B="baidu://"+K+"/?sid="+N+"&id="+L+E(M);if(D){B=B+"&browser=IE"}else{if(F){B=B+"&browser=FF&promo=c2cmsg|message|addgroup|creategroup|addcontact"}}if(M&&M.onim){M.onim()}window.location.href=B}})();var webimIknow=(function(){var I=this;var B=null;var J=100;var A=300;var H=6;function K(){I.im=G("webimmsg");if(!I.im){return }I.im.innerHTML=" | <img alt='发起即时会话' align='absmiddle' src='http://img.baidu.com/img/iknow/images/hi.gif'/>";var M=document.createElement("span");M.id="webim_msgcount";M.style.visibility="hidden";M.innerHTML="<span></span>";I.im.appendChild(M);I.imCount=M;I.userName=G("usercenter").getElementsByTagName("strong")[0].innerHTML;var N=document.createElement("span");N.id="im_count";N.innerHTML="<span></span>";I.im.appendChild(N);I.count=N;Fe.hide(N);C();IMOld.onchange=D;IMOld.url+="&un="+I.userName;IMOld.fetch()}function C(){I.im.title=I.count.title="发起即时会话";I.im.onclick=I.count.onclick=L}function L(){startBaiduHi("message",I.userName,"",{clk:"icon",src:"zhidao",stat:"userbar"});J=100}function D(M){if(M>0){I.count.innerHTML="<b>"+M+"</b>";I.imCount.innerHTML="10"+M;J=0;clearInterval(B);B=setInterval(E,A)}else{F()}}function E(){Fe[J%2?"hide":"show"](I.count);J++;if(J>H){clearInterval(B);Fe.show(I.count)}}function F(){clearInterval(B);Fe.hide(I.count);I.imCount.innerHTML=""}Fe.ready(K)})();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -