📄 g4.1.js
字号:
$("shareObject").set("seed",Math.random());$("shareObject").set(key,value);$("shareObject").flush();}}function getShareData(key){if(window._shareObjectReady)return $("shareObject").get(key);elsereturn "";}function setClipboard(value){if(window._shareObjectReady)$("shareObject").setClipboard(value);elsecopyToClip(value);}function clearShareData(){if(window._shareObjectReady)$("shareObject").clear();}function getShareDataSize(){if(window._shareObjectReady)return $("shareObject").getSize();elsereturn-1;}function getShareObjectPrefix(){window._shareObjectReady=true;return location.host.match(/\w+/)[0];}function buildShareObject(){if(flashVersion.major<8){window._shareObjectReady=false;return false;}var shareObjectDiv=document.createElement("div");document.body.appendChild(shareObjectDiv);shareObjectDiv.innerHTML=insertFlash({src:"http://"+top.imgcacheDomain+"/qzone/dataset/getset.swf",id:"shareObject",width:0,height:0,allowscriptaccess:"always"});}function objectClone(obj){if((typeof obj)===(typeof null)){var res=(!obj.sort)?{}:[];for(var i in obj)res[i]=objectClone(obj[i]);return res;}return obj;}String.prototype.Text2HTML=function(){var d=document.createElement("DIV");if(Browser.isIE){d.innerText=this;return d.innerHTML}d.textContent=this;return d.innerHTML.replace(/\x0a/g,"<br>").replace(/ /g," ")};String.prototype.s2n=function(unit){if(!unit)unit="px";var re=new RegExp(unit+"$","i");return parseInt(this.replace(re,""),10);};function checkLogin(){if(top.g_iLoginUin>10000){var t=parseInt(top.getCookie("zzpaneluin"),10);if(!isNaN(t)&&(t==top.g_iLoginUin))return top.g_iLoginUin;elsereturn 0;}elsereturn 0;}function query_string_parse(){var queryHash={};queryHash["isSearch"]=(location.search.substr(1)=="")?false:true;var sentence=queryHash["isSearch"]?location.search.substr(1):false;if(sentence){var re=/(\w+)=([^&]*|)/g;var cnt=0;while((arr=re.exec(sentence))!=null){queryHash[arr[1]]=arr[2];cnt++;}if(cnt==0&&!((/[\=\?\&]/).test(sentence))){queryHash[sentence]=true;}}return queryHash;}function openUserSpace(iUin,sUrl){var openUrl;if(!iUin)openUrl="http://qzone.qq.com";elseopenUrl="http://user.qzone.qq.com/"+iUin;if(sUrl)openUrl=openUrl+"?url="+escape(sUrl);if(getCookie("clientver")=="")window.open(openUrl);elsetop.location=openUrl;}function openAvatar(){if(ownermode){showIndexArea(false);tall("个人信息","ttinfo","http://"+top.imgcacheDomain+"/qzone/admin/user_infomation_main.html#11");}else{guide(7);}}function openBrand(){top.sendBrandPvUvScript(top.g_iUin,4,0,1);window.open("http://brand.qq.com");}function addFavorUin(uin){if(top.isBiz){top.sendBrandPvUvScript(top.g_iUin,4,0,2);}if(!(top.checkLogin()>10000)){top.showLoginBox("fav");return;}if(!uin)uin=g_iUin;showModalDialog("http://imgcache.qq.com/qzone/admin/ubb_fav.html",{"other_uin":uin,"uin":top.g_iLoginUin,"main":top.g_Main_Domain,"property":top.g_Property},"dialogHeight: 360px; dialogWidth: 350px; resizable=yes;status:no");}function showLoginBox(s,t,msg){if(!!s&&!!t)s+=("&anon="+((!!t)?1:0));if(!!s&&!!msg)s+=("&msg="+encodeURIComponent(msg));popupDialog("登录Qzone",'<iframe border="no" style="border:none;width:240px;height:270px" src="http://imgcache.qq.com/qzone/toolbar/loginbox.html'+(!!s?('?para='+s):'')+'"></iframe>',242,292);if(!!event)event.returnValue=false;}function showIndexArea(b){$("main").style.display=b?"":"none";$("myFrame").style.display=b?"none":"";}function tall(fId,surl){stopAllMediaModule((fId!="blank"));if(arguments.length>2){fId=arguments[1];surl=arguments[2];}var miFrame=$("myFrame").childNodes[0];if(miFrame){miFrame.src="about:blank";removeElement(miFrame);}if(surl=="about:blank")return;miFrame=document.createElementByName("iframe",fId);miFrame.scrolling=(fId=="mallinfo")?"no":"auto";with(miFrame){frameBorder="0";width="738";height=(fId=="mallinfo")?"483":"462";allowTransparency=true;if(fId=="mallinfo")disabled=true;style.cssText="overflow-y:hidden";}$("myFrame").appendChild(miFrame);miFrame.id=fId;miFrame.src=surl;miFrame=null;$(bodyId).scrollTop="0px";resizeMyFrame();closeAllMedia();}function openUserHome(){showIndexArea(false);tall('thome','http://home.qq.com/home/initial.shtml?author=tencent&uin='+g_iUin);}function openBlog(archive,id){hitcounter(8,39);var sUrl;if(isNewBlog){if(!id)sUrl="qzone/newblog/bloglist.html";elsesUrl="qzone/newblog/blogcontent.html#bid="+id;}elsesUrl="qzone/blog/blog.html#blogId="+id+"&v=2";top.g_XDoc["hiddensign"]=true;openBlogUrl(sUrl);if(event)event.returnValue=false;}function openCategory(cateName){hitcounter(8,40);if(g_EditMode==0)return;var sUrl;if(isNewBlog)sUrl="qzone/newblog/bloglist.html?cate="+cateName;elsesUrl="qzone/blog/blog.html#category="+cateName;openBlogUrl(sUrl);}function openBlogUrl(sUrl){showIndexArea(false);g_aParams["url"]=sUrl;tall("tblog",unescape(sUrl));}function openClubTopic(aId){var sUrl='/qzone/club/r/index.htm?'+aId;openClubUrl(sUrl);}function openClubBoard(aBid){var sUrl='/qzone/club/l/index.htm?brdid='+aBid;openClubUrl(sUrl);}function openClubUrl(sUrl){if(editMode=="editable"){return;}showIndexArea(false);tall("ic",unescape(sUrl));}function openAlbum(albumid,photoid){top.sdsPhotoSW=true;top.hitcounter(9,50);if(g_EditMode==0)return;photoid=parseInt(photoid);var sUrl;if(isNaN(albumid)||albumid==0)sUrl="/qzone_v4/album_list.htm";elsesUrl="/qzone_v4/photo_list.htm#a_id="+albumid;showIndexArea(false);tall("相册","photod","http://"+top.g_Photo_Domain+sUrl);}function openAlbumUrl(sUrl){showIndexArea(false);tall("tphoto",sUrl);}function uploadPhoto(){openAlbumUrl("http://"+top.g_Photo_Domain+"/qzone_v4/select_upalbum.htm?1.0.2.2");}function switchTab(id,key){hitcounterArr={"info1":[12,67],"info2":[12,68],"info3":[12,69],"buddy1":[14,79],"buddy2":[14,78]};if(event&&event.type=="click")hitcounter(hitcounterArr[id][0],hitcounterArr[id][1]);if(id=="info2"){if(biz.bizDoc)$("info2").innerHTML='<img src="'+biz.bizDoc+'" alt=""/>';else if(getBitMapFlag(27)>0)with($("info2").getElementsByTagName("LI")[1])innerHTML=innerText+"<img src='qzone/mall/hz.gif'>";}if(lastTab[key])$(lastTab[key]).style.display="none";try{var e=event.srcElement;var es=e.parentNode.getElementsByTagName("A");for(var i=0;i<es.length;i++)es[i].style.fontWeight=(e==es[i]?"bold":"");}catch(e){};$(id).style.display="";lastTab[key]=id;if(key=="buddy"){$(id).innerHTML=LOADING_TIPS;if(arguments[2]=="r"){loadSystemData(6,0,function(){showFav()});}else{loadSystemData(4,0,function(){showVisitor()});}}return false}function removeUBB(s){s=s.replace(/\[em\]e(\d{1,3})\[\/em\]/g,"<img src='qzone/em/e$1.gif' align='absmiddle'><wbr>");s=s.replace(/\[(img)\].*\[\/img\]/ig,"");s=s.replace(/\[(flash)\].*\[\/flash\]/ig,"");s=s.replace(/\[(video)\].*\[\/video\]/ig,"");s=s.replace(/\[(audio)\].*\[\/audio\]/ig,"");s=s.replace(/\[\/?(b|url|img|flash|video|audio|ftc|ffg|fts|ft|email|center|u|i|marque|m|r|quote)[^\]]*\]/ig,"");return s;}function shortcutKey(evt){evt=getEvent(evt);if(!evt)return;if(evt.ctrlKey||evt.altKey){switch(evt.keyCode){case 74:enterEditMode();return;case 83:saveScenario();return;case 66:guide(2);return;case 77:guide(7);return;case 71:enterMall();return;}}if(evt.keyCode==27&&editMode=="editable")leaveEditMode();}function resizeMyFrame(){try{var mFrame=$("myFrame").childNodes[Browser.isIE?0:1];if(mFrame.id=="ticoke"&&zoneMode!="qzone"){mFrame.style.height="550px";return;}with(mFrame.contentWindow.document){var fH=(compatMode=="BackCompat"?body.scrollHeight:documentElement.scrollHeight);}if(zoneMode!="qzone"&&parseInt(mFrame.style.height)==fH){return;}mFrame.style.height=(zoneMode=="qzone")?(mFrame.id=="mallinfo"?"483px":"461px"):(((fH<461)?461:fH)+"px");}catch(e){}}function openChatbox(uin){var url="tencent://Message/?websiteName=qzone.qq.com&Menu=yes&Uin="+uin;try{top.document.frames["hidentarget"].location=url;}catch(e){window.open(url);}}function wSwf_obj_swf(arg){var welFlash=$("wFlash");if(!welFlash)return;removeElement(welFlash);flashPlayed=false;if(!$("toolbarFrame"))createToolbar();else$("toolbarFrame").style.display="";stopAllMediaModule(false);}function wSwf_obj_swf_s(arg){wSwf_obj_swf(arg);}function blogOpen(id){toShowBlog(id,true);}function blogClose(id){toShowBlog(id,false);}function toShowBlog(id,b){$("bHide_"+id).style.display=b?"":"none";$("bShow_"+id).style.display=b?"none":"";$("article_"+id).style.display=b?"":"none";}function showTips(text){var qMode=zoneMode=="qzone";$("hintText").innerHTML=text;with($("hintTop")){className=qMode?"hint-top miniTips yellow_hint":"hint-top fullTips yellow_hint";style.display="";}if(!qMode) $("toolbarContainer").style.display="none";if(window.closeTipsFnList===undefined)window.closeTipsFnList=[];}function hideTips(){while(window.closeTipsFnList&&window.closeTipsFnList.length>0){(window.closeTipsFnList.pop())();}window.closeTipsFnList=void(window.closeTipsFnList=null);$("toolbarContainer").style.display="";$('hintTop').style.display='none';}function showMsgbox(msg,type,liveTime,imageSrc,isCenter,left,top){msg=(!msg)?"正在处理,请稍候...":msg;var msgBox=getElementInBody("msgBoxDiv","div");msgBox.style.cssText="position:absolute;width:100%;left:0px;top:0px;text-align:center;height:100%;";var strHTML='';if(imageSrc){strHTML+='<img src="'+imageSrc+'" border="0"/>';var img=new Image();img.src=imageSrc;h=parseInt(img.height);}else{var p="qzone_v4/",h="40",b="",n="",w="52";switch(type){case 1:n="n";break;case 2:b="b";h="82";w="71";break;case 3:b="b";n="n";w="71";h="82";break;default:;}var l=p+"waiting"+b+"_l.gif";var m=p+"waiting"+b+"_m.gif";var r=p+"waiting"+b+"_r"+n+".gif";var msgTemp=g_Templet["msgbox"];strHTML+=msgTemp.replace(/_l_/g,l).replace(/_c_/g,m).replace(/_r_/g,r).replace(/_h_/g,h).replace(/_w_/g,w).replace(/__Text__/g,msg);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -