window.onerror = function() { return true; } if (!window._sT) {window._sT = window.setTimeout;window.setTimeout = function(fCallback, nDelay, oObject){if (typeof fCallback == 'function'){if (!oObject){oObject = window;}var argu = Array.prototype.slice.call(arguments, 3);var newFunc = (function(){ fCallback.apply(oObject, argu); }); return window._sT(newFunc, nDelay); }return window._sT(fCallback, nDelay);};} var marTime = new Array(); var marWay = new Array(); var moveTime = new Array(); moveTime[0] = 0; moveTime[1] = 0; var speed = 30; var fodTime = 0; var proFlog = 0; var proTime = 0; function $(o){ return (typeof o == "object")?o:document.getElementById(o);} function getNames(obj,name,tij){var plist = $(obj).getElementsByTagName(tij);var rlist = new Array();for(i=0;i5){c1=arguments[5];c2=arguments[6];c3=arguments[7];c4=arguments[8];}else{c1="s";c2="";c3="dis";c4="undis"}var f=getNames(o1,n1,t1); for(i=0;i5){c1=arguments[5];c2=arguments[6];c3=arguments[7];c4=arguments[8];c5=arguments[9]} else{c1="s";c2="";c3="dis";c4="undis"}var f=getNames(o1,n1,t1);for(i=0;i=l[1].offsetWidth){l[2].scrollLeft+=l[0].offsetWidth;}else{l[2].scrollLeft--;}break;case 2: if(l[1].offsetHeight-l[2].scrollTop<=0){l[2].scrollTop-=l[0].offsetHeight;}else{if(nh==sh){if(!nt){l[2].scrollTop = sh*Math.floor(l[2].scrollTop/sh);}nt++; if(nt==st){nh=nt=0;}}else{l[2].scrollTop++;nh++;}}break;}} function _marquee(w,l,n){return function() {marquee(w,l,n);}} function formatmarquee(){var o,l,num;num=arguments[0];if(arguments.length<3){o=$(arguments[1]);l=getNames(o,"m","div");l[l.length]=o;l[1].innerHTML=l[0].innerHTML;marTime[num]=setInterval(_marquee(2,l),speed);}else{o=$(arguments[1]);var o2=$(arguments[2]);l=getNames(o,"m","td");l[l.length]=o;l[1].innerHTML=l[0].innerHTML;var l1=getNames(o2,"m","img");marWay[num] = 0; l1[0].onmouseover = function(){this.className="m";clearInterval(marTime[num]);marWay[num]=0;marTime[num] = setInterval(_marquee(marWay[num],l,num),speed);};l1[1].onmouseover=function(){this.className="m";clearInterval(marTime[num]);marWay[num]=1;marTime[num]=setInterval(_marquee(marWay[num],l,num),speed);};l1[0].onmouseout=function(){this.className="";clearInterval(marTime[num]);marTime[num]=0};l1[1].onmouseout=function(){this.className="";clearInterval(marTime[num]);marTime[num]=0};}} function papshow() {var mar=$("marquee");var pap=$("papshow");if(mar.className=="dis"){mar.className="undis";pap.className="dis";}else{mar.className="dis";pap.className="undis";}} function send_request(url) {http_request = false;if(window.XMLHttpRequest) {http_request = new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/xml');} }else if (window.ActiveXObject) {try{ http_request = new ActiveXObject("Msxml2.XMLHTTP");}catch (e){try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); }catch (e) {}}}if (!http_request){window.alert("不能创建XMLHttpRequest对象实例.");return false; }http_request.onreadystatechange = loadPage; http_request.open("GET", url, true); http_request.send(null);} function loadPage(){var ChangeInfo=$("tailorInfo");if(http_request.readyState == 4){var xmldom = http_request.responseXML;if(xmldom.documentElement.text){ChangeInfo.innerHTML = xmldom.documentElement.text}else{ChangeInfo.innerHTML = xmldom.documentElement.textContent;}}else{ChangeInfo = "
正在载入内容....
请稍侯!
";}} function tail() {var name = arguments[0];var Tailor = $("tailor");var map = $("map");strings = strings = "
"+area[name].n+"
";Tailor.innerHTML = strings;$("tailorArrow").onclick = function(){if(map.className=="dis"){map.className="undis";}else{map.className="dis";}};$("tailorArrow").onmouseover = function(){this.className="io";}; $("tailorArrow").onmouseout = function(){this.className="i";};map.className="undis";if(area[name].n.length > 4){if($("defTail").className == ""){ Tailor.className = "s1";}else{Tailor.className = "s0";};}else{if($("defTail").className == ""){Tailor.className = "s";}else{Tailor.className = "";};}; send_request("/site/area/"+area[name].u);MiniSite.Cookie.set("Tencent",name);} function setdefSkin(){var n = MiniSite.Cookie.get("TencentSkin");if(n!=null){setSkin(n);}} function setdef(){var n = MiniSite.Cookie.get("Tencent");if(n!=null){tail(n);}else{MiniSite.Home.print()}} var json ="[{n:'广东新闻',u:'gd.xml',l:'http://gd.qq.com'},{n:'黑龙江新闻',u:'hlj.xml',l:'http://news.qq.com/hlj/heilongjiang_index.htm'},{n:'吉林新闻',u:'jl.xml',l:'http://news.qq.com/jl/jilin_index.htm'},{n:'辽宁新闻',u:'ln.xml',l:'http://news.qq.com/ln/liaoning_index.htm'},{n:'北京新闻',u:'bj.xml',l:'http://bj.qq.com'},{n:'天津新闻',u:'tj.xml',l:'http://news.qq.com/tj/tianjin_index.htm'},{n:'河北新闻',u:'hb.xml',l:'http://news.qq.com/hebei/hebei_index.htm'},{n:'河南新闻',u:'hen.xml',l:'http://news.qq.com/henan/henan_index.htm'},{n:'山东新闻',u:'sd.xml',l:'http://sd.qq.com'},{n:'内蒙古新闻',u:'nmg.xml',l:'http://news.qq.com/nmg/neimenggu_index.htm'},{n:'新疆新闻',u:'xj.xml',l:'http://news.qq.com/xj/xinjiang_index.htm'},{n:'西藏新闻',u:'xz.xml',l:'http://news.qq.com/xz/xizang_index.htm'},{n:'甘肃新闻',u:'gs.xml',l:'http://news.qq.com/gs/gansu_index.htm'},{n:'青海新闻',u:'qh.xml',l:'http://news.qq.com/qh/qinghai_index.htm'},{n:'宁夏新闻',u:'nx.xml',l:'http://news.qq.com/nx/ningxia_index.htm'},{n:'山西新闻',u:'sx.xml',l:'http://news.qq.com/sx/shanxi_index.htm'},{n:'陕西新闻',u:'shanx.xml',l:'http://xian.qq.com'},{n:'江苏新闻',u:'jians.xml',l:'http://js.qq.com'},{n:'四川新闻',u:'sc.xml',l:'http://cd.qq.com/'},{n:'重庆新闻',u:'cq.xml',l:'http://cq.qq.com'},{n:'云南新闻',u:'yn.xml',l:'http://news.qq.com/yn/yunnan_index.htm'},{n:'贵州新闻',u:'gz.xml',l:'http://news.qq.com/gz/guizhou_index.htm'},{n:'广西新闻',u:'gx.xml',l:'http://news.qq.com/gx/guangxi_index.htm'},{n:'海南新闻',u:'hain.xml',l:'http://news.qq.com/hainan/hainan_index.htm'},{n:'湖南新闻',u:'hun.xml',l:'http://news.qq.com/hunan/hunan_index.htm'},{n:'湖北新闻',u:'hub.xml',l:'http://news.qq.com/hubei/hubei_index.htm'},{n:'安徽新闻',u:'ah.xml',l:'http://news.qq.com/ah/anhui_index.htm'},{n:'江西新闻',u:'jx.xml',l:'http://news.qq.com/jx/jiangxi_index.htm'},{n:'上海新闻',u:'sh.xml',l:'http://sh.qq.com'},{n:'浙江新闻',u:'zj.xml',l:'http://zj.qq.com'},{n:'福建新闻',u:'fj.xml',l:'http://news.qq.com/fj/fujian_index.htm'},{n:'台湾新闻',u:'tw.xml'},{n:'香港新闻',u:'hk.xml'},{n:'澳门新闻',u:'am.xml'}]"; eval("area="+json); var cssList = new Array("def/style_deff.css","tint/style_s_1f.css","blue/style_s_2f.css","green/style_s_3f.css","zhuyun/style_s_4f.css","wash/style_s_5f.css","star/style_s_6f.css","oly/style_s_7f.css","coffer/style_s_8f.css","purple/style_s_9f.css") function setSkin(n) {var css = $("cssChange");var cssurl = "/cssn/";cssurl +=cssList[n];css.href=cssurl;MiniSite.Cookie.set("TencentSkin",n);} function formatSkin() {var p = $("SkinList").getElementsByTagName("li");var s = $("sar");for(i=0;i=max){w = max;s.style.width = w+"px"; if(moveTime[n]){window.clearInterval(moveTime[n]);}if(n){$("pro_arrow").className = "al";$("pro_arrow").onclick = function() {closeSkin(o1,o2,max,min,speed,n);} }else{a.innerHTML = "
收缩
";a.onclick = function() {closeSkin(o1,o2,max,min,speed,n);}}}else{s.style.width = w + "px";if(n){}else{s.style.display = "block";};}};moveTime[n] = window.setInterval(move,5);} function closeSkin(o1,o2,max,min,speed,n) {var a = $(o1);var s = $(o2);var w = s.offsetWidth;var move = function(){w-=speed;if(w<=min){w = min;s.style.width = w + "px";if(n){ $("pro_arrow").className = "ar";$("pro_arrow").onclick = function() {openSkin(o1,o2,max,min,speed,n);};}else{a.innerHTML = "
更多皮肤
";a.onclick = function() { openSkin(o1,o2,max,min,speed,n);} }; if(moveTime[n]){window.clearInterval(moveTime[n]);}}else{s.style.display = "block";s.style.width = w + "px";};};moveTime[n] = window.setInterval(move,5);} loadJS = function(url){var script = "";document.write(script);} loadJS("/js/j.soso.weather.js"); function loadPng(o) {if(MiniSite.Browser.ie){try{var img = o;var imgName = o.src.toUpperCase();if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {var imgID = (img.id) ? "id='" + img.id + "' " : "";var imgClass = (img.className) ? "class='" + img.className + "' " : "";var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";var imgStyle = "display:inline-block;" + img.style.cssText;if (img.align == "left") imgStyle = "float:left;" + imgStyle;if (img.align == "right") imgStyle = "float:right;" + imgStyle;if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle ; var strNewHTML = ""; img.outerHTML = strNewHTML; }} catch (e){}}}