千嬴国际官网_
  • 设为首页
  • 手机版
    千嬴国际官网
退出账号" var name_ = decodeURI(cookieId); var name1 = name_.substring(0, name_.indexOf("*")); if (dd[1] == 1) { if (name1.length >= 5) { userbox.innerHTML = name1.substring(0, 4) + '...'; } else { userbox.innerHTML = name1 + ''; } } else if (dd[1] == 0) { if (name1.length >= 16) { userbox.innerHTML = name1.substring(0, 13) + '...'; } else { userbox.innerHTML = name1 + ''; } } document.getElementById('xzqx11').style.display = 'none'; document.getElementById('xzqx21').style.display = 'block'; document.getElementById('yonghuming_dyw356').style.display = 'block'; document.getElementById('dyw695').style.display = 'none'; } else { document.getElementById('dyw695').style.display = 'block'; document.getElementById('xzqx11').style.display = 'block'; document.getElementById('xzqx21').style.display = 'none'; document.getElementById('yonghuming_dyw356').style.display = 'none'; userbox.innerHTML = ''; } }; //日历 /*var now = new Date(); function RunTime() { var weeks = new Array('星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'); var year = now.getFullYear(); var month = now.getMonth() + 1; var date = now.getDate(); if (month < 10) { month = '0' + month; } if (date < 10) { date = '0' + date; } return year + '年' + month + '月' + date + '日 ' + weeks[now.getDay()]; }*/ //天气 /*function getAddress() { var ip_value; var address; address = ctcode; if (address == "BJ") { ip_value = "0"; } else if (address == "SH") { ip_value = "8"; } else if (address == "TJ") { ip_value = "1"; } else if (address == "CQ") { ip_value = "21"; } else if (address == "HE") { ip_value = "2"; } else if (address == "SX") { ip_value = "3"; } else if (address == "NM") { ip_value = "4"; } else if (address == "LN") { ip_value = "5"; } else if (address == "JL") { ip_value = "6"; } else if (address == "HL") { ip_value = "7"; } else if (address == "JS") { ip_value = "9"; } else if (address == "ZJ") { ip_value = "10"; } else if (address == "AH") { ip_value = "11"; } else if (address == "SN") { ip_value = "26"; } else if (address == "GS") { ip_value = "27"; } else if (address == "QH") { ip_value = "28"; } else if (address == "NX") { ip_value = "29"; } else if (address == "FJ") { ip_value = "12"; } else if (address == "JX") { ip_value = "13"; } else if (address == "SD") { ip_value = "14"; } else if (address == "HA") { ip_value = "15"; } else if (address == "HB") { ip_value = "16"; } else if (address == "HN") { ip_value = "17"; } else if (address == "GD") { ip_value = "18"; } else if (address == "GX") { ip_value = "19"; } else if (address == "HI") { ip_value = "20"; } else if (address == "SC") { ip_value = "22"; } else if (address == "GZ") { ip_value = "23"; } else if (address == "YN") { ip_value = "24"; } else if (address == "XZ") { ip_value = "25"; } else if (address == "XJ") { ip_value = "30"; } else if (address == "TW") { ip_value = "33"; } else if (address == "HK") { ip_value = "31"; } else if (address == "MO") { ip_value = "32"; } else { ip_value = "0"; } return ip_value; }*/ function getCookie(name) { var strcookie = document.cookie; var arrcookie = strcookie.split("; "); for (var i = 0; i < arrcookie.length; i++) { var arr = arrcookie[i].split("="); if (arr[0] == name) return unescape(arr[1]); } return ""; } function SetCookie(name, value, expires) { document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : ""); } function StringBuffer() { var arr = new Array(); this.append = function(str) { arr.push(str); return this; }; this.toString = function() { return arr.join(""); }; } function loadScript(__stringUrl, __functionCallback, __stringCharset) { var __elementScript = document.createElement("script"); __elementScript.type = "text/javascript"; if (typeof __stringCharset != "undefined") { __elementScript.charset = __stringCharset; } __elementScript._functionCallback = typeof __functionCallback != "undefined" ? __functionCallback: new Function(); __elementScript[document.all ? "onreadystatechange": "onload"] = function() { if (document.all && this.readyState != "loaded" && this.readyState != "complete") { return; } this._functionCallback(this); this._functionCallback = null; this[document.all ? "onreadystatechange": "onload"] = null; this.parentNode.removeChild(this); }; __elementScript.src = __stringUrl; document.getElementsByTagName("head")[0].appendChild(__elementScript); } document.body.setAttribute("id", "bid"); var kEvent1 = (function() { return { addEvent: function(element, name, observer, useCapture) { try { element = Dom.$id(element); if (element.addEventListener) { element.addEventListener(name, observer, useCapture); } else if (element.attachEvent) { element.attachEvent('on' + name, observer); } } catch(e) {} }, delEvent: function(el, sType, fn) { if (window.removeEventListener) { el.removeEventListener(sType, fn, false); } else if (window.detachEvent) { el.detachEvent("on" + sType, fn); } }, getTarget: function(ev) { var t = ev.target || ev.srcElement; return this.resolveTextNode(t); }, resolveTextNode: function(node) { if (node && 3 == node.nodeType) { return node.parentNode; } else { return node; } }, getRelatedTarget: function(ev) { var t = ev.relatedTarget; if (!t) { if (ev.type == "mouseout") { t = ev.toElement; } else if (ev.type == "mouseover") { t = ev.fromElement; } } return this.resolveTextNode(t); }, stopEvent: function(ev) { this.stopPropagation(ev); this.preventDefault(ev); }, stopPropagation: function(ev) { if (ev.stopPropagation) { ev.stopPropagation(); } else { ev.cancelBubble = true; } }, preventDefault: function(ev) { if (ev.preventDefault) { ev.preventDefault(); } else { ev.returnValue = false; } } } })(); var Dom = { $id: function(nodeId) { if (typeof nodeId == 'string') { return document.getElementById(nodeId); } else if (typeof nodeId == 'object') { return nodeId; } else { return false; } }, isClass: function(className, node) { if ((!node) || (!className)) { return null; } var reFlag = false; if (node.className == className) { reFlag = true; } return reFlag; }, hasClass: function(className, node) { if ((!className) || (!node) || (!node.className)) { return false; } return (new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)').test(node.className)); }, addClass: function(className, node) { if ((!className) || (!node)) { return false; } if (Dom.hasClass(className, node)) { return true; } var newClassName = node.className ? node.className + ' ' + className: className; node.className = newClassName; return true; }, removeClass: function(className, node) { if (! (Dom.hasClass(className, node))) { return; } var nodeClassName = node.className; if (nodeClassName == className) { nodeClassName = ""; } else { nodeClassName = nodeClassName.replace(new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)', 'g'), "").replace(/^\s*/, ""); } node.className = nodeClassName; } }; function searchSon(obj) { var o = obj.childNodes; var arro = []; for (var i = 0; i < o.length; i++) { if (o[i].nodeType == 1) { arro.push(o[i]); } } return arro; } function showSelect2(p) { var s_btn = document.getElementById("goto_btn"); if (s_btn.style.display == "") { s_btn.style.display = "none"; } s_btn.style.display = s_btn.style.display == "none" ? "block": "none"; $("#goto_btn21 a").attr(); } function showSelect4(p) { var s_btn = document.getElementById("goto_btn1"); if (s_btn.style.display == "") { s_btn.style.display = "none"; } s_btn.style.display = s_btn.style.display == "none" ? "block": "none"; $("#goto_btn1 a").attr(); } function showSelect5(p) { var s_btn = document.getElementById("goto_btn21"); if (s_btn.style.display == "") { s_btn.style.display = "none"; } s_btn.style.display = s_btn.style.display == "none" ? "block": "none"; $("#goto_btn21 a").attr(); } function showSelect6(p) { var s_btn = document.getElementById("goto_btn3"); if (s_btn.style.display == "") { s_btn.style.display = "none"; } s_btn.style.display = s_btn.style.display == "none" ? "block": "none"; $("#goto_btn3 a").attr(); } function showSelect7(p) { var s_btn = document.getElementById("goto_btn4"); if (s_btn.style.display == "") { s_btn.style.display = "none"; } s_btn.style.display = s_btn.style.display == "none" ? "block": "none"; $("#goto_btn4 a").attr(); } function showSelect8(p) { var s_btn = document.getElementById("goto_btn5"); if (s_btn.style.display == "") { s_btn.style.display = "none"; } s_btn.style.display = s_btn.style.display == "none" ? "block": "none"; } function hideSelect(e) { var evn = kEvent1.getTarget(e); if (evn.parentNode) { if (evn.parentNode.parentNode) { if (evn.parentNode.parentNode != document) { if (evn.parentNode.getAttribute("id") == "goto_btn" || evn.parentNode.getAttribute("id") == "goto_btn1" || evn.parentNode.getAttribute("id") == "goto_btn21" || evn.parentNode.getAttribute("id") == "goto_btn3" || evn.parentNode.getAttribute("id") == "goto_btn4" || evn.parentNode.getAttribute("id") == "goto_btn5" || evn.getAttribute("id") == "goto_btn" || evn.getAttribute("id") == "goto_btn1" || evn.getAttribute("id") == "goto_btn21" || evn.getAttribute("id") == "goto_btn3" || evn.getAttribute("id") == "goto_btn4" || evn.getAttribute("id") == "goto_btn5") { return; } } } } document.getElementById('goto_btn5').style.display = 'none'; document.getElementById('goto_btn21').style.display = 'none'; } kEvent1.addEvent("bid", "mousedown", hideSelect); function isBlank(content) { return content == null || content == "" || content == "用户名" ; } function transform1() { var loginId = $("#login_Id1").val(); if (isBlank(loginId)) { alert("请输入用户名!"); return; } var password = $("#password1").val(); if (isBlank(password)) { alert("请输入密码!"); return; } var ifOpen = true; var serviceUrl = window.location.href; var titleName = document.getElementById("g_txt51").innerHTML; if (titleName == "用户中心") { serviceUrl = "http://passport.12371.cn/"; } else if (titleName == "我要投稿") { serviceUrl = "http://bbs.12371.cn/home.php?mod=space&do=blog&view=me&from=space&tagid=2"; } else if (titleName == "先锋论坛") { serviceUrl = "http://bbs.12371.cn/forum.php"; } else if (titleName == "选择去向") { ifOpen = false; serviceUrl = location.href; } $.getJSON("http://passport.12371.cn/security/login?callback=?", { username: encodeURI(loginId), password: password, nologincode: "true", ajax: "true" }, function(data) { var result = data.state; if (result == "success") { if (ifOpen) { window.location.href=serviceUrl; } else { window.location.reload() } } else { result = decodeURI(decodeURI(result)); alert(result); } }); } yetouchkLoginStatus(); document.onkeydown = function(event) { if (!event) event = window.event; if ((event.keyCode || event.which) == 13) { if (! ($("#login_Id1").get(0).value == '' || $("#login_Id1").get(0).value == '用户名' || $("#password1").get(0).value == '' || $("#password1").get(0).value == '密码')) { document.getElementById("enter").click(); } return false; } } function SetHome(url){ if (document.all) { document.body.style.behavior='url(#default#homepage)'; document.body.setHomePage(url); }else{ alert("您好,您的浏览器不支持自动设置页面为首页功能,请您手动在浏览器里设置该页面为首页!"); } } //--> /**20131112-新版首页顶通割接-lwt*/