📄 g4.1.js
字号:
window.g_loadedStyleID=g_StyleID=top.g_Configuration.style;var rigItems=top.g_Configuration.items;var skinIdx=-1;for(var i=0; i<rigItems.length; i++){if(rigItems[i].type==1){skinIdx=i;break;}}if(skinIdx==-1){rigItems=insertGlobalConfig("items",[1,1,0,0,0,0,0],true).items;skinIdx=rigItems.length-1;}var isVer4=g_Configuration.version==4;if(isVer4){loadedFullMode=top.g_Configuration.fullMode;frameStyle=top.g_Configuration.frameStyle;rigItems[skinIdx].zindex &=(1<<6)-1;rigItems[skinIdx].zindex |=loadedFullMode?(1<<6):0;rigItems[skinIdx].zindex |=(frameStyle<<7);}else{loadedFullMode=rigItems[skinIdx].zindex & 64;}setCSS(g_StyleID,loadedFullMode,true);}function fillBody(){loginmode=(g_iLoginUin>10000);ownermode=loginmode&&g_iLoginUin==g_iUin;safemode=ownermode&&((getParameter("safe")=="1"));if(safemode)loadedFullMode=0;setFileCookie("isFullMode",loadedFullMode?1:0,0,"qzone.qq.com");zoneMode=loadedFullMode?"izone":"qzone";if(ownermode){setCookie("ownerFullMode",loadedFullMode?1:0,0);}var titleHTML=g_Templet["bl_mm"].replace(/__mClass__/i,loadedFullMode?"topb":"").replace(/__width__/i,!loadedFullMode?"auto":"721px").replace(/__backgroundImage__/i,loadedFullMode?"background-image:none;":"");if(top.isBiz)titleHTML=titleHTML.replace(/__sLink__/i,g_Templet["s2"]);else if(top.isStar)titleHTML=titleHTML.replace(/__sLink__/i,g_Templet["s3"]);elsetitleHTML=titleHTML.replace(/__sLink__/i,g_Templet["s1"]);document.write(dwrite_string.replace(/__mbodyinner__/,g_Templet["mbodyContent"].replace(/__height__/,(loadedFullMode?"30":"18")).replace(/__style__/g,(loadedFullMode?' style="background:transparent none !important"':'')).replace(/__blmminner__/,titleHTML)));}function start(){startStepMark[1]=new Date();initModule();startStepMark[2]=new Date();setTimeout(autoChangeFlowers,0);setTimeout(closeLoading,1500);window.visitCountScript=includeJS("");if(safemode)showTips("您的空间现在处于<strong>安全模式</strong>,如果您需要退出安全模式,请点击<a style='color:#CE0201' href='http://user.qzone.qq.com/"+g_iLoginUin+"'><strong>这里</strong></a>");}function initModule(){if(safemode){frameStyle=0;addSystemWindows("safemode");}else{showRigItems();addSystemWindows();if(qccSkin)$("innerFrame").style.display="none";}wait();}function closeLoading(){top.hitcounter(7,0);loadingPlayed=false;removeElement($("loading"));stopAllMediaModule(flashPlayed);}function createToolbar(){if(flashPlayed)return;var tB=$("toolbarFrame");if(!tB){var tB=document.createElement("div");tB.style.width="100%";tB.style.height="30px";tB.style.marginRight=zoneMode=="qzone"?"0":"17px";tB.id="toolbarFrame";$("toolbarContainer").appendChild(tB);includeJS("qzone/toolbar/toolbarNew.js");}}function windowResize(){autoChangeFlowers();resizeWarningArea();}function showTop(){if(invalidXDoc(3))return;var _tmp=top.g_XDoc[3].selectSingleNode("/data/passport");if(!!_tmp)vipFlags=_tmp.text;if($("spacename")){var spacename=top.g_XDoc[3].selectSingleNode("/data/spacename").text;var spacedesc=top.g_XDoc[3].selectSingleNode("/data/desc").text;var nickname=top.g_XDoc[3].selectSingleNode("/data/nickname").text;var hostName=location.hostname;var inUserDomain=/(user)|(rc)/ig.test(hostName);var spaceURL=biz.bizName?biz.bizName:("http://"+(inUserDomain?(top.g_iUin+".qzone.qq.com"):hostName));var _title;if(isStar)_title=nickname.decode()+"-"+spacename.decode()+"-腾讯博客"+"["+spaceURL+"]";else_title=spacename.decode()+"["+spaceURL+"]";document.title=_title.replace(/'/g,"\'");$("spacename").innerHTML=spacename;$("qzoneurl").innerHTML=spaceURL;$("spaceexplain").innerHTML=spacedesc;}showDiamon();}function showDiamon(){if(invalidXDoc(3))return;if(getVipFlag("diamon")=="1"){var s;if(g_iUin==g_iLoginUin&&g_iLoginUin>10000){s="<a href='http://paycenter.qq.com/cgi-bin/showopenservice.cgi?service_type=home&subtype=1&clientuin="+g_iUin+"&clientkey="+getCookie("zzpanelkey")+"' target='_blank'><img src='qzone/mall/hz.gif' border='0' align='absmiddle' title='您是黄钻贵族用户'></a>";}else{s="<a href='http://paycenter.qq.com/cgi-bin/showopenservice.cgi?service_type=home&subtype=1' target='_blank'><img src='qzone/mall/hz.gif' border='0' align='absmiddle' title='该用户是黄钻贵族用户'></a>";}top.$("diamon").innerHTML=s;}}function initMusic(){try{if(!frames['ifrMusicPlayer']||!frames['ifrMusicPlayer'].document||frames['ifrMusicPlayer'].document.readyState!="complete"||!WMPlayer){setTimeout(initMusic,2000);return;}}catch(e){setTimeout(initMusic,2000);return;}try{new ActiveXObject("QQPlayerSvr.PlayerCtrl");bUseVQQPlayer=true;}catch(e){bUseVQQPlayer=false;}if(bUseVQQPlayer){VQQPlayer=new QQPlayer();VQQPlayer.createActiveX(true,false,false,"qqplayer","0","0",PANEL_UIN_COOKIE_NAME,PANEL_KEY_COOKIE_NAME,"http://www.qq.com");VQQPlayer.initialize();}else{MediaPlayer=new WMPlayer();$("proxy").innerHTML+=MediaPlayer.createActiveX(true,false,"wmplayer","0","0",PANEL_UIN_COOKIE_NAME,PANEL_KEY_COOKIE_NAME,"http://www.qq.com");MediaPlayer.initialize();MediaPlayer.invokeURLs=false;try{$("wmplayer").settings.volume=100;}catch(e){};}with(frames['ifrMusicPlayer'])setTimeout(addPlayList,2000);}function guideButton(i){guide(i);}function custom_menu_swf(idx,frameName,url){switch(parseInt(idx)){case 2:top.hitcounter(8,37);break;case 3:top.hitcounter(10,54);break;case 4:top.hitcounter(11,62);break;case 5:top.hitcounter(9,48);break;case 7:top.hitcounter(12,65);break;case 8:top.hitcounter(14,76);break;default:break;}top.sdsFlashSW=true;guide(parseInt(idx),frameName,url);}function guide(idx,frameName,url,postfix){if(!top.sdsFlashSW){switch(idx){case 2:if(!top.sdsBlogSW)top.hitcounter(8,38);break;case 3:top.hitcounter(10,55);break;case 4:top.hitcounter(11,63);break;case 5:if(!top.sdsPhotoSW)top.hitcounter(9,49);break;case 7:top.hitcounter(12,66);break;case 8:top.hitcounter(14,77);break;default:break;}}top.sdsPhotoSW=false;top.sdsBlogSW=false;top.sdsFlashSW=false;guidebutton(idx,frameName,url,postfix);}function checkBlogNow(){if(!!top.blogEditNow){if(!!confirm("您正在编辑日志并且没有保存,点击“确定”将丢失您所编辑的内容!")){top.blogEditNow=false;return false;}elsereturn true;}return false;}function guidebutton(idx,frameName,url,postfix){if(!postfix)postfix="";elsepostfix=postfix+"";if(isNaN(idx))return;if(checkBlogNow())return;try{top.$('tblog').contentWindow.cancelWriteMode();}catch(error){}if(mallFlag){resetManageButtons(false);if(g_EditFlag&&confirm("保存更改到新的方案吗?")){saveScenario();mallFlag=0;return;}leaveEditMode(true);mallFlag=0;setTimeout(function(){guidebutton(idx)},0);return;}hideMsgbox();hideHelp();if(idx!=1) setTimeout('showIndexArea(0)',0);$("innerFrame").style.display="";if(!!top.g_XDoc["blogRoot"])top.g_XDoc["blogRoot"].listCache.initialed=false;switch(idx){case 1:showIndexArea(true);if(!bIndex){bIndex=true;isRefreshTop=false;setSystemWindowsContent();setCustomWindowsContent();}if(isRefreshTop){setSystemWindowsContent();isRefreshTop=false}try{top.$('tblog').contentWindow.cancelWriteMode();}catch(e){}tall('blank','about:blank');resizeContain();break;case 2:if(isNewBlog)tall('tblog','qzone/newblog/bloglist.html'+postfix);elsetall('tblog','qzone/blog/blog.html'+postfix);break;case 3:try{if(ownermode)DIYmusic();}catch(e){}tall('tmusic','http://'+top.g_Music_Domain+'/fcg-bin/fcg_music_showhome.fcg?uin='+g_iUin);break;case 4:tall('tgb','qzone/blog/tmygb_static.htm'+postfix);break;case 5:tall('tphoto','http://'+g_Photo_Domain+'/qzone_v4/album_list.htm'+postfix);break;case 6:tall('thome',"http://"+g_Main_Domain+"/client/home.html"+postfix);break;case 7:if(ownermode)tall('ttinfo','qzone/admin/user_infomation_main.html'+postfix);elseif(biz.bizHtml)tall('thudong',biz.bizHtml+postfix);elsetall('thudong','qzone/admin/user_infomation.html'+postfix);break;case 8:tall('thudong',"qzone/interact/intera_friend_main.html"+postfix);break;case 10:tall('tblog','qzone/blog/blog_mood.html'+postfix);break;case 11:var u;if(getBitMapFlag(29)>0){u='qzone/club/main.htm';}else if(getBitMapFlag(30)>0){u='qzone/club/ClubList.htm';}else if(getBitMapFlag(27)>0){u='qzone/club/Search.htm';}else{u=false;}if(u){tall('ic',u);}break;case 12:var color=SPACE_COLOR[top.g_StyleID]?SPACE_COLOR[top.g_StyleID]:"ffffff";tall('qqvideo','http://video.qq.com/qzwview.htm?uin='+top.g_iUin+"&color="+color);break;case 13:tall('act','qzone/biz/act/act.htm');break;case 14:tall('infoCenter','qzone/interact/infoCenter.html');break;case 99:tall(frameName,url);break;}if(top.isBiz){if(frameName=="act"){sendBrandPvUvScript(top.g_iUin,4,13,0);}else if(idx==1){sendBrandPvUvScript(top.g_iUin,6,idx,0);}else{sendBrandPvUvScript(top.g_iUin,4,idx,0);}}else if(top.isStar){fillCommentPV("http://pgv_qzone.qq.com/qzone_stat/pgv_data_get.php?uin="+top.g_iUin);}}function callCommand(strCommand){var dialogOptions="scroll:no;status:no;dialogWidth:410px;dialogHeight:445px;";var dialogURL="http://imgcache.qq.com/qzone/custom/q4_setting_inc.html";hideTips();switch(strCommand){case "changeStyle":hidePhoto(4);var rValue=showModalDialog(dialogURL,[window.top,2],dialogOptions);showPhoto(4);if(rValue) exeCommand(rValue[0],rValue[1]);break;case "moduleOptions":buildWndArray();var rValue=showModalDialog(dialogURL,[window.top,1],dialogOptions);if(rValue) exeCommand(rValue[0],rValue[1]);break;case "layoutOptions":var rValue=showModalDialog(dialogURL,[window.top,0],dialogOptions);if(rValue) exeCommand(rValue[0],rValue[1]);break;case "enterMyMall":enterMall('myitem');break;case "newModule":g_commentFlag='new';var para=new Array(window.top,0);showModalDialog("http://imgcache.qq.com/qzone/custom/cus_mod_new.html",para,"status:no;dialogWidth:418px;dialogHeight:500px");break;case "zoneSwitch":var rValue=showModalDialog(dialogURL,[window.top,3],dialogOptions);if(rValue) exeCommand(rValue[0],rValue[1]);break;case "reset":index_reset_default();break;default:}g_EditFlag=1;event.returnValue=false;return false;}function module_set(){enterEditMode();callCommand("moduleOptions");}function exeCommand(commandID,arguments){switch(commandID){case 0:if(typeof arguments=="number")frameSwitch(arguments);showPhoto(4);break;case 1:break;case 2:break;case 3:if(arguments)modeSwitch(arguments);break;}}function module_uphoto(abID){showModalDialog("http://"+top.g_Photo_Domain+"/cgi-bin/qzone3/cgi_show_upload_multi?albumid="+abID,window.top,"scroll:no;status:no;dialogWidth:750px;dialogHeight:550px;");top.RefreshXMLDataAsync(16,null,function(){top.isRefreshTop=true;});}function index_reset_default(){if(confirm('恢复默认后,首页界面布局及装扮方案将会恢复到初始状态,已购买的任何物品均不会丢失,可在我的物品中重新装扮,确认继续吗?')){removeAllModule("mod");removeAllModule("float");removeFloatItem();removeFlower();removeMouse();removeWelFlash();currentStyle[49]=null;removeElement($("qccFlash"));qccSkin=false;setQCCFrame();if(zoneMode!="qzone"){currentStyle[1]=[1,0,80,0,0,82];}else{currentStyle[1]=[1,0,0,0,0,0];}top.pubItemId="";g_EditFlag=1;var c=loadedStyle[1]=currentStyle[1];loadedStyle[13]=[13,1,0,0,0,0,1];space_addItem(1,c[0],c[1],c[2],c[3],c[4],c[5]);space_addItem(13,1,0,0,0,0,1);space_addItem(19,1,0,0,0,0,0);fillDefaultModule();saveScenario();window._resetDefault=true;}}function saveComplete(reload,guide){if(reload||(isStar&&window._resetDefault)){top.location="http://user.qzone.qq.com/"+top.g_iUin;return;}if(typeof guide=="object"){top.showIndexArea(false);top.guidebutton(99,guide.name,guide.url);return;}if(mallFlag)enterMall();elsetop.guidebutton(1);}function addWindow(type,itemno,posx,posy,width,height,zindex,addtype){if(type<99){addSystemWindow(type,itemno,posx,posy,width,height,zindex);setWindowContent(SYSTEM_MODULE_PREFIX+itemno);}else{addCustomModule(itemno,width,height,posx,posy);loadCustomData(itemno)}}function wait(){bIndex=false;var sQueryString=location.search.substr(1);var sPath=location.pathname;var rBlogPath=/^\/?.*\/blog\/(\d+)$/i;var rClubPath=/^\/?.*\/club\/(\d+)$/i;var rClubListPath=/^\/?.*\/clublist\/(\d+)$/i;var rActPath=/^\/?.*\/act\/(\d+)$/i;if(rClubPath.test(sPath)){var topicId=sPath.match(rClubPath)[1];g_aParams["url"]="qzone/club/r/index.htm?"+topicId;openClubUrl(g_aParams["url"]);}else if(rClubListPath.test(sPath)){var listId=sPath.match(rClubListPath)[1];g_aParams["url"]="qzone/club/l/index.htm?brdid="+listId;openClubUrl(g_aParams["url"]);}else if(/^\/?\d*\/club\/?$/gi.test(sPath)){guide(11);}else if(/^\/?.*\/clubinvite\/?$/i.test(sPath)){g_aParams["url"]="qzone/club/main.htm#invite=1";openClubUrl(g_aParams["url"]);}else if(rBlogPath.test(sPath)){var blogId=sPath.match(rBlogPath)[1];showIndexArea(false);clearTimeout(top.customVarContainer.timeStepStat);tall("tblog",(isNewBlog?("qzone/newblog/blogcontent.html#bid="+blogId):("qzone/blog/blog.html#blogId="+blogId+"&v=2")));}else if(rActPath.test(sPath)){var actId=sPath.match(rActPath)[1];showIndexArea(false);tall("act","qzone/biz/act/act.htm#actId="+actId);}else if(/\/mall/ig.test(sPath)){enterMall("",true);}else if(/\/interact/gi.test(sPath)){guide(8);}else if(/\/blog/gi.test(sPath)){guide(2);}else if(/\/act/gi.test(sPath)){guide(13);}else if(/\/addNewBlog/gi.test(sPath)){writeBlog(getParameter("content"),getParameter("title"),getParameter("category"));}else if(/\/admin/gi.test(sPath)){guide(7);}else if(/\/tipssetting/gi.test(sPath)){guide(8,null,null,"#2");}else if(/\/home/gi.test(sPath)){guide(6);}else if(/\/msgboard/gi.test(sPath)){guide(4);}else if(/\/photo/gi.test(sPath)){guide(5);}else if(/\/music/gi.test(sPath)){guide(3);}else if(/\/mail/gi.test(sPath)){guide(7,null,null,"#8");}else if(/\/qqtx/gi.test(sPath)){guide(7,null,null,"#9");}else if(g_aParams['openmall']){enterMall('openmall',true);}else if(g_aParams['myitem'])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -