2) ? argv[2] : null;
if (expires != null) {
var LargeExpDate = new Date ();
LargeExpDate.setTime(LargeExpDate.getTime() + (expires*1000*3600*24));
}
document.cookie = name + "=" + escape (value)+((expires == null) ? "" : ("; expires=" +LargeExpDate.toGMTString()));
}
function getCookie(Name) {
var search = Name + "="
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if(offset != -1) {
offset += search.length;
end = document.cookie.indexOf(";", offset);
if(end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(offset, end));
}else {
return '';
}
}
}
function zh_tranBody(obj) {
var o = (typeof(obj) == "object") ? obj.childNodes : document.body.childNodes;
for (var i = 0; i < o.length; i++) {
var c = o.item(i);
if ('||BR|HR|TEXTAREA|SCRIPT|'.indexOf("|"+c.tagName+"|") > 0) continue;
if (c.className == zh_class) {
if (c.id == zh_class + '_' + zh_choose) {
c.setAttribute('style', zh_style_active);
c.style.cssText = zh_style_active;
}else {
c.setAttribute('style', zh_style_inactive);
c.style.cssText = zh_style_inactive;
}
continue;
}
if (c.title != '' && c.title != null) c.title = c.title.tran();
if (c.alt != '' && c.alt != null) c.alt = c.alt.tran();
if (c.tagName == "INPUT" && c.value != '' && c.type != 'text' && c.type != 'hidden' && c.type != 'password') c.value = c.value.tran();
if (c.nodeType == 3) {
c.data = c.data.tran();
}else{
zh_tranBody(c);
}
}
}
function zh_tran(go) {
if (go) zh_choose = go;
setCookie('zh_choose', zh_choose, zh_expires);
if (go == 'n') {
window.location.reload();
}else {
zh_tranBody();
}
}
function zh_getLang() {
if (getCookie('zh_choose')) {
zh_choose = getCookie('zh_choose');
return true;
}
if (!zh_autoLang_t && !zh_autoLang_s) return false;
if (getCookie('zh_autoLang_checked')) return false;
if (navigator.language) {
zh_browserLang = navigator.language;
}else if (navigator.browserLanguage) {
zh_browserLang = navigator.browserLanguage;
}
if (zh_autoLang_t && zh_langReg_t.test(zh_browserLang)) {
zh_choose = 't';
}else if (zh_autoLang_s && zh_langReg_s.test(zh_browserLang)) {
zh_choose = 's';
}
zh_autoLang_checked = 1;
setCookie('zh_choose', zh_choose, zh_expires);
if (zh_choose == zh_default) return false;
return true;
}
function zh_init() {
zh_getLang();
c = document.getElementById(zh_class + '_' + zh_choose);
if (zh_choose != zh_default) {
if (window.onload) {
window.onload_before_zh_init = window.onload;
window.onload = function() {
zh_tran(zh_choose);
if (getCookie('zh_autoLang_check')) {alert(zh_autoLang_msg);};
window.onload_before_zh_init();
};
}else {
window.onload = function() {
zh_tran(zh_choose);
if (getCookie('zh_autoLang_check')) {alert(zh_autoLang_msg);};
};
}
}
}
zh_init();
|
國家郵政局:今年“雙11”快遞將破10億件,還有這三件新鮮事 |
|
【時(shí)間:2016年11月10日】 【來源:中國政府網(wǎng)】字號(hào): 【大】
【中】
【小】
|
http://vod.xinhuanet.com/v/vod.html?vid=396102 >
|
|
|