function killErrors() { return true; } window.onerror = killErrors; // 半角转全角 var hash = {'32' : '\u3000'}; function sbc2dbc(str) { var ret = [], i = 0, len = str.length, code, chr; for (; i < len; ++i) { code = str.charCodeAt(i); chr = hash[code]; if (!chr && code > 31 && code < 127) { chr = hash[code] = String.fromCharCode(code + 65248); } ret[i] = chr ? chr : str.charAt(i); } return ret.join(''); } var LDtemp = new Array(); //LDtemp Start LDtemp.push("d4sx.com"); //LDtemp End var timestamp2 = Date.parse(new Date()); var dayLD=parseInt((timestamp2+8*3600000-3*3600000)/86400000); var LockDomain = LDtemp[(dayLD%LDtemp.length)]; //window.onload=function(){ //$(function(){ var Thostname; var Thostname2; var Thostnametxt; var Thostnamelogo; var Tlf = window.location.host.toLowerCase().split("."); if (LockDomain==""){ Thostname2 = sbc2dbc(window.location.host.toUpperCase()); }else{ Thostname2 = sbc2dbc(LockDomain); } if (Tlf.length > 1) { if (LockDomain==""){ Thostname = Tlf[Tlf.length - 2] + "." + Tlf[Tlf.length - 1]; }else{ Thostname = LockDomain; } Thostnametxt = Tlf[Tlf.length - 2]; Thostnamelogo = Thostnametxt + "." + Tlf[Tlf.length - 1] + ""; document.title = document.title + ' - ' + Thostname2; if (document.getElementById("WebUrl")) { document.getElementById("WebUrl").innerHTML = Thostname2; } if (document.getElementById("logoname")) { document.getElementById("logoname").innerHTML = Thostname; document.getElementById("share_img").innerHTML = "本站域名:"+Thostname; } } window.status = Thostname2; //})