📄 platform_tray.compressed.js
字号:
createCSS(sel, decl);
}
},
addDomLoadEvent: addDomLoadEvent,
addLoadEvent: addLoadEvent,
getQueryParamValue: function(param) {
var q = doc.location.search || doc.location.hash;
if (param == null) {
return urlEncodeIfNecessary(q);
}
if (q) {
var pairs = q.substring(1).split("&");
for (var i = 0; i < pairs.length; i++) {
if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=") + 1)));
}
}
}
return "";
},
// For internal usage only
expressInstallCallback: function() {
if (isExpressInstallActive && storedAltContent) {
var obj = getElementById(EXPRESS_INSTALL_ID);
if (obj) {
obj.parentNode.replaceChild(storedAltContent, obj);
if (storedAltContentId) {
setVisibility(storedAltContentId, true);
if (ua.ie && ua.win) {
storedAltContent.style.display = "block";
}
}
storedAltContent = null;
storedAltContentId = null;
isExpressInstallActive = false;
}
}
}
};
}();
var SwfView = {
/**
* swfobject \u7c7b\u5f15\u7528
*/
swfobject : swfobject,
/**
* \u9700\u8981\u5448\u73b0\u7684SWF\u5217\u8868
*/
swfList: new Array(),
/**
* \u6dfb\u52a0\u65b9\u6cd5
* @param {String} Swf file url
* @param {HTMLElement} \u7236\u5bb9\u5668
* @param {String} \u9ad8
* @param {String} \u5bbd
* @param {String} \u7248\u672c\u53f7
* @param {String} (\u5b89\u88c5\u5411\u5bfcexpressInstall.swf\u6587\u4ef6\u8def\u5f84)
* @param {Object} FlashVars \u53c2\u6570
* @param {Object} Flash \u5bf9\u8c61\u7684\u53c2\u6570
* @param {Object} Flash \u5bf9\u8c61\u7684\u5c5e\u6027
* @author xs | zhenhua1@staff.sina.com.cn
* @update FlashSoft | fangchao@staff.sina.com.cn
* 08.10.13
* @example
* Sina.util.Swf.Add("test.swf", "swfBox", "200", "100");
*/
Add: function (sURL, sID, nWidth, nHeight, nVersion, sExpressInstall, oVar, oParam, oAtts, bAuto) {
if(sURL && sID) {
this.swfList[this.swfList.length] = {
sURL: sURL,
sID: sID,
nWidth: nWidth,
nHeight: nHeight,
nVersion: nVersion || "9.0.0",
sExpressInstall: sExpressInstall || "expressInstall.swf",
oVar: oVar,
oParam: oParam,
oAtts: oAtts
};
if(bAuto){
this.Init();
}
}
return SwfView;
},
/**
* \u6267\u884c\u521d\u59cb\u5316
* @author xs | zhenhua1@staff.sina.com.cn
* @update FlashSoft | fangchao@staff.sina.com.cn
* 08.10.13
*/
Init: function () {
var list = this.swfList;
for(var i = 0; i < list.length; i ++) {
this.swfobject.embedSWF(list[i]["sURL"], list[i]["sID"], list[i]["nWidth"], list[i]["nHeight"], list[i]["nVersion"], list[i]["sExpressInstall"], list[i]["oVar"], list[i]["oParam"], list[i]["oAtts"]);
}
list = new Array();
return SwfView;
}
};
regist("$Swf", "Sina.util.Swf", SwfView, "xs", "\u57fa\u4e8eJavascript\u7684Flash\u5a92\u4f53\u7248\u672c\u68c0\u6d4b\u4e0e\u5d4c\u5165\u6a21\u5757 SWFObject v2.1 \u7684\u4e8c\u6b21\u5c01\u88c5");
})();
/*
* Copyright (c) 2008, Sina Inc. All rights reserved.
* @fileoverview cookie\u64cd\u4f5c\u7c7b
* @author xinlin | xinlin@sina.staff.com.cn
* @version 1.0 | 2008-09-02
* @update 08.11.05
* FlashSoft | fangchao@staff.sina.com.cn
*/
/**
* @deprecated
* cookie\u7684\u64cd\u4f5c\u5f88\u7279\u522b\uff0c\u8bfb\u5199\u90fd\u662f\u901a\u8fc7document.cookie\u6765\u64cd\u4f5c\u7684
* 1.\u8bfb\u53d6\u7684\u65f6\u5019\uff0c\u6d4f\u89c8\u5668\u5e76\u6ca1\u6709\u63d0\u4f9b\u63a5\u53e3\u4f9b\u6309\u9700\u8bfb\u53d6\uff0c\u800c\u662f\u76f4\u63a5\u8fd4\u56de\u6240\u6709\u7684cookie
* 2.\u5199\u5165\u7684\u65f6\u5019\uff0c\u5bf9document.cookie\u7684\u8d4b\u503c\u5374\u662f\u53ea\u4f1a\u5bf9\u8bbe\u7f6e\u7684cookie name\u6240\u5bf9\u5e94\u7684cookie\u503c\u53d1\u751f\u4f5c\u7528\uff0c\u4e0d\u4f1a\u5f71\u54cd\u5176\u4ed6\u7684cookie\u503c\u3002\u5220\u9664\u64cd\u4f5c\u4e0e\u670d\u52a1\u5668\u7aef\u7684\u505a\u6cd5\u76f8\u540c\u90fd\u662f\u5c06cookie\u8bbe\u7f6e\u4e3a\u8fc7\u671f\u3002
* \u8fd9\u91cc\u53ef\u4ee5\u53d1\u73b0\u6d4f\u89c8\u5668\u7684cookie\u64cd\u4f5c\u662f\u7edf\u4e00\u7684\u5165\u53e3\uff0c\u4e0d\u8bba\u662f\u670d\u52a1\u5668\u7aef\u8fd8\u662f\u5ba2\u6237\u7aef\u3002
*
*/
(function () {
var Cookie = {};
/**
* \u8bfb\u53d6cookie,\u6ce8\u610fcookie\u540d\u5b57\u4e2d\u4e0d\u5f97\u5e26\u5947\u602a\u7684\u5b57\u7b26\uff0c\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u6240\u6709\u5143\u5b57\u7b26\u4e2d\uff0c\u76ee\u524d .[]$ \u662f\u5b89\u5168\u7684\u3002
* @param {Object} cookie\u7684\u540d\u5b57
* @return {String} cookie\u7684\u503c
* @example
* var value = Cookie.getCookie(name);
*/
Cookie.getCookie = function (name) {
name = name.replace(/([\.\[\]\$])/g,'\\\$1');
var rep = new RegExp(name + '=([^;]*)?;','i');
var co = document.cookie + ';';
var res = co.match(rep);
if (res) {
return res[1];
}
else {
return "";
}
};
/**
* \u8bbe\u7f6ecookie
* @param {String} name cookie\u540d
* @param {String} value cookie\u503c
* @param {Number} expire Cookie\u6709\u6548\u671f\uff0c\u5355\u4f4d\uff1a\u5c0f\u65f6
* @param {String} path \u8def\u5f84
* @param {String} domain \u57df
* @param {Boolean} secure \u5b89\u5168cookie
* @example
* Cookie.setCookie('name','sina')
*/
Cookie.setCookie = function (name, value, expire, path, domain, secure) {
var cstr = [];
cstr.push(name + '=' + escape(value));
if(expire){
var dd = new Date();
var expires = dd.getTime() + expire * 3600000;
dd.setTime(expires);
cstr.push('expires=' + dd.toGMTString());
}
if (path) {
cstr.push('path=' + path);
}
if (domain) {
cstr.push('domain=' + domain);
}
if (secure) {
cstr.push(secure);
}
document.cookie = cstr.join(';');
};
/**
* \u5220\u9664cookie
* @param {String} name cookie\u540d
*/
Cookie.deleteCookie = function(name) {
document.cookie = name + '=;' + 'expires=Fri, 31 Dec 1999 23:59:59 GMT;';
};
regist("$Cookie", "Sina.util.Cookie", Cookie, "xinlin", "Cookie\u8bfb\u5199\u7c7b");
})();
/*
* Copyright (c) 2007, Sina Inc. All rights reserved.
* @fileoverview \u5f15\u7528\u5916\u90e8\u7684js\u6587\u4ef6\uff0c\u5e76\u76d1\u6d4bjs\u7684\u8f7d\u5165\u72b6\u6001
*/
/**
* \u5c06\u5355\u4e2a\u6216\u8005\u4e00\u7ec4js\u5f15\u5165\u5230\u9875\u9762\u4e0a\uff0c\u5f53\u8f7d\u5165\u5b8c\u6210\u65f6\u6267\u884c\u6307\u5b9a\u7684\u51fd\u6570
* @author stan | chaoliang@staff.sina.com.cn
* @param {String} jsfile \u5f15\u5165\u7684\u5355\u4e2a\u6587\u4ef6\u5730\u5740
* @param {Array} jsfile \u5f15\u5165\u7684\u591a\u4e2a\u6587\u4ef6\u5730\u5740\u7ec4\u6210\u7684\u6570\u7ec4
* @param {Function} handle \u6240\u5f15\u5165\u7684js\u6587\u4ef6\u5168\u90e8\u52a0\u8f7d\u5b8c\u6bd5\u540e\u8981\u6267\u884c\u7684\u51fd\u6570
* @example
* var jsfiles = [
* "http://blog.sina.com.cn/file1.js",
* "http://blog.sina.com.cn/file2.js"
* ]
* Sina.io.include(jsfiles, function(){
* alert("all file are included");
* })
* @global $include
*/
(function(){
suinclude = function(jsfile, handle, _charset) {
var ja = new Array();
var jsHash = {};
if(typeof jsfile == 'string') ja.push(jsfile);
else ja = jsfile.slice(0);
var ua = navigator.userAgent.toLowerCase();
var isIE = /msie/.test(ua);
var isOpera = /opera/.test(ua);
var isMoz = /firefox/.test(ua);
for(var i=0;i<ja.length;i++) {
jsHash['j'+i] = false;
jsHash['count_'+i]=0;
var js = $C('script');
js.type = 'text/javascript';
if(_charset != null && _charset == "gb2312"){
js.charset = _charset;
}
js.src = ja[i];
js.id = 'j' + i;
if(isIE) js.onreadystatechange = function() {
if(this.readyState.toLowerCase() == 'complete' || this.readyState.toLowerCase() == 'loaded'){
jsHash[this.id] = true;
}
};
if(isMoz) js.onload = function() {
jsHash[this.id] = true;
};
if(isOpera) jsHash['j' + i] = true;
document.body.appendChild(js);
}
var loadTimer = setInterval(function(){
for (var i = 0; i < ja.length; i++) {
trace(jsHash['j'+i]+";jsHash['count_'+i]="+jsHash['count_'+i]+";js.src="+ja[i]);
if (jsHash['count_' + i] < 5) {
if (jsHash['j' + i] == false) {
jsHash['count_' + i]++;
return;
}
}else{
continue;
}
}
clearInterval(loadTimer);
eval(handle)();
},100);
};
regist("$suinclude", "Sina.io.suinclude", suinclude, "xy", "\u8f7d\u5165\u4e00\u4e2aurl,\u6210\u529f\u540e\u6267\u884c\u56de\u8c03\u51fd\u6570\uff0c\u5982\u679c\u91cd\u590d\u8f7d\u51655\u6b21\u4e0d\u6210\u529f\uff0c\u5219\u653e\u5f03\u6267\u884c");
})();
eval(regist.bindTo());
//-- \u5168\u5c40\u914d\u7f6e\u4fe1\u606f --------------------------------------------------------------
var get_timer = null;
var html_nologin = '';
html_nologin += '<div class="sinatopbar" id="login_bar_{Tray}">';
html_nologin += ' <div class="stb">';
html_nologin += ' <!--\u4ea7\u54c1Logo-->';
html_nologin += ' <div class="logo"><a id="login_bar_logo_link_{Tray}"></a></div>';
html_nologin += ' <div class="stbcen">';
html_nologin += ' <!--\u8fd0\u8425\u5bfc\u822a-->'
html_nologin += ' <div class="st_Jh_vblog_nologin">';
html_nologin += ' <span class="v1"><a href="http://blog.sina.com.cn" id="login_operation_first_btn_{Tray}" target="_blank">\u535a\u5ba2\u9996\u9875</a></span>';
html_nologin += ' <span class="Mb_line"></span>';
html_nologin += ' <span class="v2" id="login_bar_operation_span_{Tray}" ><a href="http://blog.sina.com.cn/lm/rank/index.html" id="login_operation_second_btn_{Tray}" target="_blank">\u6392\u884c\u699c</a></span>';
html_nologin += ' <span class="v2" style="display:none;" id="login_bar_video_btn_{Tray}"><a href="javascript:;" id="login_bar_video_{Tray}"><strong>\u70b9\u64ad\u5355</strong><em>(0)</em></a><input type="hidden" id="video_number_{Tray}" value="0"></span>';
html_nologin += ' <span class="vAd" id="login_ad_content_{Tray}"><a target="_blank" href="http://blog.sina.com.cn/lm/z/qianfu09/index.html">\u535a\u53cb\u70ed\u8bae\u8c0d\u6218\u5267\u300a\u6f5c\u4f0f\u300b</a></span>';
html_nologin += ' </div>';
html_nologin += ' <!--\u767b\u9646\u6309\u94ae-->';
html_nologin += ' <div class="stblog">';
html_nologin += ' <span class="stblog1" ><input type="button" value="\u767b\u5f55" id="login_login_btn_{Tray}" style="cursor: pointer"/></span>';
html_nologin += ' <span class="stbline_j"></span>';
html_nologin += ' <span class="stblog2"><a href="javascript:;" id="login_reg_btn_{Tray}" target="_blank">\u6ce8\u518c</a></span>';
html_nologin += ' </div>';
html_nologin += ' </div>';
html_nologin += ' <div class="t_help">';
html_nologin += ' <span class="stb_sosline" ></span>';
html_nologin += ' <span class="helplink">';
html_nologin += ' <a id="login_help_link_{Tray}" href="http://blog.sina.com.cn/lm/help/2009/index.html" target="_blank">\u5e2e\u52a9</a>';
html_nologin += ' </span>';
html_nologin += ' </div>';
html_nologin += ' <!--\u641c\u7d22\u533a\u57df-->';
html_nologin += ' <div class="stbsea"><form id="login_bar_search_form_{Tray}" method="get" target="_blank" action="http://uni.sina.com.cn/c.php?ie={Charset2}&t=blog"><div style="overflow:hidden">';
html_nologin += ' <input name="ie" value="{Charset2}" type="hidden"><input name="e" value="{Charset}" type="hidden" style="width:0px;"><input name="k" value="" type="hidden" id="login_bar_search_hide_k_{Tray}" style="width:0px;"><input name="ts" value="" type="hidden" id="login_bar_search_hide_ts_{Tray}" style="width:0px;"><input name="key" value="" type="hidden" id="login_bar_search_hide_key_{Tray}">';
html_nologin += ' <input name="keyword" value="" type="hidden" style="width:0px;" id="login_bar_search_hide_key_word_{Tray}"><input name="t" value="" type="hidden" id="login_bar_search_hide_t_{Tray}" style="width:0px;"></div><div class="sts1" style="background:url(http://simg.sinajs.cn/common/images/sinatopbar/090315_bg2.gif) no-repeat; background-position:2px 0px;*background-position:2px 2px; width:117px; padding:0px 0px 0px 4px; height:24px;"><input type="text" class="stinp1" style="background:none transparent; height:18px; padding:2px 0px 2px 2px; width:109px;" id="login_bar_search_input_{Tray}" ></div><div class="sts2"><div class="anainp" id="login_bar_search_menu_label_{Tray}">\u7efc\u5408</div><div class="arrow" id="login_bar_search_menu_arrow_{Tray}"></div></div><div class="sts3"><input class="suba" type="submit" value="\u641c\u7d22"></div></form></div>';
html_nologin += ' </div>';
html_nologin += '</div>';
var html_login = '';
html_login += '<div id="login_swf_parent_{Tray}" style="width: 20px; height: 20px; position: fixed; _position: absolute; left:0; top:0; overflow: hidden;">';
html_login += '<div id="login_conn_swf_{Tray}"></div>';
html_login += '<div id="login_music_swf_{Tray}"></div>';
html_login += '</div>';
html_login += '<div class="sinatopbar" id="login_bar_{Tray}">';
html_login += ' <div class="stb">';
html_login += ' <!--\u4ea7\u54c1Logo-->';
html_login += ' <div class="logo"><a id="login_bar_logo_link_{Tray}"></a></div>';
html_login += ' <!-- \u4fe1\u606f\u5448\u73b0\u533a\u57df -->';
html_login += ' <div class="stbcen2">';
html_login += ' <div class="nbg1" id="login_bar_opt_app_{Tray}"><div class="nbg2">';
html_login += ' <!-- APP_\u83dc\u5355\u6587\u5b57 -->';
html_login += ' <div class="name" id="login_bar_app_menu_label_{Tray}">\u8bfb\u53d6\u4e2d...</div>';
html_login += ' <!-- APP_\u4e0b\u62c9\u7bad\u5934 -->';
html_login += ' <div class="arr2" id="login_bar_app_menu_arrow_{Tray}"><a href="javascript:;" > </a></div>';
html_login += ' </div></div>';
html_login += ' <div class="nbg1" id="login_bar_opt_friend_{Tray}"><div class="nbg2">';
html_login += ' <!-- \u597d\u53cb_\u83dc\u5355\u6587\u5b57 -->';
html_login += ' <div class="name3" id="login_bar_friend_menu_label_{Tray}">\u597d\u53cb</div>';
html_login += ' </div></div>';
html_login += ' <div class="nbg1" id="login_bar_opt_msg_{Tray}"><div class="nbg2">';
html_login += ' <div class="ico2" id="login_bar_msg_menu_ico_{Tray}" style="display: none;"><img src="http://simg.sinajs.cn/common/images/sinatopbar/spacetop_icon3_on.gif"></div>';
html_login += ' <!-- \u6536\u4ef6\u7bb1_\u83dc\u5355\u6587\u5b57 -->';
html_login += ' <div class="name2" id="login_bar_msg_menu_label_{Tray}">\u6536\u4ef6\u7bb1</div>';
html_login += ' <!-- \u6536\u4ef6\u7bb1_\u4e0b\u62c9\u7bad\u5934 -->';
html_login += ' <div class="arr2" id="login_bar_msg_menu_arrow_{Tray}"><a href="javascript:;"></a></div>';
html_login += ' </div></div>';
html_login += ' <!-- \u97f3\u4e50\u64ad\u653e\u5668\u533a\u57df -->';
html_login += ' <div class="musican">';
html_login += ' <span class="stbplay"><img id="login_bar_music_menu_control_{Tray}" width="29" height="31"></span>';
html_login += ' <span title="\u64ad\u653e\u5217\u8868" class="stblist" id="login_bar_music_menu_label_{Tray}"><img src="http://simg.sinajs.cn/common/images/sinatopbar/stbcen_7.gif"></span>';
html_login += ' </div>';
html_login += ' <!-- \u64ad\u5ba2\u70b9\u64ad\u5355 -->';
html_login += ' <div class="stbline" style="display:none;" id="login_bar_video_line_{Tray}"></div>';
html_login += ' <div class="stbset" style="display:none;" id="login_bar_video_btn_{Tray}"><a href="javascript:;" id="login_bar_video_{Tray}"><strong>\u70b9\u64ad\u5355</strong><em>(0)</em></a><input type="hidden" id="video_number_{Tray}" value="0"></div>'
html_login += ' <div class="stbline"></div>';
html_login += ' <div class="stbset"><a id="login_bar_loginout_label_{Tray}" href="javascript:;">\u9000\u51fa</a></div>';
html_login += ' </div>';
html_login += ' <div class="t_help">';
html_login += ' <span class="stb_sosline" ></span>';
html_login += ' <span class="helplink">';
html_login += ' <a id="login_help_link_{Tray}" href="http://blog.sina.com.cn/lm/help/2009/index.html" target="_blank">\u5e2e\u52a9</a>';
html_login += ' </span>';
html_login += ' </div>';
html_login += ' <!--\u641c\u7d22\u533a\u57df-->';
html_login += ' <div class="stbsea"><form id="login_bar_search_form_{Tray}" method="get" target="_blank" action="http://uni.sina.com.cn/c.php?ie={Charset2}&t=blog"><div style="overflow:hidden"><input name="ie" value="{Charset2}" type="hidden"><input name="e" value="{Charset}" type="hidden"><input name="k" value="" type="hidden" id="login_bar_search_hide_k_{Tray}"><input name="key" value="" type="hidden" id="login_bar_search_hide_key_{Tray}"><input name="keyword" value="" type="hidden" id="login_bar_search_hide_key_word_{Tray}"><input name="t" value="" type="hidden" id="login_bar_search_hide_t_{Tray}">';
html_login += ' <input name="ts" value="" type="hidden" id="login_bar_search_hide_ts_{Tray}"></div><div class="sts1" style="background:url(http://simg.sinajs.cn/common/images/sinatopbar/090315_bg2.gif) no-repeat; background-position:2px 0px;*background-position:2px 2px; width:117px; padding:0px 0px 0px 4px; height:24px;"><input type="text" class="stinp1" style="background:none transparent; height:18px; padding:2px 0px 2px 2px; width:109px;" id="login_bar_search_input_{Tray}"></div><div class="sts2"><div class="anainp" id="login_bar_search_menu_label_{Tray}">\u7efc\u5408</div><div class="arrow" id="login_bar_search_menu_arrow_{Tray}"></div></div><div class="sts3"><input class="suba" type="submit" value="\u641c\u7d22"></div></form></div>';
html_login += ' </div>';
html_login += '</div>';
var html_app = '';
html_app += '<div class="layerBox" id="app_menu_{Tray}" style="position: absolute; display: none; z-index: 1000;">';
html_app += ' <div class="topIcon s2"></div>';
html_app += ' <div class="layerIn">';
html_app += ' <dl class="mlinkList">';
html_app += ' <dd><span class="icon"><img class="CP_i CP_i_blog" src="http://simg.sinajs.cn/common/images/CP_i.gif" align="absmiddle"></span><span class="l"> <a href="http://blog.sina.com.cn" id="app_menu_blog_item_{Tray}"><strong>\u535a\u5ba2</strong></a></span><span class="r"><a href="http://control.blog.sina.com.cn/admin/article/article_add.php" class="linkEdit" target="_blank">[\u53d1\u535a\u6587]</a></span></dd>';
html_app += ' <dd><span class="icon"><img class="CP_i CP_i_blogi" src="http://simg.sinajs.cn/common/images/CP_i.gif" align="absmiddle"></span><span class="l"> <a href="http://photo.blog.sina.com.cn" id="app_menu_photo_item_{Tray}"><strong>\u76f8\u518c</strong></a></span><span class="r"><a href="http://photo.blog.sina.com.cn/upload/upload.php" class="linkEdit" target="_blank">[\u53d1\u56fe\u7247]</a></span></dd>';
html_app += ' <dd><span class="icon"><img class="CP_i CP_i_music" src="http://simg.sinajs.cn/common/imag
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -