📄 g4.1.js
字号:
msgBox.innerHTML=strHTML;msgBox.style.width=(lastZoneMode=="qzone"&&!isCenter)?"800px":"100%";msgBox.style.marginLeft=left?left:((lastZoneMode=="qzone"&&!isCenter)?"45px":"0px");msgBox.style.paddingTop=top?top:((lastZoneMode=="qzone"&&!isCenter)?"252px":(msgBox.offsetHeight / 2)-(h /2));if(liveTime)window.setTimeout(hideMsgbox,liveTime);}function hideMsgbox(){var msgBox=$("msgBoxDiv");if(!msgBox)return;removeElement(msgBox);}function hideHelp(key){if(typeof key=="string"&&$("helpZY").templetKey!=key)return;$("helpZY").innerHTML="";}function showHelp(key){hideHelp();if(getCookie("notS")==1||!ownermode)return;$("helpZY").innerHTML=g_Templet[key];$("helpZY").templetKey=key;}function setNS(){if(getCookie("notS")!=1)setFileCookie("notS",1,0,"qzone.qq.com");elsesetFileCookie("notS",0,0,"qzone.qq.com");}function playMedia(id,url,width,height,ext,openDialog){var isQQVideo=/^http:\/\/((\w+\.|)video|v).qq.com/i.test(url);var isImgCache=/^http:\/\/imgcache.qq.com/i.test(url);var isComic=/^http:\/\/comic.qq.com/i.test(url);width=(!width)?(frameStyle>2?320:498):width;height=(!height)?(frameStyle>2?200:315):height;var strHTML="";if(ext=="swf"){strHTML=insertFlash({src:url,width:width,height:height,allowscriptaccess:'never',allowFullScreen:(isQQVideo?'true':'false'),allowNetworking:(isQQVideo|isImgCache|isComic?'all':'internal')});}else if(ext=="mp3"||ext=="wma"){strHTML=insertWMP({src:url,width:width,height:69,autostart:1,showstatusbar:1,allowNetworking:'internal',allowscriptaccess:'never'},false,true);}else{strHTML=insertWMP({src:url,width:width,height:height,autostart:1,showstatusbar:1,allowNetworking:'internal',allowscriptaccess:'never'},false,true);}if(openDialog){popupDialog("在线播放器",strHTML,parseInt(width)+2,parseInt(height)+24)}else{var playbox=$(id);if(!playbox){g_Opened_Media[id]=null;return;}if(g_Opened_Media[id]){closeMedia(id);return;}g_Opened_Media[id]=true;playbox.style.display="";$("link_"+id).innerHTML="点击关闭在线播放";playbox.innerHTML=strHTML;}}function closeMedia(id){if(g_Opened_Media[id]){var playbox=$(id);if(!playbox){g_Opened_Media[id]=null;return;}$("link_"+id).innerHTML="点击这里在线播放";playbox.innerHTML="";playbox.style.display="none";g_Opened_Media[id]=null;}}function closeAllMedia(){for(key in g_Opened_Media){if(g_Opened_Media[key])closeMedia(key);}}var g_readStat={isBind:false,haveTried:false,Expr:/040\d$/};function hitcounter(iAction,iType){with(g_readStat){if(!haveTried){if(window.g_iLoginUin!=0)isBind=(Expr.test(top.g_iLoginUin.toString()));elseisBind=(0.001>=Math.random());haveTried=true;}if(isBind)send_stat_request("http://viewpoint.qzone.qq.com/fcg-bin/cgi_read_stat.fcg?uin="+top.g_iUin+"&action="+iAction+"&type="+iType+"&sex="+((!top.g_XDoc[3]||top.g_XDoc[3].selectSingleNode("/data/sex")==null)?0:top.g_XDoc[3].selectSingleNode("/data/sex").text)+"&yellow="+top.getVipFlag("diamon")+"&zoneMode="+((zoneMode=="izone")?1:0)+"&r="+Math.random(),4000);}}function send_stat_request(url,t){if(!top.tempStatistic)top.tempStatistic=[];var l=top.tempStatistic.length;top.tempStatistic[l]=new Image();with(top.tempStatistic[l]){onload=onerror=new Function('this.ready=true;this.onload=this.onerror=null;top.stat_image_clean();');}top.setTimeout("top.tempStatistic["+l+"].src='"+url+"';",t);}function stat_image_clean(){var t=[];for(var i=0,l=top.tempStatistic.length;i<l;i++){if(!!top.tempStatistic.ready)t.push(i);}for(var i=0,l=t.length;i<l;i++){delete top.tempStatistic[t[i]];}}function loadSeed(update){randomSeed=getCookie("randomSeed");if(!randomSeed||update){randomSeed=parseInt(Math.random()*10000000);setFileCookie("randomSeed",randomSeed,0,"qzone.qq.com");}}function refreshQzone(o){loadSeed(true);if(o){o.parentNode.innerHTML='<div class="right">正在刷新...</div>';}var blogMod=g_MDoc.mod[SYSTEM_MODULE_PREFIX+"15"];if(blogMod){sUrl="http://feeds.qzone.qq.com/cgi-bin/cgi_rss_clear?uin="+top.g_iUin+"&property="+top.g_Property+"&vuin="+top.g_iLoginUin+"&s="+Math.random();document.frames["hidentarget"].location=sUrl;}window.setTimeout(function(){top.location.href='http://'+top.g_Main_Domain+'/cgi-bin/user/cgi_user_refresh'},2000);}function setCSS(id,isFull,documentWriteMode){top.g_StyleID=id;var styleMini=[//预处理小窝图片'qzone_v4/'+id+'/backline_tl.gif','qzone_v4/'+id+'/backline_tm.gif','qzone_v4/'+id+'/backline_tr.gif','qzone_v4/'+id+'/backline_ml.gif','qzone_v4/'+id+'/backline_mr.gif','qzone_v4/'+id+'/backline_fl.gif','qzone_v4/'+id+'/backline_fm.gif','qzone_v4/'+id+'/backline_fr.gif'];var styleFull=[//预处理全屏图片'qzone_v4/'+id+'/bg_title_topb.gif'];var styleImages=[//预处理全局图片'qzone_v4/'+id+'/style.gif','qzone/images/client/icon_n.gif'];if(false){if(!isFull)preImage(styleMini); else preImage(styleFull);preImage(styleImages);}var sURL=(top.g_StyleID<1||(!window.isBiz&&top.g_StyleID>20))?"qzone_v4/1/index_style_out.css":("qzone_v4/"+top.g_StyleID+"/index_style_out.css");if(documentWriteMode){dwrite_string=dwrite_string.replace(/__mainstyle__/,'<link rel="stylesheet" rev="stylesheet" href="'+sURL+'" type="text/css" media="screen" id="ieCSS_'+g_StyleID+'"/>');return;}if(Browser.isIE){if(lastStyleID>0&&lastStyleID!=top.g_StyleID)removeElement($("ieCSS_"+lastStyleID));cssSheet=document.createElement("link");with(cssSheet){rel="stylesheet";rev="stylesheet";type="text/css";media="screen";href=sURL;id="ieCSS_"+g_StyleID;}document.getElementsByTagName("head")[0].appendChild(cssSheet);cssSheet=null;lastStyleID=top.g_StyleID;}else{$("mozillaCSS").href=sURL;}}function preImage(img){for(i=0;i<img.length;i++){preImg[preImg.length]=new Image();preImg[preImg.length-1].src=img[i];try{if(preImg[preImg.length-1].readyState=="complete"){return};}catch(e){}}}function showTopButton(){if(!Browser.isIE)return;var vTop=parseInt($("mbody").scrollTop);var h=400;if(vTop<h){$("returnTop").style.display="none";}else{var o=(vTop-h)/2;$("returnTop").style.display="";if(o<=100)$("returnTop").filters.alpha.opacity=o;else if(o!=100)$("returnTop").filters.alpha.opacity=100;}}function resizeWarningArea(){if($("warningArea").style.display=="none")return;var _wH=$("maskArea").style.height;var _mH=$("mbody").scrollHeight;if(parseInt(_wH)!=_mH)$("warningArea").style.height=_mH;$("mbody").scrollLeft=0;}function popupDialog(title,html,width,height){if(!window.popUpReady){createPopUpDom();}showMask();var content=$("popUpMain");var strHTML=g_Templet["dialog"].replace(/__Title__/gi,title).replace(/__HTML__/gi,html);with(content){innerHTML=strHTML;style.display="";style.width=width+"px";style.height=height+"px";style.left=(document.body.offsetWidth-width)/2-20+"px";style.top=(document.body.offsetHeight-height)/2-20+"px";}$("popupContent").style.height=height-24+"px";addEvent($("popupTitle"),"mousedown",gItemDragStart);}function closePopup(){if(window.popupCallback)window.popupCallback();window.popupCallback=null;hideMask();var content=$("popUpMain");content.style.display="none";setTimeout(function(){$("popupContent").innerHTML="";},10);}function createPopUpDom(){var content=document.createElement("div");with(content){id="popUpMain";style.cssText="position:absolute;z-index:1001;";className="dragItem";}document.body.appendChild(content);window.popUpReady=true;}function showMask(){var mask=getElementInBody("popUpMask","","","","","position:absolute;left:0px;top:0px;width:100%;height:100%;z-index:1000;background:#000;filter:Alpha(enabled=true,opacity=30)");mask.style.display="";try{hideToolBar();}catch(e){}}function hideMask(){var mask=$("popUpMask");if(!!mask)mask.style.display="none";try{showToolBar();}catch(e){}}function showTitle(obj,html){var sT=document.getElementById("sTitle");if(!sT) {sT=document.createElement("div");sT.id="sTitle";sT.style.cssText="position:absolute;border:1px solid #000;padding:2px;background:#FFFFCC;font-size:12px";document.body.appendChild(sT);}sT.style.display="";sT.style.left=getPosition(obj).left;sT.style.top=getPosition(obj).top-25-document.getElementById((zoneMode=="izone")?"mbody":"main").scrollTop;sT.innerHTML=html;clearTimeout(window._stTimeout);}function hideTitle(){var sT=document.getElementById("sTitle");sT.style.display="none";}function toHideTitle(){hideTitle();}function gItemDragStart(evt){evt=getEvent(evt);var dragDiv=getParentByClass(evt.srcElement,"dragItem");if(!dragDiv)return false;if(evt.srcElement.tagName=="OBJECT")return;if(Browser.isIE)document.body.setCapture();g_MDoc["drag"]={status:true,object:dragDiv,saveData:dragDiv.saveData,x:evt.clientX-parseInt(dragDiv.style.left),y:evt.clientY-parseInt(dragDiv.style.top),revertZIndex:dragDiv.style.zIndex}dragDiv.style.zIndex=1500;addEvent(document,"mousemove",gItemDragMove);addEvent(document,"mouseup",gItemDragEnd);if(Browser.isMozilla)evt.preventDefault();}function gItemDragMove(evt){evt=getEvent(evt);if(evt.btn!=1){gItemDragEnd();return}if(g_MDoc["drag"]){var mX=evt.clientX-g_MDoc["drag"].x;var mY=evt.clientY-g_MDoc["drag"].y;if(mY<0)mY=0;var mH=document.body.offsetHeight-24;var mW=document.body.offsetWidth;if(mY>mH)mY=mH;if(mX<0)mX=0;if((mX+g_MDoc["drag"].object.offsetWidth)>mW)mX=mW-g_MDoc["drag"].object.offsetWidth;g_MDoc["drag"].object.style.left=mX+"px";g_MDoc["drag"].object.style.top=mY+"px";}return false;}function gItemDragEnd(){if(g_MDoc["drag"].saveData){userD.save(g_MDoc["drag"].object.id+"_x_"+top.g_iUin,g_MDoc["drag"].object.style.left);userD.save(g_MDoc["drag"].object.id+"_y_"+top.g_iUin,g_MDoc["drag"].object.style.top);}g_MDoc["drag"].object.style.zIndex=g_MDoc["drag"].revertZIndex;g_MDoc["drag"]=null;if(Browser.isIE)document.body.releaseCapture();removeEvent(document,"mousemove",gItemDragMove);removeEvent(document,"mouseup",gItemDragEnd);}function openCheck(){var c=window.open("http://imgcache.qq.com/qzone/check","check")if(!c)alert("抱歉无法打开小诊所,请检查您的浏览器是否屏蔽了弹出窗口");}function invalidXDoc(id){if(!top.g_XDoc[id])return-1;if(!isValidXMLdom(top.g_XDoc[id]))return-2;if(top.g_XDoc[id].selectNodes("//error").length>0)return-3;return 0;}function buildWndArray(){g_WndArray=[];for(k in g_MDoc["mod"]){if(!g_MDoc["mod"][k])continue;g_WndArray.push({"type":g_MDoc["mod"][k].modeType,"itemno":g_MDoc["mod"][k].itemno,"modID":g_MDoc["mod"][k].id});}if(currentStyle[7]){g_WndArray.push({"type":7,"itemno":currentStyle[7][0],"modID":""});return g_WndArray.length-1;}return 0;}function showMsgSender(){var qqnum=!!arguments[0]?arguments[0]:"";var title=!!arguments[1]?arguments[1]:"";var content=!!arguments[2]?arguments[2]:"";var s=([encodeURIComponent(qqnum),encodeURIComponent(title),encodeURIComponent(content)]).join("|");popupDialog("发送小纸条",'<iframe border="no" style="border:none;width:600px;height:422px" src="http://imgcache.qq.com/qzone/admin/msg_editor.html?para='+s+'"></iframe>',580,410);}var g_bigVericodeLogin={isActive:false,redirectURL:"",redirectTarget:""};var userD=new userData();if(getBitMapFlag(29)){g_Mod[23]=["Club最新文章",355,285,182,2,"",713,530,2,2,"",MINI_MENU,FULL_MENU,HIDDEN_MENU,'guidebutton(11)'];}if(getBitMapFlag(30)){g_Mod[24]=["我加入的Club",175,285,2,292,"",355,285,182,2,"",MINI_MENU,FULL_MENU,HIDDEN_MENU,'openClubUrl("/qzone/club/ClubList.htm")'];}if(isStar){g_Mod[26]=["友情链接",175,285,2,292,"friendLinkTemplet",0,0,0,0,"",LINKS_MENU,LINKS_MENU,LINKS_MENU,'',true];}function getVipFlag(f){if(/^diamon$/i.test(f))return getBitMapFlag(27);elsereturn 0;}function initCSS(){insertCSS(0,".ownerMode","display:none");insertCSS(0,".clientMode","");insertCSS(0,".editMode","display:none");insertCSS(0,".loginMode","display:none");insertCSS(0,".A","");insertCSS(0,".mTable td","");insertCSS(0,".fullMode","display:none");insertCSS(0,".miniMode","display:none");insertCSS(0,".userMode","");insertCSS(0,".flowerLeft1","left:825px");insertCSS(0,".flowerLeft2","left:795px;");insertCSS(0,".staticDiv","position:static !important;");insertCSS(0,".gFourMode","");}function init(){checkBiz();g_aParams=query_string_parse();start();}function checkBiz(){if(bizQzone[g_iUin]){isBiz=true;biz=bizQzone[g_iUin];for(k in biz.modName)g_Mod[k][0]=biz.modName[k];if(g_iLoginUin&&g_iLoginUin>10000){var bizPing=new Image();bizPing.src="http://p2.qzone.qq.com/fcg-bin/fcg_brand_accessuin?branduin="+g_iUin+"&accessuin="+g_iLoginUin;}}}function visitCountCallBack(o){window.clearTimeout(window.visitCountTimer);window.visitCountTimer=null;if(window.visitCountPlus)o=visitCountPlus(o);g_FlowerXDoc=top.g_XDoc["flowerXDoc"]=o;if(window.visitCountCallBack2){visitCountCallBack2();}if(!top.isBiz&&!top.isStar){var e=$("dayvisit");if(e)e.innerHTML=g_FlowerXDoc.dayvisit;var e=$("visitcount");if(e)e.innerHTML=g_FlowerXDoc.visitcount;}showUserDegreeInCache(o);}function checkUserStyle(){if(!top.g_Configuration||!top.g_Configuration.style){document.write('<img src="http://'+imgcacheDomain+'/qzone/nostyle.gif">');window.styleError=true;return;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -