window.locationn=29.266986,105.788368&output=html

QQ秀页面源码查看---HTML--JS - lcs-帅 - 博客园
&html xmlns=""&&head&&/head&&frameset framespacing="0" border="0" frameborder="0" cols="214,*" rows="*"&&frame id="sideFrame" scrolling="no" noresize="noresize" name="leftfra" src="/inc/sidebar.html" mce_src="/inc/sidebar.html"&&html lang="zh-cn" xml:lang="zh-cn" xmlns=""&&head&&/head&&body id="side" onclick="pgvWatchClick();"&&div id="container"&&h1&&/h1&&div id="qshowBox"&&/div&&div id="FLASH_TIPS_ID" class="tips" style="display:"&&/div&&/div&&script language="Javascript"&&div class="sourceRow"&&a class="sourceLine"&1&/a&&span class="sourceRowText"&&/span&&/div&&div class="sourceRow"&&a class="sourceLine"&2&/a&&span class="sourceRowText"&var SDC_js=document.createElement(&script&);&/span&&/div&&div class="sourceRow"&&a class="sourceLine"&3&/a&&span class="sourceRowText"&window.setTimeout('SDC_js.src=&http://imgcache.qq.com/cssdc/qqshow/qqshow2_wholesite_sdc.js&',0);&/span&&/div&&div class="sourceRow"&&a class="sourceLine"&4&/a&&span class="sourceRowText"&var headElem=document.getElementsByTagName(&head&)[0];&/span&&/div&&div class="sourceRow"&&a class="sourceLine"&5&/a&&span class="sourceRowText"&headElem.appendChild(SDC_js);&/span&&/div&&div class="sourceRow"&&a class="sourceLine"&6&/a&&span class="sourceRowText"&//noEmotion();&/span&&/div&&div class="sourceRow"&&a class="sourceLine"&7&/a&&span class="sourceRowText"&&/span&&/div&&/script&&/body&&/html&&/frame&&frameset framespacing="0" border="0" frameborder="0" rows="118,*"&&frame id="headerFrame" scrolling="no" noresize="noresize" name="topfra" src="/inc/header.html" mce_src="/inc/header.html"&&html lang="zh-cn" xml:lang="zh-cn" xmlns=""&&head&&meta content="text/ charset=gb2312" http-equiv="Content-Type"/&&meta content="gb2312" http-equiv="Content-Language"/&&meta content="all" name="robots"/&&meta content="Tencent-ISRD" name="author"/&&meta content="Tencent" name="Copyright"/&&meta content="QQ秀 - 秀出个性真我!" name="Description"/&&meta content="QQshow,Qshow,QQ秀,QQ秀闪装,3Dshow,3DQQ秀,3D秀,照相馆,红钻,时尚,avatar,流行,服饰,美容,背景,装饰,卡通,品牌,腾讯,QQ,Tencent" name="Keywords"/&&title&QQ秀 QQShow&/title&&link media="screen" type="text/css" href="" mce_href="" rev="stylesheet" rel="stylesheet"&&/link&&link type="image/x-icon" href="" mce_href="" rel="Shortcut Icon"/&&script src="" mce_src="" type="text/javascript"&&/script&&script src="" mce_src="" type="text/javascript"&&/script&&script src="" mce_src="" type="text/javascript"&&/script&&script src="" mce_src="" type="text/javascript"&&/script&&script src="" mce_src="" type="text/javascript"&&/script&&script src="" mce_src="" type="text/javascript"&&/script&&script type="text/javascript"&&/script&&script src="" mce_src=""&&/script&&script type="text/javascript" src="" mce_src=""&&/script&&/head&&body id="top" onclick="sendHot();" onload="sendPgvTop()"&&div id="container"&&div id="quickLinks"&&/div&&div id="b_h_wrap"&&/div&&div id="nav"&&div id="navFirst" class="navFirst"&&ul&&li class="home"&&a class="" href="javascript:mainFrameChange();" mce_href="javascript:mainFrameChange();" classname=""&首页&/a&&/li&&li class="duds"&&/li&&li class="head"&&/li&&li class="background"&&/li&&li class="adornment"&&/li&&li class="theme"&&/li&&li class="brand"&&/li&&li class="vip"&&/li&&li class="my"&&/li&&li class="park"&&/li&&li class="commend"&&a class="" href="javascript:mainFrameChange();" mce_href="javascript:mainFrameChange();" classname=""&网友推荐&/a&&/li&&li class="free"&&/li&&li class="rb"&&a class="" href="javascript:mainFrameChange();" mce_href="javascript:mainFrameChange();" classname=""&红豆&/a&&/li&&/ul&&/div&&div id="ID_navSecond" class="navSecond u13" classname="navSecond u13"&&ul id="navSecond"&&li class="selected last" classname="selected last" no=""&&a href="javascript:mainFrameChange();" mce_href="javascript:mainFrameChange();"&时事热点&/a&&/li&&/ul&&/div&&/div&&/div&&script type="text/javascript"&&/script&&script language="Javascript"&&/script&&/body&&/html&&/frame&&frame id="mainFrame" scrolling="yes" name="mainfra" src="" mce_src=""&&/frame&&/frameset&&/frameset&&noframes& &body& &/body& &/noframes&&/html&
// #####################################################################################// ## QQSHOW_SCRIPT Copyright (C) 1998 - 2007 TENCENT Inc. All Rights Reserved ##// #####################################################################################
// ########################################################// ## for ie.version & 5.5// ########################################################/*@cc_on @*/
/*@if (@_jscript_version & 5.5)Array.prototype.pop = function() { if (this.length&0) { var r = this[this.length-1]; this.length--; } }Array.prototype.push = function() { for (var i=0; i&arguments. ++i) { this[this.length] = arguments[i]; } return this. }Array.prototype.splice = function() { var aEnd = this.slice(arguments[0]+arguments[1], this.length); var aRem = this.slice(arguments[0], arguments[1]); this.length = arguments[0]; for (var i=2; i&arguments. ++i) { this[this.length] = arguments[i]; } for (var i=0,nlen=this. i&aEnd. ++i,++nlen) { if (typeof(aEnd[i])!="undefined") { this[nlen] = aEnd[i]; } } return aR }Array.prototype.unshift = function() { var aEnd = this.slice(0, this.length); this.length = 0; for (var i=0; i&arguments. ++i) { this[this.length] = arguments[i]; } for (var i=0,nlen=this. i&aEnd. ++i,++nlen) { if (typeof(aEnd[i])!="undefined") { this[nlen] = aEnd[i]; } } }@end@*/// ########################################################
// 生成 [0, nMax) 的随机整数Math.randomInt = function(nMax) { return parseInt(Math.random()*nMax); };
Array.prototype.find = function(e) { for (var i=0; i&this. ++i) { if (this[i]==e) { } } };Array.prototype.findmul = function(e) { var a = []; for (var i=0; i&this. ++i) { if (this[i]==e) { a.push(i); } } };Array.prototype.find_if = function(fnEQ) { for (var i=0; i&this. ++i) { if (fnEQ(this[i])) { } } };Array.prototype.findmul_if = function(fnEQ) { var a = []; for (var i=0; i&this. ++i) { if (fnEQ(this[i])) { a.push(i); } } };Array.prototype.push_not = function(e) { if (this.find(e)==null) { return this.push(e); } };Array.prototype.push_not_if = function(e, fnEQ) { if (this.find_if(fnEQ)==null) { return this.push(e); } };Array.prototype.remove = function(e) { var a = this.findmul(e); for (var i=a.length-1; i&=0; --i) { this.splice(a[i], 1); } return a. };Array.prototype.remove_if = function(fnEQ) { var a = this.findmul_if(fnEQ); for (var i=a.length-1; i&=0; --i) { this.splice(a[i], 1); } return a. };Array.prototype.transform = function(fnOp) { for (var i=0; i&this. ++i) { this[i] = fnOp(this[i]); } };
RegExp.showCharSet = /[\x00-\x09\x0B-\x0C\x0E-\x1F\x80-\xFF]/g;
String.prototype.chsetReplace = function() { return this.replace(RegExp.showCharSet , "?"); };String.prototype.chsetAlert = function(v) { if (!this.chsetCheck()) { alert((v?v+"中":"")+'请不要使用"'+this.match(RegExp.showCharSet).toString()+'" 等字符。'); }else{ } };String.prototype.chsetCheck = function() { return !this.match(RegExp.showCharSet); };String.prototype.between = function(b, e) { var bp = this.indexOf(b); if (bp==-1) { return (""); } bp += b. var ep = this.indexOf(e, bp); if (ep==-1) { return (""); } return this.substr(bp, ep-bp); };String.prototype.replaceAll = function(s, t) { return this.split(s).join(t); };String.prototype.asclen = function() { return this.replace(/[\u0100-\uffff]/g, " "). };String.prototype.asccut = function(n) { var i = 0; while (n&0 && i&this.length) { n -= this.charCodeAt(i)&=256 ? 2 : 1; i += (n&=0); } return this.substr(0, i); };//String.prototype.escHtmlEp = function() { return this.replace(/[&'"&&\/\\\-\x00-\x1f\x80-\xff]/g, function(r){ return "&#"+r.charCodeAt(0)+";" }); };//用做过滤HTML标签里面的东东 比如这个例子里的&input value="XXXX"& XXXX就是要过滤的String.prototype.escHtmlEp = function() { return this.replace(/[&'"&&\/\\\-\x00-\x1f\x80-\xff]/g, function(r){ return "&#"+r.charCodeAt(0)+";" }); };//String.prototype.escHtml = function() { return this.replace(/[&'"&&\/\\\-\x00-\x09\x0b-\x0c\x1f\x80-\xff]/g, function(r){ return "&#"+r.charCodeAt(0)+";" }).replace(/\r\n/g, "&BR&").replace(/\n/g, "&BR&").replace(/\r/g, "&BR&").replace(/ /g, "&"); };//用做过滤直接放到HTML里的String.prototype.escHtml = function() { return this.replace(/[&'"&&\/\\\-\x00-\x09\x0b-\x0c\x1f\x80-\xff]/g, function(r){ return "&#"+r.charCodeAt(0)+";" }).replace(/\r\n/g, "&BR&").replace(/\n/g, "&BR&").replace(/\r/g, "&BR&").replace(/ /g, "&"); };//String.prototype.escScript = function() { return this.replace(/[\\"']/g, function(r){ return "; }).replace(/%/g, ", ", ", ""); };//用做过滤直接放到HTML里js中的String.prototype.escScript = function() { return this.replace(/[\\"']/g, function(r){ return "; }).replace(/%/g, ", ", ", ""); };//String.prototype.escUrl = function() { return escape(this).replace(/\+/g, "%2B"); };//用做过滤直接URL参数里的 比如
XXX就是要过滤的String.prototype.escUrl = function() { return escape(this).replace(/\+/g, "%2B"); };//String.prototype.escMiniUrl = function() { return this.replace(/[\x00-\xff]/g, escape).replace(/\+/g, "%2B"); };String.prototype.escMiniUrl = function() { return this.replace(/%/g, "%25"); };//String.prototype.escHrefScript = function() { return this.escScript().escMiniUrl().escHtmlEp(); };//用做过滤直接放到&a href="javascript:XXXX" mce_href="javascript:XXXX"&中的String.prototype.escHrefScript = function() { return this.escScript().escMiniUrl().escHtmlEp(); };//String.prototype.escRegexp = function() { return this.replace(/[\\\^\$\*\+\?\{\}\.\(\)\[\]]/g, function(a,b){ return "; }); };//用做过滤直接放到正则表达式中的String.prototype.escRegexp = function() { return this.replace(/[\\\^\$\*\+\?\{\}\.\(\)\[\]]/g, function(a,b){ return "; }); };String.prototype.escape = function() { return escape(this); };String.prototype.unescape = function() { return unescape(this); };Date.prototype.format = function(v) { var a={"Y":this.getFullYear(), "m":LENFix(this.getMonth()+1, 2), "d":LENFix(this.getDate(), 2), "H":LENFix(this.getHours(), 2), "M":LENFix(this.getMinutes(), 2), "S":LENFix(this.getSeconds(), 2)}; return v.replace(/%[YmdHMS]/g, function(v){ return (a[v.substr(1)]); }); };
/*对需要出现在一个URI的一部分的不信任输入进行编码例如:&a href="]& q2=[Un-trusted-input]"&Click Here!&/a&以下字符将会被编码:除[a-zA-Z0-9.-_]以外的字符都会被替换成URL编码*/function UriComponentEncode(sStr){&sStr = encodeURIComponent(sStr);&sStr = sStr.replace(/~/g,"%7E");&sStr = sStr.replace(/!/g,"%21");&sStr = sStr.replace(/\*/g,"%2A");&sStr = sStr.replace(/\(/g,"%28");&sStr = sStr.replace(/\)/g,"%29");&sStr = sStr.replace(/'/g,"%27");&sStr = sStr.replace(/\?/g,"%3F");&sStr = sStr.replace(/;/g,"%3B");&return sS}
// 注:以下所有转义(包括对应的对象方法)都是直接填充模板时使用,不一定适用于属性设置function escUrl(v) { return v.escUrl(); };function escHtml(v) { return v.escHtml(); };function escHtmlEp(v) { return v.escHtmlEp(); };function escScript(v) { return v.escScript(); };function escHrefScript(v) { return v.escHrefScript(); };
function toExpTime(v , sFmt){&if (isNaN(v) ) return 0;&var nM = truncate (v / 2678400 , 1);
&var nD = truncate (v / 86400 , 1);&if(!sFmt || sFmt == "M")&{&if( nM &= 1)&return nM + "个月";&else&return parseInt(nD) + " 天 ";&} else {&return parseInt(nD) + " 天 ";&}
}function truncate (nVal, nNum){&var nRet =&try&{&if (nVal==0 || nNum==0)&return 0;&nVal = 1 * nV&nNum = 1 * nN&if (isNaN(nVal) || isNaN(nNum))&{&nRet = 0;&}&else if (nNum &= 0 && nNum &= 18)&{&var strX = nVal.toString();&var arrX = strX.split(".");&if ( arrX[1] )&{&if (arrX[1].length & nNum)&arrX[1] = arrX[1].substr(0, nNum);&strX = arrX.join(".");&}&else&strX = arrX[0];&nRet = parseFloat(strX);&}&else&{&nRet = 0;&}&}&catch(e)&{&nRet = 0;&}
&return nR}// ########################################################
function DebugMessage(v){&return "["+v.toString()+"]";};
// ########################################################
// var _Prm = new PARAM("a=1&b=2", "&", "="); var a = _Prm["a"]; var b = _Prm["b"]function PARAM(valPairs, elemSep, pairSep){&if (valPairs)&{&var aElem = valPairs.toString().split(elemSep);&for (var i=0; i&aElem. ++i)&{&var aPair = aElem[i].split(pairSep);&(aPair.length&1) && (this[aPair[0]] = unescape(aPair[1]));&}&}};
// var a = getParam("a=1&b=2", "a", "&", "=");function getParam(valPairs, sName, elemSep, pairSep){&var xParam = new PARAM(valPairs, elemSep, pairSep);&return xParam[sName] ? xParam[sName] : "";};
// var sParam = setParam("a=1", "b", "2");function setParam(valPairs, n, v){&valPairs = valPairs.toString();&n = n.toString();&v = v.toString().escUrl();&var r = new RegExp("(^|\\W)"+n+"=[^&]*", "g");&return (valPairs.match(r)) ? valPairs.replace(r, "$1"+n+"="+v) : valPairs+(valPairs ? "&" : "")+n+"="+v;};
// var sParam = getURLParam("a", ");function getURLParam(sName, sUrl){&(!sUrl) && (sUrl = window.location.href);&sUrl = sUrl.toString();&var nIndex = sUrl.indexOf("?");&return (nIndex&=0) ? getParam(sUrl.substr(nIndex+1), sName, "&", "=") : "";};
// var sUrl = setURLParam("", "b", "2");function setURLParam(u, n, v){&u = u.toString();&n = n.toString();&v = v.toString().escUrl();&var r = new RegExp("(^|\\W)"+n+"=[^&]*", "g");
&return (u.match(r)) ? u.replace(r, "$1"+n+"="+v) : u+(u.indexOf("?")==-1 ? "?" : "&")+n+"="+v;};
// var sParam = getHashParam("b", window.location);function getHashParam(n, l){&l || (l=window.location);&return l.hash ? getParam(unescape(l.hash.substr(1)), n, "&", "=") : "";};
// setHashParam("b", "2", window.location);function setHashParam(n, v, l){&l || (l=window.location);&v = v.toString().escUrl();&var u = unescape(l.hash.substr(1));&var r = new RegExp("(^|\\W)"+n+"=[^&]*", "g");&l.hash = escape((u.match(r)) ? u.replace(r, "$1"+n+"="+v) : u+(u.length ? "&" : "")+n+"="+v);};
// ########################################################
// ---- DO NOT call this function in applications ----function setCookie(sName, sValue, nExpireSec, sDomain, sPath) { var sCookie = sName+"="+escape(sValue)+";"; if (nExpireSec) { var oDate = new Date(); oDate.setTime(oDate.getTime()+parseInt(nExpireSec)*1000); sCookie += "expires="+oDate.toUTCString()+";"; } if (sDomain) { sCookie += "domain="+sDomain+";"; } if (sPath) { sCookie += "path="+sPath+";" } document.cookie = sC };
// ########################################################
function getCookie(sName){&return getParam(document.cookie, sName, "; ", "=");};
function QQCookie(sName, sValue, nExpSec){&setCookie(sName, sValue, nExpSec, "qq.com", "/");};
function QSCookie(sName, sValue, nExpSec){&setCookie(sName, sValue, nExpSec, "show8.qq.com", "/");};
// ########################################################
// 检查是否可信任URLfunction CheckUrlCredit(sUrl){&//return sUrl.match(/^https{0,1}:\/\/[a-zA-Z0-9_\-.]+.qq.com(\/|$)/) ? true : sUrl.charAt(0)=="/" ? true :&return (/^(https?:\/\/)?[\w\-.]+\.(qq|paipai|soso|taotao)\.com($|\/|\\)/i).test(sUrl)||(/^[\w][\w\/\.\-_%]+$/i).test(sUrl)||(/^[\/\\][^\/\\]/i).test(sUrl) ? true :};
// ########################################################
function _MSIE() { return (window.navigator.appName.toUpperCase().indexOf("MICROSOFT")&=0); };
function _FireFox() { return (window.navigator.appName.toUpperCase().indexOf("NETSCAPE")&=0); };
function _MSIEUSERDATA(){&function _USERData(oObj, sName, sCookie)&{&this._Object = oO&this._svName = sN&this._Cookie = sC&this._Object.addBehavior("#default#userData");
&this._Object.load(this._svName);
&if (!getCookie(this._Cookie) || parseInt(this._Object.getAttribute(this._Cookie)) & parseInt(getCookie(this._Cookie)))&{&this.expiresDiscard();&}
&if (!getCookie(this._Cookie))&{&QSCookie(this._Cookie, new Date().getTime());&}&};&_USERData.prototype.expiresDiscard = function()&{&this._Object.expires = new Date(new Date().getTime()-365*).toUTCString();&this._Object.save(this._svName);&this._Object.load(this._svName);&this._Object.expires = new Date(new Date().getTime()+365*).toUTCString();&};
&// ########################################################&var _userData_ =&// ########################################################
&window.getUserData = function(sName)&{&if (!_userData_)&{&_userData_ = new _USERData(document.documentElement, "QQSHOW", "QSUDTMmilliSeconds");&}&return _userData_._Object.getAttribute(sName);&};&window.setUserData = function(sName, sValue)&{&if (!_userData_)&{&_userData_ = new _USERData(document.documentElement, "QQSHOW", "QSUDTMmilliSeconds");&}&_userData_._Object.setAttribute(sName, sValue);&_userData_._Object.setAttribute(_userData_._Cookie, new Date().getTime());&_userData_._Object.save(_userData_._svName);&};};
function _FF2XUSERDATA(){&window.getUserData = function(sName)&{&return window.sessionStorage.getItem(sName);&};&window.setUserData = function(sName, sValue)&{&return window.sessionStorage.setItem(sName, sValue);&};};
function _NOUSERDATA(){&window.getUserData = function(sName)&{&return alert("your browser does not support this feature.\nwe suggest you to use Internet Explorer 5.0+ or Firefox 2.0+");&};&window.setUserData = function(sName, sValue)&{&return alert("your browser does not support this feature.\nwe suggest you to use Internet Explorer 5.0+ or Firefox 2.0+");&};};
// ########################################################_MSIE() ? _MSIEUSERDATA() : (window.sessionStorage) ? _FF2XUSERDATA() : _NOUSERDATA();// ########################################################
// ########################################################
function XMLREQ(fnCall, fnFail){&this._XmlREQ = (window.XMLHttpRequest) ? (new XMLHttpRequest()) : (window.ActiveXObject) ? ((function(){try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){return new ActiveXObject("Microsoft.XMLHTTP")};})()) :&var this__XmlREQ = this._XmlREQ;&this._XmlREQ.onreadystatechange = function() { if (this__XmlREQ.readyState==4) { this__XmlREQ.status==200 ? (fnCall ? fnCall(this__XmlREQ) : null) : (fnFail ? fnFail(this__XmlREQ) : null); } };};XMLREQ.prototype.open = function(sUrl,type){&var aDat = sUrl.split("?");&this._XmlREQ.open("POST", aDat[0], type);&aDat[1] && this._XmlREQ.setRequestHeader("Content-length", aDat[1].length);&this._XmlREQ.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");&this._XmlREQ.setRequestHeader("If-Modified-Since", "0");&this._XmlREQ.send(aDat[1] ? aDat[1] : null);};XMLREQ.prototype.close = function(){&this._XmlREQ.abort();};
// ########################################################
// 用户基本信存取 所有用户基本信息请以本功能实现
window.QUSER = {};window.QUSER.getInfo = function(sName){&var sData = getCookie("QSUSRINF");&var oParam = new PARAM(sData, "&", "=");&return oParam[sName] ? oParam[sName] : "";};window.QUSER.setInfo = function(sName, sValue){&var sData = getCookie("QSUSRINF");&QSCookie("QSUSRINF", setParam(sData, sName, sValue));};window.QUSER.getAvSex = function(){&var sSex = QUSER.getInfo("avsex");&if(sSex.length == 0)&{QUSER.setInfo("avsex","F");return "F";}&else return sS};window.QUSER.getStyle = function(){&var sStyle = QUSER.getInfo("style");&if(sStyle.length == 0)&{QUSER.setInfo("style","1");return 1;}&else return parseInt(sStyle);};// ########################################################
// 请求XML并以回调函数处理请求成功及失败的情况// function fnCall(xmlReq){} function fnFail(xmlReq){}function getXml(sUrl, fnCall, fnFail, type){&var xmlReq = new XMLREQ(fnCall , fnFail);&xmlReq.open(sUrl,type);&return xmlR};
// 请求XML并以回调函数处理请求失败及逻辑返回成功失败的情况// function fnSucc(xmlDoc){} function fnFail(xmlDoc){} function fnError(xmlReq){}function getQQSHOWXml(sUrl, fnSucc, fnFail, fnError){&function fnCall(xmlReq)&{&var xmlDoc = xmlReq.responseXML;&(xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code")==0) ? (fnSucc ? fnSucc(xmlDoc) : null) : (fnFail ? fnFail(xmlDoc) : null);&};&return getXml(sUrl, fnCall, fnError,true);};
//以同步方式调用ajax,在某些ff的情况下需要应用function getQQSHOWSyncXml(sUrl, fnSucc, fnFail, fnError){&function fnCall(xmlReq)&{&var xmlDoc = xmlReq.responseXML;&(xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code")==0) ? (fnSucc ? fnSucc(xmlDoc) : null) : (fnFail ? fnFail(xmlDoc) : null);&};&return getXml(sUrl, fnCall, fnError,false);}
// 以mapName映射规则用XML节点内容替换字符串// mapName = [[xmlName, htmlName(, fnTrans(xmlValue))](, ...)]function replaceHtmlWithXml(xmlNode, sHtml, mapName, iAbsIndex, iRltIndex){&var eData = {"@abs(I)":iAbsIndex && iAbsIndex.toString() || "0", "@rlt(I)":iRltIndex && iRltIndex.toString() || "0"};&for (var i=0; i&mapName. ++i)&{&var vData = (mapName[i][0].constructor!=Array) ? (eData[mapName[i][0]]||xmlNode.getAttribute(mapName[i][0])) : ([].concat(mapName[i][0]).transform(function(v){ return (eData[v]||xmlNode.getAttribute(v)); }));&sHtml = sHtml.replace(new RegExp(mapName[i][1].escRegexp(), "g"), (mapName[i][2] ? mapName[i][2](vData) : vData).toString().replace(/\$/g, "$$$$"));&}&return sH};
// 以XML内容替换并显示HTML文档// sHtml = "&%--HD--%&...&%--LB--%&...&%--EB--%&...&%--EE--%&...&%--LE--%&...&%--TL--%&";function showQQSHOWXmlNode(xmlDoc, oParent, xmlNodeName, sHtml, mapName, bi, ei, ne){&var xmlNode = xmlDoc.getElementsByTagName(xmlNodeName);&(!bi || bi&0) && (bi=0);&(!ei || ei&0) && (ei=xmlNode.length);&(!ne || ne&0) && (ne=1);&var sHtmlHd = sHtml.between("&%--HD--%&", "&%--LB--%&");&var sHtmlTl = sHtml.between("&%--LE--%&", "&%--TL--%&");&var sHtmlLB = sHtml.between("&%--LB--%&", "&%--EB--%&");&var sHtmlLE = sHtml.between("&%--EE--%&", "&%--LE--%&");&var sHtmlEM = sHtml.between("&%--EB--%&", "&%--EE--%&");&var aHtml = [];&for (var i= i& i+=ne)&{&aHtml.push(sHtmlLB);&for (var n=0; n&Math.min(ei-i, ne); ++n)&{&aHtml.push(replaceHtmlWithXml(xmlNode[i+n], sHtmlEM, mapName, i+n, i-bi+n));&}&aHtml.push(sHtmlLE);&}&oParent.innerHTML = sHtmlHd+aHtml.join("")+sHtmlTl;};
// 请求并显示Xml数据function showQQSHOWXml(sUrl, oParent, xmlNodeName, sHtml, mapName, bi, ei, ne, fnSucc, fnFail, fnError){&return getQQSHOWXml(sUrl, function(xmlDoc){ showQQSHOWXmlNode(xmlDoc, oParent, xmlNodeName, sHtml, mapName, bi, ei, ne); fnSucc&&fnSucc(xmlDoc); }, fnFail, fnError);};
// mapName = [[xmlName, htmlName(, fnTrans(xmlValue))](, ...)]function replaceHtmlWithData(xData, sHtml, mapName, iAbsIndex, iRltIndex){&var eData = {"@abs(I)":iAbsIndex && iAbsIndex.toString() || "0", "@rlt(I)":iRltIndex && iRltIndex.toString() || "0"};&for (var i=0; i&mapName. ++i)&{&var vData = (mapName[i][0].constructor!=Array) ? (eData[mapName[i][0]]||xData[mapName[i][0]]) : ([].concat(mapName[i][0]).transform(function(v){ return (eData[v]||xData[v]); }));&sHtml = sHtml.replace(new RegExp(mapName[i][1].escRegexp(), "g"), (mapName[i][2] ? mapName[i][2](vData) : vData).toString().replace(/\$/g, "$$$$"));&}&return sH};
// sHtml = "&%--HD--%&...&%--LB--%&...&%--EB--%&...&%--EE--%&...&%--LE--%&...&%--TL--%&";function showQQSHOWData(xData, oParent, sHtml, mapName, bi, ei, ne){&(!bi || bi&0) && (bi=0);&(!ei || ei&0) && (ei=xData.length);&(!ne || ne&0) && (ne=1);&var sHtmlHd = sHtml.between("&%--HD--%&", "&%--LB--%&");&var sHtmlTl = sHtml.between("&%--LE--%&", "&%--TL--%&");&var sHtmlLB = sHtml.between("&%--LB--%&", "&%--EB--%&");&var sHtmlLE = sHtml.between("&%--EE--%&", "&%--LE--%&");&var sHtmlEM = sHtml.between("&%--EB--%&", "&%--EE--%&");&var aHtml = [];&for (var i= i& i+=ne)&{&aHtml.push(sHtmlLB);&for (var n=0; n&Math.min(ei-i, ne); ++n)&{&aHtml.push(replaceHtmlWithData(xData[i+n], sHtmlEM, mapName, i+n, i-bi+n));&}&aHtml.push(sHtmlLE);&}&oParent.innerHTML = sHtmlHd+aHtml.join("")+sHtmlTl;};
// 页码样式function styleQQSHOWPage(nIndex){&this.linkHtml = function(u, t) { return t.toString().link(u); };&this.activeHtml = function(u, t) { return '&a href="'+u.escMiniUrl().escHtmlEp()+'" mce_href="'+u.escMiniUrl().escHtmlEp()+'" class="em"&'+t.toString().escHtml()+'&/a&'; };&this.separate = function() { return ('|'); };&this.positionHtml = function(n, a) { return ('第'+n+'/'+a+'页 '); };&this.randomHtml = function(u, a) { return (' 跳到&input type="text" id="page_no" name="page_no" class="page_no" size="3" maxlength="4" onkeydown="if(event.keyCode != 13)else {var v = parseInt(this.value,10);if((isNaN(v))||(v&=0||v&'+a+')) { alert(\'您输入的页码不正确。\'); } else { window.location=(\''+u('[@_pno]')+'\'.replace(/\\\[@_pno\\\]/g, Math.max(1, Math.min('+a+', parseInt(v))))); };void(0);}"/&页&a onclick="javascript:var v=parseInt(this.parentNode.getElementsByTagName(\'INPUT\')[0].value, 10);if((isNaN(v))||(v&=0||v&'+a+')) { alert(\'您输入的页码不正确。\'); } else { window.location=(\''+u('[@_pno]')+'\'.replace(/\\\[@_pno\\\]/g, Math.max(1, Math.min('+a+', parseInt(v))))); };void(0);" class="go_page"&&img src="" mce_src="" alt="GO" /&&/a&'); };&this.prevHtml = function(u) { return (u ? "上一页".link(u) : "&a&上一页&/a&"); };&this.nextHtml = function(u) { return (u ? "下一页".link(u) : "&a&下一页&/a&"); };};
// 显示页面内容信息function showQQSHOWPage(pno, pall, fnUrl, oParent, nStyle ,thin){&if(thin)&{&var iDisPage =&}else&{&var iDisPage = pno & 10 ? 10 : (pno & 100 ? 8 : 6);&}&pno = parseInt(pno);&pall = parseInt(pall);&var oStyle = new styleQQSHOWPage(nStyle);&var aHtml = [];&aHtml.push(oStyle.prevHtml((pno&1) && fnUrl(pno-1)));&var bi = Math.min(Math.max(pno - iDisPage / 2 , 1), Math.max(1, pall - iDisPage));&var ei = Math.max(Math.min(pno + iDisPage / 2, pall), Math.min( bi + iDisPage, pall));&while (bi &= ei)&{&aHtml.push(bi==pno ? oStyle.activeHtml(fnUrl(bi), bi++) : oStyle.linkHtml(fnUrl(bi), bi++));&}&aHtml.push(oStyle.nextHtml((pno&pall) && fnUrl(pno+1)));&oParent.innerHTML = oStyle.positionHtml(pno, pall)+aHtml.join(oStyle.separate())+oStyle.randomHtml(fnUrl, pall);};
// ########################################################
// ########################################################
// 打印FLASH对象function QQSHOW_CreateFlashObject(sHtml){&document.write(sHtml);};
// 设置FLASH对象function QQSHOW_setFlashObject(sHtml, oParent){&oParent.innerHTML = sH};
// 返回FLASH的HTML代码function QQSHOW_avShow(sShow,iW,iH){&var nStyle = (sShow.match(/V1#[MFU]_0_/) ? 0 : 1);&var w = iW || [140, 186][nStyle];&var h = iH || [226, 300][nStyle];&var mapName = [["[@_W]", w], ["[@_H]", h], ["[@_SHOW]", escape(sShow)]];&var sHtml = '&object classid="clsid:D27CDB6E-AE6D-11cf-96B8-" codebase="" width="[@_W]" height="[@_H]"& &param name="movie" value="" /& &param name="quality" value="high" /& &param name="flashvars" value="sItems=[@_SHOW]"& &param name="wmode" value="transparent"& &param name="allowScriptAccess" value="always" /& &embed src="" mce_src="" flashvars="sItems=[@_SHOW]" quality="high" pluginspage="" type="application/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" width="[@_W]" height="[@_H]"&&/embed&&/object&';&for (var i=0; i&mapName. ++i)&{&sHtml = sHtml.replace(new RegExp(mapName[i][0].escRegexp(), "g"), mapName[i][1]);&}&return sH};
function QQSHOW_photo(sShow , iW , iH){&var nStyle = (sShow.match(/V1#[MFU]_0_/) ? 0 : 1);&var w = iW ? iW : 280;&var h = iH ? iH : 226;
&var mapName = [["[@_W]", w], ["[@_H]", h], ["[@_SHOW]", escape(sShow)]];&var sHtml = '&object classid="clsid:D27CDB6E-AE6D-11cf-96B8-" codebase="" width="[@_W]" height="[@_H]"& &param name="movie" value="" /& &param name="quality" value="high" /& &param name="flashvars" value="sItems=[@_SHOW]"& &param name="wmode" value="transparent"& &param name="allowScriptAccess" value="always" /& &embed src="" mce_src="" flashvars="sItems=[@_SHOW]" quality="high" pluginspage="" type="application/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" width="[@_W]" height="[@_H]"&&/embed&&/object&';&for (var i=0; i&mapName. ++i)&{&sHtml = sHtml.replace(new RegExp(mapName[i][0].escRegexp(), "g"), mapName[i][1]);&}&return sH};
function QQSHOW_firendListShow(itemNo , iW , iH){&var w = iW ? iW : 280;&var h = iH ? iH : 226;
&var mapName = [["[@_W]", w], ["[@_H]", h], ["[@_itemno]", escape(itemNo)]];&var sHtml = '&object classid="clsid:d27cdb6e-ae6d-11cf-96b8-" codebase="" width="[@_W]" height="[@_H]" id="mlist_flash" align="center"& &param name="movie" value="/img/swf/qqshow_friendlist.swf" /& &param name="quality" value="best" /& &param name="flashvars" value="itemno=[@_itemno]"& &param name="wmode" value="transparent"& &param name="bgcolor" value="#ffffff" /& &param name="allowScriptAccess" value="always" /& &embed src="/img/swf/qqshow_friendlist.swf" mce_src="/img/swf/qqshow_friendlist.swf" flashvars="itemno=111" quality="high" bgcolor="#ffffff" width="500" height="350" name="mlist_club_qqshowurl" align="center" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="transparent" pluginspage="" /& ';&for (var i=0; i&mapName. ++i)&{&sHtml = sHtml.replace(new RegExp(mapName[i][0].escRegexp(), "g"), mapName[i][1]);&}&return sH};
function QQSHOW_commonFlash(swf, iW, iH, arrVar){&var sVar="";&if(typeof(arrVar)=="undefined")&arrVar=[];&if(arrVar.length&0)&{&sVar=arrVar.join('&');&}&var mapName = [["[@_W]", iW], ["[@_H]", iH], ["[@_swf]", swf], ["[@_var]", sVar]];&var sHtml = '&object classid="clsid:d27cdb6e-ae6d-11cf-96b8-" codebase="" width="[@_W]" height="[@_H]" id="mlist_flash" align="center"& &param name="movie" value="[@_swf]" /& &param name="quality" value="best" /& &param name="wmode" value="transparent"& &param name="bgcolor" value="#ffffff" /& &param name="allowScriptAccess" value="always" /& &param name="flashvars" value="[@_var]"& &embed src="[@_swf]" mce_src="[@_swf]" quality="high" bgcolor="#ffffff" width="[@_W]" height="[@_H]" name="mlist_club_qqshowurl" align="center" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="transparent" pluginspage="" flashvars="[@_var]"/& ';&for (var i=0; i&mapName. ++i)&{&sHtml = sHtml.replace(new RegExp(mapName[i][0].escRegexp(), "g"), mapName[i][1]);&}&return sH};// ########################################################
// ########################################################
// Q点格式转换为Q币格式function QBPrice(nQPoint){&var iPrice = parseInt(nQPoint ? nQPoint : "0", 10) || 0; // set to 0 if invalid&return (parseInt(iPrice/10) +"."+ parseInt(iPrice%10));};
// 取登录用户号码(不进行超时检查)function GetUin(){&return (parseInt(getCookie('uin').match(/\d+/), 10) || 0);};
// 性别格式转换 Mm1-&M Uu0-&U ...-&Ffunction SEX(v){&return (v=="M"||v=="m"||v==1) ? "M" : (v=="U"||v=="u"||v==0) ? "U" : "F";};
// 性别反转 F-&M ...-&Ffunction SEX_reverse(v){&return SEX(v)=="F" ? "M" : "F";};
//显示性别function SexWord(v){&return (SEX(v)=="M") ? "(男)" : (v=="F"?"(女)":"");};
// 数字转为定长串 长度不足的以前面加0function LENFix(i, n){&var sRet = i.toString();&while (sRet.length & n)&{&sRet = "0"+sR&}&return sR};
// 是否闰年function isleapyear(y){&return (y%4==0 && y%100!=0 || y%400==0);};
// 某年某月有多少天function DAYOfMonth(y, m){&return [31, isleapyear(y)?29:28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][m-1];};// ########################################################
// 购物车相关操作
// CARTFmt = [name|no|num|price|price|type|uin|msg|param|itemType]
var QSCART_Name = "CART";
//红钻包月免费物品cookies信息
var QSVIPCART_Name = "CART_Free"
function EQCartItem(_1, _2){&return (_1[1]==_2[1] && _1[6]==_2[6]);};function EncodeCart(aSet){&aSet[0] = !aSet[0] ? "" : aSet[0].toString().replace(/[#\|%]/g, function(a,b){return "%"+a.charCodeAt(0).toString(16);});&aSet[7] = !aSet[7] ? "" : aSet[7].toString().replace(/[#\|%]/g, function(a,b){return "%"+a.charCodeAt(0).toString(16);});&aSet[8] = !aSet[8] ? "" : aSet[8].toString().replace(/[#\|%]/g, function(a,b){return "%"+a.charCodeAt(0).toString(16);});
&return aSet.join("|");};function DecodeCart(sSet){&var aSet = sSet.split("|");&aSet[0] = unescape(aSet[0]);&aSet[1] = parseInt(aSet[1]);&aSet[2] = parseInt(aSet[2]);&aSet[3] = parseInt(aSet[3]);&aSet[4] = parseInt(aSet[4]);&aSet[5] = parseInt(aSet[5]);&aSet[6] = parseInt(aSet[6]);&aSet[7] = unescape(aSet[7]);&aSet[8] = unescape(aSet[8]);&aSet[9] = unescape(aSet[9]);&return aS};
function CartString(aCart){&return [].concat(aCart).transform(EncodeCart).join("#");}
function CartVector(sCart){&return sCart.split("#").transform(DecodeCart);};
function saveCart(aCart){&QSCookie(QSCART_Name, CartString(aCart));&setHeaderCartNum();};
function saveVipCart(aCart){&QSCookie(QSVIPCART_Name, CartString(aCart));&setHeaderCartNum();&//setHeaderCartNum(countCartNum());};function countCartNum(){&var aPrice = getCartPrice();&return(aPrice[3]);&/*var aVipPrice = getVipCartPriceInfo();&return (aPrice[3] + aVipPrice[3]);*/}
function getCart(){&var sCart = getCookie(QSCART_Name);&if (sCart)&{&return CartVector(sCart);&}&return [];};
function getVipCart(){&var sCart = getCookie(QSVIPCART_Name);&if (sCart)&{&return CartVector(sCart);&}&return [];};
// 把物品加到购物车 如果已经存在则不作处理function setCart(aSet){&var aCart = getCart();&if (aCart.find_if(function(e){ return EQCartItem(e, aSet); })==null)&{&if(aCart.length &=20)&{&&}&aCart.push(aSet);&saveCart(aCart);&}&};
function setVipCart(aSet){&var aCart = getVipCart();&if (aCart.find_if(function(e){ return EQCartItem(e, aSet); })==null)&{&if(aCart.length &=20)&{&&}&aCart.push(aSet);&saveVipCart(aCart);&}&};
// 增加购物车物品数量 如果不存在则直接加到购物车function incCart(aSet){&var aCart = getCart();&var afind = aCart.find_if(function(e){ return EQCartItem(e, aSet); });&if (afind!=null)&{&aCart[afind][2] += aSet[2];&if (aCart[afind][2] &= 0)&{&aCart.splice(afind, 1);&}&saveCart(aCart);&}&else&{&setCart(aSet);&}};function incVipCart(aSet){&var aCart = getVipCart();&var afind = aCart.find_if(function(e){ return EQCartItem(e, aSet); });&if (afind!=null)&{&aCart[afind][2] += aSet[2];&if (aCart[afind][2] &= 0)&{&aCart.splice(afind, 1);&}&saveVipCart(aCart);&}&else&{&setVipCart(aSet);&}};
// 清空购物车function clsCart(){&saveCart([]);};
// 清空vip购物车function clsVipCart(){&saveVipCart([]);};
// 取购物车价格及数量等信息// return [price, vipPrice, cartSize, cartCount]function getCartPrice(aCart){&var aCart = arguments[0] || getCart();&var aPrice = [0, 0, aCart.length, 0];&for (var i=0; i&aCart. ++i)&{&aPrice[0] += aCart[i][3]*aCart[i][2];&aPrice[1] += aCart[i][4]*aCart[i][2];&aPrice[3] += aCart[i][2];&}&return aP};function getVipCartPriceInfo(aCart){&var aCart = arguments[0] || getVipCart();&var aPrice = [0, 0, aCart.length, 0];&for (var i=0; i&aCart. ++i)&{&aPrice[0] += aCart[i][3]*aCart[i][2];&aPrice[1] += aCart[i][4]*aCart[i][2];&aPrice[3] += aCart[i][2];&}&return aP};//更新torfra信息function updateHeaderInfo(){&if(top.topfra)&{&try{&top.topfra.updateMsg();&}catch(e){}&}};
// 更新topfra导航购物车数量显示function setHeaderCartNum(){&if(top.topfra)&{&if(top.topfra.document && top.topfra.document.getElementById("cart_num"))&{&var nlen = countCartNum();&var sMessage = "";&sMessage += nlen==0 ? "" : ("("+nlen+")");&if(_MSIE())&{&top.topfra.document.getElementById("cart_num").innerHTML = sM&}&else&{&top.topfra.document.getElementById("cart_num").textContent = sM&}&updateHeaderInfo();&}&else&{&setTimeout(setHeaderCartNum, 1000);&}&}};// ########################################################
// 循环添加数字选项到select对象中function SelectAppendOption(oSelect, bi, ei, nlen){&if (bi & ei)&{&for (var i= i&= --i)&{&oSelect.options[oSelect.options.length] = (new Option(LENFix(i, nlen), LENFix(i, nlen)));&}&}&else&{&for (var i= i&= ++i)&{&oSelect.options[oSelect.options.length] = (new Option(LENFix(i, nlen), LENFix(i, nlen)));&}&}};
// 年selectfunction SelectYearOption(oSelect, bi, ei, nlen){&return SelectAppendOption(oSelect, bi, ei, nlen);};// 月selectfunction SelectMonthOption(oSelect, nlen){&return SelectAppendOption(oSelect, 1, 12, 2);};// 日selectfunction SelectDayOption(oSelect, y, m, nlen){&return SelectAppendOption(oSelect, 1, DAYOfMonth(y, m), nlen);};
function ShowUnsupport(){&if(top.mainfra)&top.mainfra.FloatShow('/inc/note.html', 500, 198);&else&FloatShow('/inc/note.html', 500, 198);}
function ShowLogin(){&if(top.mainfra)&{&//_MSIE();&if (_MSIE())&{&top.mainfra.FloatShow('/inc/login_box.html', 462, 295, null, null, 0, -100 );&}else&{&top.mainfra.FloatShow('/inc/login_box.html', 462, 295, null, null, 0, 0);&}&//top.mainfra.FloatShow('/inc/login_box.html', 462, 295, null, null, 0, 0 );&}&else&{&if (_MSIE())&{&FloatShow('/inc/login_box.html', 462, 295, null, null, 0, -100 );&}else&{&FloatShow('/inc/login_box.html', 462, 295, null, null, 0, 0);&}&//FloatShow('/inc/login_box.html', 462, 295, null, null, 0, 0 );&}
};// ########################################################// iProcType: 1:确认但必须跳转 2--确认可以不跳转// url:// target: mainfra,url会在mainfra显示(默认)// top, 全页面跳转function CheckLogin(iProcType, url, target){&var iUin = GetUin();&if(iUin &10000 || iUin&)&{&var loginUrl = "/inc/login_box.html";&var loginUrlTop = "";&if(url && url.length &0)&{&if(target && target == "top") loginUrl = setURLParam(loginUrl, "url", url);&else loginUrl = setURLParam(loginUrl,"url",setURLParam("));&if(target && target == "top") loginUrlTop = setURLParam(loginUrlTop, "url", url);&else loginUrlTop = setURLParam(loginUrlTop,"url",setURLParam("));&}&if (iProcType==1)&{&if(confirm("您还没有登录,是否登录?"))&{&if(top.mainfra && typeof(top.mainfra.FloatShow) == "function")&{&if (_MSIE())&{&top.mainfra.FloatShow(loginUrl, 460, 295, null, null, 0, -100);&}else&{&top.mainfra.FloatShow(loginUrl, 460, 295, null, null, 0, 0);&}&}&else if(typeof(FloatShow) == "function") FloatShow(loginUrl, 460, 295, null, null, 200, 0);&else location = loginUrlT&&}&}&else if(2 == iProcType)&{&if (confirm("您还没有登录,是否登录?"))&{&if(top.mainfra && typeof(top.mainfra.FloatShow) == "function")&{&if (_MSIE())&{&top.mainfra.FloatShow(loginUrl, 460, 295, null, function(){location = "/inc/main.html";}, 0, -100);&}else&{&top.mainfra.FloatShow(loginUrl, 460, 295, null, function(){location = "/inc/main.html";}, 0, 0);&}&}&else if(typeof(FloatShow) == "function") FloatShow(loginUrl, 460, 295, null, null, 200, 0);&else location = loginUrlT&&}&else&{&if(top.mainfra) top.mainfra.location.href = '/inc/main.html';&else location = "";&&}&}&&}&return iU};
// ########################################################
// QQShow请求失败时公共回调函数function QQShowCommREQError(){&alert("请求失败,请稍候再试。");};
// QQShow基本公共返回码基本处理function QQShowCommXMLError(xmlDoc){&var iCode = xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");&var sMessage = xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("message");&if (iCode==-1100 || iCode==-1003)&{&return alert("操作失败,请稍候再试。");&}&else if (iCode==-1001)&{&return !QQShowCommXMLError._onlogin && (QQShowCommXMLError._onlogin=true) && confirm("对不起,您还没登录,现在登录?") && (top.location.href="/login.html?url=" mce_href="/login.html?url="+("()) && 0;&}&else if (iCode==-1002)&{&return alert("您输入的参数有错,请重新输入,谢谢。");&}&else if (iCode==-1004)&{&return alert("对不起,您操作太频繁,请稍候再试。");&}&else if (iCode==-1005)&{&return alert("对不起,您还没注册QQ秀。");&}&else if(iCode == -1006)&{&return alert("对不起,您的好友还没有注册QQ秀!");&}&else if(iCode == -1007)&{&return alert("对不起,对方不是您的7天好友!");&}&else if(iCode == -1008)&{&return alert("对不起,您不是对方的7天好友!");&}
// ########################################################
function goCartWithLocation(){&var sUrl = "/mall/inc/cart.html#pmSelect%3DACC";&goToCart(sUrl);};function goToCartFromSave(){&var sUrl = "/mall/inc/cart.html#"+escape("saveav=1");&goToCart(sUrl);};function goToCart(sUrl){&var win = top.mainfra ||&if (win.location.href.indexOf(")&{&win.location.reload();&&}&else if(win.location.href.indexOf("/mall/inc/cart.html")!=-1)&{&win.location.reload();&}&else&{&QSCookie("mallloc", win.location.href);&win.location = sU&}};
function goMallWithLocation(){&var win = top.mainfra ||&//if (getCookie("mallloc"))&//逻辑:我的QQ秀,论坛,排行版购买物品后,点返回商城继续购物,返回商城首页,其他则是返回当前操作页。&if ((getCookie("mallloc").length&0) && (getCookie("mallloc").indexOf("/my/inc") == -1))&{&win.location = getCookie("mallloc");&}&else&{&if("function"==typeof(frameChange))&{&frameChange();&//win.location.href="/inc/main.html" mce_href="/inc/main.html";&}&}};
// 放进购物车并跳转到购物车页面function Buy(sName, iNo, iPrice, iPriceVip, iVipItem, vFrom){&if (CheckLogin(1))&{&if (iVipItem==1 && QUSER.getInfo("vip")!=1)&{&alert("您不是红钻用户,不能购买红钻物品["+sName+"]");&}&else&{&if(!setCart([sName, iNo, 1, iPrice, iPriceVip, 0, 0, "", vFrom ? vFrom.toString() : "", iVipItem]))&{&alert("您的购物车已满,请支付后继续购物。");&}&goCartWithLocation();&}&}};
// 赠送商城物品function Send(sName, iNo, iPrice, iPriceVip, iVipItem, vFrom){&if (CheckLogin(1))&{&if (iVipItem==1 && QUSER.getInfo("vip")!=1)&{&alert("您不是红钻用户,不能赠送红钻物品["+sName+"]");&&}&else if(iPrice == 0)&{&alert("对不起,免费物品不能赠送他人。");&&}&else&{&function OnOK(x)&{&var _Prm = new PARAM(x, "&", "=");&//alert(_Prm["info"]);&setCart(DecodeCart(_Prm["info"]));&alert("成功支付后自动赠送!");&goCartWithLocation();&};
&var aParam = [sName, iNo, 1, iPrice, iPriceVip, iVipItem, 0, "", vFrom ? vFrom.toString() : "",iVipItem];&FloatShow("/mall/inc/don.html?info="+EncodeCart(aParam).escUrl(), 440, 300, OnOK);&}&}};
// 索要商城物品function Ask(sName, iNo, iPrice, iPriceVip, iVipItem, vFrom){&if (CheckLogin(1))&{&if (iVipItem==1 && QUSER.getInfo("vip")!=1)&{&alert("您不是红钻用户,不能索要红钻物品["+sName+"]");&}&else if(iPrice == 0)&{&alert("对不起,不能索要免费物品。");&&}&else&{&var aParam = [sName, iNo, 1, iPrice, iPriceVip, iVipItem, 0, "", vFrom ? vFrom.toString() : "", iVipItem];&FloatShow("/mall/inc/req.html?info="+EncodeCart(aParam).escUrl(), 503, 248)&}&}};
function AskMul(aCart){&if (CheckLogin(1))&{&if (QUSER.getInfo("vip")!=1 && aCart.find_if(function(v){ return (v[5]!=0); })!=null)&{&alert("您不是红钻用户不能购买红钻物品["+sName+"]");&}&else&{&FloatShow("/mall/inc/req.html?info="+CartString(aCart).escUrl(), 500, 225+aCart.length*27)&}&}};
function ItemCollectionAdd(ino){&function onResp(xmlDoc)&{&MaskEnd([top.mainfra, top.leftfra, top.topfra]);&if (QQShowCommXMLError(xmlDoc))&{&var node = xmlDoc.getElementsByTagName("QQSHOW")[0] ;&var iCode = xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");&var mapCodeMessage = {&"-1" : "收藏物品号无效",&"-10": "该物品已经在收藏中"&};
&if (iCode == 0)&{&var irb = parseInt(node.getAttribute("rb"));&var iret = parseInt(node.getAttribute("set"));&if( iret & 0 )&{&alert("收藏成功");&}&else if( 1 == iret )&{&try{ top.mainfra.FloatShow('/inc/col_suc2.html', 524, 320, null , null, 40, -50); }catch(e){alert("收藏成功");} ;&}&else&{&QUSER.setInfo("bean" , irb) ;&try{ top.mainfra.FloatShow('/inc/col_suc1.html', 524, 320, null , null, 40, -50); }catch(e){alert("收藏成功");} ;&}&}&else if (mapCodeMessage[iCode])&{&alert("操作失败["+mapCodeMessage[iCode]+"]");&}&else&{&alert("操作失败"+DebugMessage(iCode));&}&}&};&function onError()&{&MaskEnd([top.mainfra, top.leftfra, top.topfra]);&alert("操作失败");&};&if(CheckLogin(1))&{&MaskStart([top.mainfra, top.leftfra, top.topfra]);&getQQSHOWXml(", onResp, onResp, onError);&}};
function ItemCollectionDel(ino, fnCallBack){&if (!confirm("确定删除吗?"))&{&&}&function onResp(xmlDoc)&{&setTimeout("MaskEnd([top.mainfra, top.leftfra, top.topfra])", 1000);&var iCode = xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");&if (iCode == 0)&{&//alert("删除成功");&}&else if (QQShowCommXMLError(xmlDoc))&{&alert("操作失败");&}&fnCallBack && fnCallBack(xmlDoc);&};&function onError()&{&setTimeout("MaskEnd([top.mainfra, top.leftfra, top.topfra])", 1000);&alert("操作失败");&};&if(CheckLogin(1))&{&MaskStart([top.mainfra, top.leftfra, top.topfra]);&getQQSHOWXml(", onResp, onResp, onError);&}};
// vData = [sShow, sName, sTags, sDesc, iType]function ShowCollectionAdd(vData, fnCallBack){&function onResp(xmlDoc)&{&MaskEnd([top.mainfra, top.leftfra, top.topfra]);&if (QQShowCommXMLError(xmlDoc))&{&var node = xmlDoc.getElementsByTagName("QQSHOW")[0] ;&var iCode = node.getAttribute("code");&var sName = node.getAttribute("itemname");&var mapCodeMessage = {&"-23": "基本形象不能收藏",&"-25": "整套收藏时,身上物品不能超过20件,请您删除为20件以下再进行收藏。",&"-26": "当前形象内"+(sName?"的物品["+sName+"]":"有")+"与您的形象性别不一致,请脱下后再收藏。",&"-27": "当前形象内"+(sName?"的物品["+sName+"]":"有")+"与您的形象风格不一致,请脱下后再收藏。"&};&if (iCode == 0)&{&var irb = parseInt(node.getAttribute("rb"));&var iret = parseInt(node.getAttribute("set"));&if( iret & 0 )&{&alert("收藏成功");&}&else if( 1 == iret )&{&try{ top.mainfra.FloatShow('/inc/col_suc2.html', 524, 320, null , null, 40, -50); }catch(e){alert("收藏成功");} ;&}&else&{&QUSER.setInfo("bean" , irb) ;&try{ top.mainfra.FloatShow('/inc/col_suc1.html', 524, 320, null , null, 40, -50); }catch(e){alert("收藏成功");} ;&}
&fnCallBack && fnCallBack(0);&}&else if (mapCodeMessage[iCode])&{&alert("操作失败["+mapCodeMessage[iCode]+"]");&fnCallBack && fnCallBack(-1);&}&else&{&alert("操作失败"+DebugMessage(iCode));&fnCallBack && fnCallBack(-1);&}&}&};&function onError()&{&MaskEnd([top.mainfra, top.leftfra, top.topfra]);&alert("操作失败");&fnCallBack && fnCallBack(-1);&};
&if (arguments[0][0].length==0)&{&return alert("参数错误");&}
&var sShow = arguments[0][0];&var sName = arguments[0][1] || "我的收藏";&var sTags = arguments[0][2] || "";&var sDesc = arguments[0][3] || "";&var iType = arguments[0][4] || 0;
&var sUrl = setURLParam("", "show", huffcompress(sShow));&sUrl = setURLParam(sUrl, "name", sName);&sUrl = setURLParam(sUrl, "tags", sTags);&sUrl = setURLParam(sUrl, "desc", sDesc);&sUrl = setURLParam(sUrl, "type", iType);
&MaskStart([top.mainfra, top.leftfra, top.topfra]);&getQQSHOWXml(sUrl, onResp, onResp, onError);};
// vData = [iID, sName, sTags, sDesc, iType]function ShowCollectionSet(vData, fnCallBack, vWndMask){&vWndMask || (vWndMask = [top.mainfra, top.leftfra, top.topfra]);&function onResp(xmlDoc)&{&setTimeout(function(){ MaskEnd(vWndMask); }, 1000);&if (QQShowCommXMLError(xmlDoc))&{&var iCode = xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");&var mapCodeMessage = {&"-11": "作品名称中含有不能发表的内容",&"-12": "作品名称不能为空",&"-13": "作品描述中含有不能发表的内容",&"-14": "标签中含有不能发表的内容"&};&if (iCode == 0)&{&alert("保存成功");&fnCallBack && fnCallBack(0);&}&else if (mapCodeMessage[iCode])&{&alert("操作失败["+mapCodeMessage[iCode]+"]");&fnCallBack && fnCallBack(-1);&}&else&{&alert("操作失败"+DebugMessage(iCode));&fnCallBack && fnCallBack(-1);&}&}&};&function onError()&{&setTimeout(function(){ MaskEnd(vWndMask); }, 1000);&alert("操作失败");&fnCallBack && fnCallBack(-1);&};&if(CheckLogin(1))&{&if (!(arguments[0][0]&=0))&{&return alert("参数错误");&fnCallBack && fnCallBack(-1);&}
&var iID = arguments[0][0];&var sName = arguments[0][1] || "我的收藏";&var sTags = arguments[0][2] || "";&var sDesc = arguments[0][3] || "";&var iType = arguments[0][4] || 0;
&var sUrl = setURLParam("", "id", iID);&sUrl = setURLParam(sUrl, "name", sName);&sUrl = setURLParam(sUrl, "tags", sTags);&sUrl = setURLParam(sUrl, "desc", sDesc);&sUrl = setURLParam(sUrl, "type", iType);
&MaskStart(vWndMask);&getQQSHOWXml(sUrl, onResp, onResp, onError);&}};
function ShowCollectionDel(iID, fnCallBack){&if (!confirm("确定删除吗?"))&{&&}&function onResp(xmlDoc)&{&setTimeout("MaskEnd([top.mainfra, top.leftfra, top.topfra])", 1000);&var iCode = xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");&if (iCode == 0)&{&//alert("删除成功");&}&else if (QQShowCommXMLError(xmlDoc))&{&alert("操作失败");&}&fnCallBack && fnCallBack(xmlDoc);&};&function onError()&{&setTimeout("MaskEnd([top.mainfra, top.leftfra, top.topfra])", 1000);&alert("操作失败");&};&if(CheckLogin(1))&{&MaskStart([top.mainfra, top.leftfra, top.topfra]);&getQQSHOWXml(", onResp, onResp, onError);&}};
function ShowCollectionPrepare(){&if(CheckLogin(1))&{&var oQSAV = document.getElementById(g_sAVId).cQSAV;&var sItemSn = oQSAV.ToItemSn(0, 0, 0);
&//var itemNum = top.leftfra.document.getElementById("myavatar").cQSAV.ItemCount();
&var count = SpecTypeItemCount(sItemSn,3) + SpecTypeItemCount(sItemSn,4);&var arrObj = GetItemInfArr(sItemSn);&var itemNum = oQSAV.ItemCount();&var itemNum = itemNum -
&if(itemNum == 0)&{&alert("基本形象不可以收藏哦。");&}&else if(itemNum & 20)&{&alert("身上物品超过了20件,请您删除一些再收藏。");&}&var sItemSn = top.leftfra.document.getElementById("myavatar").cQSAV.ToItemSn(0, 0, 0);&/*Eutopia filter*/&sItemSn = filterForSpecItem(sItemSn,3);&sItemSn = filterForSpecItem(sItemSn,4);&/*Eutopia filter end*/&ShowCollectionAdd([sItemSn, "我的收藏", "", "", 0]);&}};
// ########################################################
// 试穿物品function PutOn(iItemNo, chSex, sPlyNo, iFStl, bPoseBind, iDefX, iDefY, bMov, bRot, bSelc, bSpecail, sText, sMallNo){&top.leftfra && top.leftfra.ShopTryItem && top.leftfra.ShopTryItem(iItemNo, chSex, sPlyNo, iFStl, bPoseBind, iDefX, iDefY, bMov, bRot, bSelc, bSpecail, sText, sMallNo);};
// 试穿形象function PutOnShow(sShow, sFrom){&top.leftfra && top.leftfra.TryOnShow && top.leftfra.TryOnShow(sShow, sFrom);};
function ReturnMallNo(){&if(getHashParam("mallno").length & 0) return getHashParam("mallno");&else if(top.g_iMallNo) return top.g_iMallNo;&else return 0;}
// ########################################################
// 共用功能显示[进度屏蔽/浮动窗口/...]
function DivCreate(oWin, oParent, sID, zIndex, iLeft, iTop, sWidth, sHeight, sDisplay){&if (oWin && oWin.document && !oWin.document.getElementById(sID))&{&var e = oWin.document.createElement("DIV");&e.id = sID;&e.style.position = "absolute";&e.style.zIndex = zI&e.style.left = iL&e.style.top = iT&e.style.width = sW&e.style.height = sH&e.style.display = sD&try{ oParent && oParent.appendChild(e); } catch(e) { }&&}&if (oWin.document.getElementById(sID)) return oWin.document.getElementById(sID);&};
function PageMaskCreate(oWin){&if(oWin && oWin.document)&{&if (!oWin.document.getElementById("ID_QQSHOW_WAIT_BACKGND"))&{&var ebg = DivCreate(oWin, oWin.document.body, "ID_QQSHOW_WAIT_BACKGND", 6, "100%", "100%", "none");&ebg.style.backgroundColor = "#0000FF";&ebg.style.opacity = 0.35;&ebg.style.filter = "alpha(opacity=35)";&}&return oWin.document.getElementById("ID_QQSHOW_WAIT_BACKGND");&}&};
function ProcessCreate(oWin){&if(oWin && oWin.document && oWin.document.body)&{&if (!oWin.document.getElementById("ID_QQSHOW_WAIT_PROCESS"))&{&var epr = DivCreate(oWin, oWin.document.body, "ID_QQSHOW_WAIT_PROCESS", 6, "100%", "100%", "none");&//epr.innerHTML = '&table width="100%" height="200" border="0"&&tr&&td align="center" valign="bottom"&&img src="" mce_src="" /&&/td&&/tr&&/table&';&epr.innerHTML = '&table width="100%" height="200" border="0"&&tr&&td&&&/td&&td width="308" valign="bottom"&&div style="width:308height:54"&&span style="display:float:width:58height:54background:url( style="display:float:width:250height:54background:url(http: //imgcache.qq.com/qqshow/v2/img/loading_bg_m.gif);line-height:54color: #text-indent:10font-size:12font-weight:"&处理中,请稍候... &/span&&/div&&/td&&td&&&/td&&/tr&&/table&';&}&return oWin.document.getElementById("ID_QQSHOW_WAIT_PROCESS");&}&};
function PageMaskShow(oWin){&var e = PageMaskCreate(oWin);&if(e)&{&e.style.height = Math.max((oWin.document.body.offsetHeight), oWin.document.documentElement.clientHeight)+"px";&e.style.display = "block";&}};
function ProcessShow(oWin, lTxt){&var e = ProcessCreate(oWin);&if(!lTxt) lTxt = ["处理中,请稍候..."];&if(e && oWin.document.body)&{&(lTxt) && (e.getElementsByTagName("SPAN")[1].innerHTML = lTxt[0]);&e.style.height = (oWin.document.body.offsetHeight)+"px";&e.getElementsByTagName("TABLE")[0].height = Math.max(Math.min(oWin.document.documentElement.scrollTop+150, oWin.document.body.offsetHeight-100), 100);&e.style.display = "block";&}};
function PageMaskHide(oWin){&var e = PageMaskCreate(oWin);&e.style.display = "none";};
function ProcessHide(oWin){&var e = ProcessCreate(oWin);&e.style.display = "none";};
function MaskStart(lWin){&for (var i=0; i&arguments[0]. ++i)&{&try{ PageMaskShow(arguments[0][i]); } catch(e) { }&}};
function MaskEnd(lWin){&for (var i=0; i&arguments[0]. ++i)&{&try{ PageMaskHide(arguments[0][i]); } catch(e) { }&}};
function WaitStart(lWin, lTxt, bTxt){&for (var i=0; i&arguments[0]. ++i)&{&if(arguments[0][i])&{&PageMaskShow(arguments[0][i]);&}&}&if(arguments[0][0] && !bTxt) ProcessShow(arguments[0][0], lTxt);};
function WaitEnd(lWin){&for (var i=0; i&arguments[0]. ++i)&{&try{ PageMaskHide(arguments[0][i]);} catch(e){ }&}&try{ ProcessHide(arguments[0][0]); } catch(e) { }};
function FloatShow(sUrl, iWidth, iHeight, OnOK, OnCancel, iLeft, iTop, oWin, fras, zIndex){&var izIndex = zIndex?zIndex:65530;&oWin = oWin ||&iLeft = typeof(iLeft)=="number" ? iLeft : 75;&iTop = typeof(iTop)=="number" ? iTop : 45;&var ifras =&if (typeof(fras) != "undefined" && fras != null && fras != "null")&{&ifras =&}else&{&ifras = [window, top.mainfra, top.leftfra, top.topfra];&}&FloatShow.Show = function(sUrl, iWidth, iHeight, iLeft, iTop)&{&MaskStart(ifras);&var e = DivCreate(oWin, oWin.document.body, "ID_QQSHOW_FLOAT_WIN", izIndex, 0, 50, "100%", "1", "none");&if(e && "object" == typeof(e) && "div" == e.tagName.toString().toLowerCase())&{&e.style.top = (Math.max(Math.min(oWin.document.documentElement.scrollTop+100, Math.max(oWin.document.body.offsetHeight-100,100)), 50))+"px";&e.innerHTML = '&table id="w_head" align="center" style="position:left:'+iLeft+'top:'+iTop+'"&&tr&&td align="center"&&iframe allowtransparency=true id="ID_QQSHOW_FLOAT_IFRAME" name="ID_QQSHOW_FLOAT_IFRAME" width="'+iWidth+'" height="'+iHeight+'" frameborder="0" scrolling="no"&&/iframe&&/td&&/tr&&/table&&div id="d_border" style="display:border:1px dotted #000000; position:"&&/div&';&e.getElementsByTagName("IFRAME")[0].src = sU&e.style.display = "block";&}&else throw "create div failed ";&};
&FloatShow.Hide = function()&{&MaskEnd([window, top.mainfra, top.leftfra, top.topfra]);
&if (arguments[0])&{&var fra = arguments[0];&if (fra && fra.document)&{&if(fra.document.getElementById("ID_QQSHOW_FLOAT_WIN"))&fra.document.getElementById("ID_QQSHOW_FLOAT_WIN").style.display = "none";&}&}else&{&if(document.getElementById("ID_QQSHOW_FLOAT_WIN"))&document.getElementById("ID_QQSHOW_FLOAT_WIN").style.display = "none";&}&};
&FloatShow.DireOnCancel = function()&{&OnCancel && OnCancel(arguments[0]);&};
&FloatShow.OnOK = function()&{&FloatShow.Hide();&OnOK && OnOK(arguments[0]);&};
&FloatShow.OnCancel = function()&{&FloatShow.Hide();&OnCancel && OnCancel(arguments[0]);&};
&FloatShow.AutoSize = function()&{&try&{&function FindIFrame(sName) { for (var i=0; i&window.frames. ++i) { if (window.frames[i].name==sName) { return window.frames[i]; } } };&var e = document.getElementById("ID_QQSHOW_FLOAT_IFRAME");&var w = _MSIE() ? window.frames["ID_QQSHOW_FLOAT_IFRAME"] : FindIFrame("ID_QQSHOW_FLOAT_IFRAME");&if ((w.document.documentElement.scrollTop=500) && (w.document.documentElement.scrollTop!=0))&{&e.height = parseInt(e.height)+w.document.documentElement.scrollTop+"px";&w.document.documentElement.scrollTop = 0;&}&if ((w.document.documentElement.scrollLeft=500) && (w.document.documentElement.scrollLeft!=0))&{&e.width = parseInt(e.width)+w.document.documentElement.scrollLeft+"px";&w.document.documentElement.scrollLeft = 0;&}&}&catch(e)&{&}&};
&FloatShow.Show(sUrl, iWidth, iHeight, iLeft, iTop);};//红钻包月添加function RBuyAll(show,from){&if (CheckLogin(1))&{&//红钻用户,且不是"特供品"才进入红钻免费页面&if (QUSER.getInfo("vip") == 1)&{&ShowVipMonthPageAll(show,from);&&}else&{&BuyAll(show,from);&}&}};function ShowVipMonthPageAll(show,from){&function OnOK(x)&{&BuyAll(show,from);&};&function OnCancel(x)&{&};&if (top.mainfra && top.topfra)&{&FloatShow("/mall/inc/buy_tips_box.html", 555, 390, OnOK, OnCancel, 0, -100, top.mainfra, null);&}&else&{&setTimeout("ShowVipMonthPageAll()", 1000);&}};//按形象串整套购买function BuyAll(show, from){&/*Eutopia filter begin*/
&show = filterForSpecItem(show,3);&show = filterForSpecItem(show,4);
&/*Eutopia filter end*/
&if(CheckLogin(1))&{&var arrObj = top.leftfra.GetItemInfArr(show);&var sItemNo = "";&for(var i = 0; i&arrObj. i++)&{&if(sItemNo.length & 0) sItemNo += "|";&sItemNo += arrObj[i]._iItemNo;&}&var sUrl = "/cgi-bin/qqshow_item_info?item="+sItemNo.escUrl();&function fnSucc(xmlDoc)&{&var aItemXml = xmlDoc.getElementsByTagName("node");&for(var i=0;i&aItemXml.i++)&{&setCart([aItemXml[i].getAttribute("iname"),aItemXml[i].getAttribute("ino"),1,aItemXml[i].getAttribute("ipriceori"),aItemXml[i].getAttribute("ipricevip"),0, 0, "",from.length&0?from:"", aItemXml[i].getAttribute("itype")]);&}&goCartWithLocation();&}&function fnFail(xmlDoc)&{&var sMessage = xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("message");&if (sMessage == "")&{&sMessage = "获取物品详情失败";&}&alert(sMessage);&&}&function fnError()&{&alert("对不起,系统繁忙,请稍后再试。");&&}&getQQSHOWXml(sUrl, fnSucc, QQShowCommXMLError&&fnFail, fnError);&}}//赠送身上的所有物品function sendAll(i){&var n = i || 0;&if (CheckLogin(1))&{&var oQSAV = document.getElementById(g_sAVId).cQSAV;&var sItemSn = oQSAV.ToItemSn(0, 0, 0);&/*Eutopia Filter*/&var count = SpecTypeItemCount(sItemSn,3) + SpecTypeItemCount(sItemSn,4);
&sItemSn = filterForSpecItem(sItemSn,3);&sItemSn = filterForSpecItem(sItemSn,4);&/****end***/
&var arrObj = GetItemInfArr(sItemSn);&var itemNum = oQSAV.ItemCount();&itemNum = itemNum -&if(itemNum == 0)&{&return alert("您的身上没有任何物品,请添加物品之后赠送");&}&else if(itemNum & 20)&{&return alert("对不起,单次赠送物品数量不能超过20件。");&}&if (top.mainfra && "function"==typeof(top.mainfra.FloatShow))&{&top.mainfra.FloatShow("", 596, 461, null, null, 0, -100);&}&else if(n == 0)&{&top.mainfra.location.href="/inc/main.html" mce_href="/inc/main.html";&setTimeout(function(){sendAll(n+1)}, 400);&}&else if(n & 10)&{&setTimeout(function(){sendAll(n+1)}, 400);&}&}};//索要身上的所有物品function askAll(i){&var n = i || 0;&if (CheckLogin(1))&{&var oQSAV = document.getElementById(g_sAVId).cQSAV;&var sItemSn = oQSAV.ToItemSn(0, 0, 0);
&/*Eutopia Filter*/&var count = SpecTypeItemCount(sItemSn,3) + SpecTypeItemCount(sItemSn,4);
&sItemSn = filterForSpecItem(sItemSn,3);&sItemSn = filterForSpecItem(sItemSn,4);&/****end***/
&var arrObj = GetItemInfArr(sItemSn);&var itemNum = oQSAV.ItemCount();&var itemNum = itemNum -
&if(itemNum == 0)&{&return alert("您的身上没有任何物品,请添加物品后索要.");&}&else if(itemNum & 20)&{&return alert("对不起,单次索要物品数量不能超过20件。");&}&if (top.mainfra && "function"==typeof(top.mainfra.FloatShow))&{&top.mainfra.FloatShow(", -100);&}&else if(n == 0)&{&top.mainfra.location.href="/inc/main.html" mce_href="/inc/main.html";&setTimeout(function(){askAll(n+1)},400);&}&else if(n & 10)&{&setTimeout(function(){askAll(n+1)},400);&}&}};// ########################################################
//floatshow 移动事件处理
function EventRouter(event){&var sType = event.&var oEle = event.srcElement || event.&var oWindow = document.getElementById("w_head");&var oBorder = document.getElementById("d_border");&switch (sType)&{&case "mousedown":&if(oEle.tagName.toUpperCase() == "A")&{&&}&oWindow.m_bDown =&oBorder.style.width = oWindow.offsetWidth + 2 + "px";&oBorder.style.height = oWindow.offsetHeight + 2 + "px";&oBorder.style.left = oWindow.offsetLeft + "px";&oBorder.style.top = oWindow.offsetTop +"px";&oBorder.style.display = "";&addEventListener(document.body,"onmousemove",EventRouter);&addEventListener(document.body,"onmouseup",EventRouter);&if(document.all)&oBorder.setCapture(true);&
&case "mouseup":&if(!oWindow.m_bDown )&oWindow.style.left = oBorder.style.&oWindow.style.top = oBorder.style.&oBorder.style.display = "none";&removeEventListener(document.body,"onmousemove",EventRouter);&removeEventListener(document.body,"onmouseup",EventRouter);&//oDebug.value += "removeEvent ok! \n";&oWindow.m_bDown =&if(document.all)&oBorder.releaseCapture(true);&&case "mousemove":&if(!oWindow.m_bDown)&var iM_x = event.clientX;&var iM_y;&var iScrollTop = document.body.scrollTop + document.documentElement.scrollT&iM_y = event.clientY + iScrollT&var oMask = document.getElementById("ID_QQSHOW_FLOAT_WIN");&var _left = iM_x - oWindow.clientWidth / 2;&var _top = iM_y - 20;
&var iW = oWindow.clientW&var iH = oWindow.clientH&var oW&if(window.frameElement) oWin = window.frameE&else oWin = document.&_left = _left & 15 ? 0 : (_left + iW & oWin.offsetWidth ? (oWin.offsetWidth - iW) : _left);&_top = _top & 15 ? 0 : (_top + iH - iScrollTop & (document.all ? oWin.clientHeight : document.body.clientHeight ) ? ( (document.all ? oWin.clientHeight :document.body.clientHeight ) - iH + iScrollTop) : _top );
&_top = _top - oMask.offsetT&//当父窗口过小时 处理。&_top = _top & (-oMask.offsetTop) ? (-oMask.offsetTop):_&oBorder.style.left = _left + "px";&oBorder.style.top = _top + "px";&&default:&&}};
function addEventListener (oElem, oEvents, fnHandler) {&if (!oElem || !oEvents || !fnHandler)
&if ((typeof oEvents == "string" || oEvents instanceof String)) {&_addEventListener(oElem, oEvents, fnHandler);&} else {&for (var i=0,nLen=oEvents. i&nL i++) {&_addEventListener(oElem, oEvents[i], fnHandler);&}&}};function _addEventListener(oElem, sEvent, fnHandler) {&if (!oElem || !sEvent || !fnHandler)
&if (oElem.attachEvent) {&if (sEvent.indexOf("on") == -1)&sEvent = "on" + sE&oElem.attachEvent(sEvent, fnHandler);&} else {&if (sEvent.indexOf("on") == 0)&sEvent = sEvent.substr(2);&oElem.addEventListener(sEvent, fnHandler, false);&}};
function removeEventListener (oElem, oEvents, fnHandler) {&if (!oElem || !oEvents || !fnHandler)
&if ((typeof oEvents == "string" || oEvents instanceof String)) {&_removeEventListener(oElem, oEvents, fnHandler);&} else {&for (var i=0,nLen=oEvents. i&nL i++) {&_removeEventListener(oElem, oEvents[i], fnHandler);&}&}};
function _removeEventListener(oElem, sEvent, fnHandler) {&if (!oElem || !sEvent || !fnHandler)
&if (oElem.detachEvent) {&if (sEvent.indexOf("on") == -1)&sEvent = "on" + sE&oElem.detachEvent(sEvent, fnHandler);&} else {&if (sEvent.indexOf("on") == 0)&sEvent = sEvent.substr(2);&oElem.removeEventListener(sEvent, fnHandler, false);&}};
// ########################################################function GetJs(url,loadFn){&this.bExec =&this.sUrl =&this.fnOnload = function()&{&if(!this.bExec)&{&loadFn();&this.bExec =&}&};};GetJs.prototype.init = function(){&var t =&var oScript = document.createElement("SCRIPT");&oScript.onload = function()&{&t.fnOnload();&};&oScript.onerror = function()&{&t.bExec =&};&oScript.onreadystatechange = function()&{&if((oScript.readyState!="loaded")&&(oScript.readyState!="complete"))&oScript.onreadystatechange =&t.fnOnload();&};&oScript.setAttribute("TYPE","text/javascript");&oScript.src = t.sU&document.getElementsByTagName("HEAD")[0].appendChild(oScript);};
//检查客户端分辨率function CheckClientScreen(){&var iScreenW = parseInt(screen.width);&var iScreenH = parseInt(screen.height);&if( iScreenW &= 800 || iScreenH &=600 )&{&alert("对不起,您的电脑分辨率太低,无法正常浏览商城,请调整电脑分辨率到以上!");&return -1;&}&return 0;};
// QQ秀帮助框function QQShowHelpBox(sContent, sTitle, sWinTitle, oWin, iType, bTxt){&QQShowHelpBox.OnClose = function()&{&WaitEnd([top.mainfra, top.leftfra, top.topfra]);&FloatShow.Hide();&};
&QQShowHelpBox.init = function(oDoc)&{&var eWinTitle = oDoc.getElementById("ID_WinTitle");&var eTitle = oDoc.getElementById("ID_Title");&var eContent = oDoc.getElementById("ID_Content");
&sWinTitle && eWinTitle && (eWinTitle.innerHTML = sWinTitle.escHtml());&sTitle && eTitle && (eTitle.innerHTML = sTitle.escHtml());&sContent && eContent && (eContent.innerHTML = sContent.escHtml());&};
&QQShowHelpBox.Show = function()&{&var sFile = '/help/inc/help_box.html';
&iType && (!isNaN(iType)) && (sFile = '/help/inc/help_box_' + iType + '.html');
&var iWidth = 461;&var iHeight = 230;&oWin || (oWin = top.mainfra ? top.mainfra : window);&oWin.FloatShow(sFile, iWidth, iHeight);&};
&WaitStart([top.mainfra, top.leftfra, top.topfra], null, bTxt);&QQShowHelpBox.Show();};
/*&QQ秀系统对话框&分为三种模式。*/
function QQShowDialog( iType , sMsg , sTitle , fnOk , fnNo , fnCancel, oWin, iWidth, iHeight, bTxt){&var m_itype = iType ? iType : 1 ;&var m_sMsg = sMsg ? sMsg: "";&var m_sTitle = sTitle ?sTitle : "提示";&var m_func_ok = fnOk? fnOk: function(){};&var m_func_no = fnNo ?fnNo: function(){};&var m_func_cancel = fnCancel ?fnCancel: function(){};&var _width = iWidth?iWidth:504;&var _height = iHeight?iHeight:198;
&QQShowDialog.Show = function ()&{&if(oWin)&oWin.FloatShow('/inc/alert.html', _width, _height);&else if(top.mainfra)&top.mainfra.FloatShow('/inc/alert.html', _width, _height);&else&FloatShow('/inc/alert.html', _width, _height);&};&QQShowDialog.OnOk = function ()&{&try{&m_func_ok();&}catch(e){};&FloatShow.Hide();&WaitEnd([top.mainfra, top.leftfra, top.topfra]);&};
&QQShowDialog.OnNo = function ()&{&try{&m_func_no();&}catch(e){};&FloatShow.Hide();&WaitEnd([top.mainfra, top.leftfra, top.topfra]);&};&QQShowDialog.OnCancel = function ()&{&try{&m_func_cancel();&}catch(e){};&FloatShow.Hide();&WaitEnd([top.mainfra, top.leftfra, top.topfra]);
&};&QQShowDialog.AddListener = function(oEle , fnEvt)&{&if(oEle){&addEventListener(oEle ,"onclick" , fnEvt );&}&};&QQShowDialog.init = function(oDoc)&{&// oDoc.getElementById("b_ok").innerHTML =&// oDoc.getElementById("b_no").innerHTML =&// oDoc.getElementById("b_cancel").innerHTML =&oDoc.getElementById("title").innerHTML = m_sTitle.escHtml();&oDoc.getElementById("msg").innerHTML = m_sMsg.escHtml();&var oBok = oDoc.getElementById("b_ok");&var oBno = oDoc.getElementById("b_no");&var oBcancel = oDoc.getElementById("b_cancel");
&QQShowDialog.AddListener(oBok,QQShowDialog.OnOk);&QQS

我要回帖

更多关于 location.reload 的文章

 

随机推荐