- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
- <title>腾讯首页</title>
- <style>
- body{margin:0;padding:0 0 12px 0;background:#fff;font-size:13px;line-height:22px;}
- div,p,li{font-family:Verdana,宋体;font-size:13px;}
- form,ul,li,p,h1,h2,h3,h4,h5,h6{margin:0;padding:0;}
- input,select{font-size:12px;line-height:16px;}
- img{border:0;}
- ul,li{list-style-type:none;}
- li{font-size:13px;}
- .tc{text-align:center;}.tl{text-align:left;}.tr{text-align:right;}
- .dis{display:block;}.undis{display:none;}
- .fl{float:left;}.fr{float:right;}.cl{clear:both;}
- .fh{height:22px;}.fb{font-weight:bold;}.fnb{font-weight:200;margin-left:-1px;}
- .fc30{color:#303030;font-family:"宋体";}.fchot{color:#ff0700}
- .f11{font-size:12px;font-family:tahoma;}
- /* Safari 3.0 and Opera 9 rules here */
- #TextNav *{font-family:STSong;}
- }
- /*soso*/
- #Soso{width:912px;height:78px;margin:0 auto;}
- #Soso_Left{padding:5px 0 0 25px;width:225px;margin:0 10px 0 0;float:left;}
- #Wealth{line-height:18px;height:54px;padding-bottom:7px;margin-top:-9px;margin-left:-5px;cursor:pointer;width:170px;}
- #Wealth *{line-height:18px;}
- #Wealth h6{font-size:13px;padding-top:20px;}
- #Wealth span.img{float:left;display:block;padding-top:8px}
- #Wealth p{float:left;margin:0;padding:0;}
- #Wealth div{font-size:12px;font-family:tahoma,宋体;width:100px;}
- /*皮肤列表*/
- #Skin div {float:left}
- #SkinList {width:56px;height:11px;overflow:hidden;display:block;}
- #Skin li{float:left;width:14px;height:11px;cursor:pointer;}
- #def div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left top;}
- #s1 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -11px;}
- #s2 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -22px;}
- #s3 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -33px;}
- #s4 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -44px;}
- #s5 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -55px;}
- #s6 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -66px;}
- #s7 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -77px;}
- #s8 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -88px;}
- #s9 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -99px;}
- #sar{cursor:pointer;}
- #sar div{background:url(http://img1.qq.com/news/pics/9468/9468357.gif) no-repeat -20px -1px;}
- #sar div.s{background:url(http://img1.qq.com/news/pics/9468/9468357.gif) no-repeat -10px -1px;}
- /*soso输入框区域*/
- #SosoArea{width:470px;padding:9px 0 0 0;float:left;}
- #sosoFod{padding-left:14px;height:25px;}
- #sosoFod h3{float:left;width:40px;height:26px;font-size:12px;font-weight:200;padding-left:13px;cursor:pointer;}
- #sosoFod #sosoqzone {width:50px;padding-left:3px;}
- #sosoFod #sosoqzone div{margin-top:-1px;font-size:12px;}
- #SosoArea input.w{width:392px;height:22px;border:0;padding:4px 3px 0 3px;margin-right:6px;line-height:18px;font-size:14px;}
- #SosoArea input.bot{border:0;width:51px;height:27px;padding-top:2px;}
- #SosoArea table{line-height:17px;}
- #SosoArea table a{color:#fff;}
- #SosoAd{float:left;}
- #sosoLogo {position:absolute;margin:26px 0 0 -55px;}
- .more{position:absolute;background:#fff;margin:-2px 0 0 -5px!important;margin:16px 0 0 -46px;z-index:10000;border:1px solid #B2D0EA;}
- .more a{width:55px;display:block;padding-left:5px;}
- .more ul{list-style-type:none;margin:0;padding:0;}
- .more li{line-height:24px;list-style-type:none;margin:0;padding:0;text-align:left;}
- .more li a,.more li a:visited{color:#3B5995;text-decoration:none;font-size:12px;}
- .more li a:hover{background:#D6E9F8;color:#3B5995;text-decoration:none;font-size:12px;}
- /*内容部分通用class*/
- .cArea{width:910px;margin:0 auto;padding:10px 0 0 0;clear:both;z-index:1;}
- .cArea1{width:910px;margin:0 auto;padding:7px 0 0 0;clear:both;}
- .txArea{width:714px;float:left;}
- .resArea{width:296px;float:left;}
- .proArea{width:409px;;float:right;}
- .adArea{width:186px;float:right}
- .adMArea{clear:both;padding-top:10px;}
- .imgArea{background:url(http://img1.qq.com/news/pics/9468/9468391.gif) repeat-x bottom;height:83px;}
- .imgLArea{width:105px;height:70px;padding:0 12px 0 0;float:left;}
- .imgRArea,.imgRArea1{float:left;}
- .imgRArea *{font-size:14px;line-height:24px;}
- .imgLAreapic {width:105px;height:80px;padding:0 12px 0 0;float:left;text-align:center;}
- .imgLAreapic img{width:105px;height:55px;margin-bottom:1px;}
- .imgLAreapic a{font-size:13px;}
- .height{height:122px;}
- .res_b,.pro_b{height:2px;}
- .textArea{clear:both;padding:5px 0 0 0;}
- /*内容链接颜色控制*/
- #News h4 a:hover,#Sports h4 a:hover,#finance h4 a:hover,#tech h4 a:hover,#car h4 a:hover,#edu h4 a:hover,#blog h4 a:hover,#ent h4 a:hover,#game h4 a:hover,#book h4 a:hover,#lady h4 a:hover,#comic h4 a:hover{color:#bd0a01;}
- #NewsInfo h3 a:hover{color:#bd0a01;}
- #NewsInfo a.lchot,#SportsInfo a.lchot,#financeInfo a.lchot,#techInfo a.lchot,#carInfo a.lchot,#eduInfo a.lchot{color:#bd0a01;}
- #NewsInfo a.lchot:visited,#SportsInfo a.lchot:visited,#financeInfo a.lchot:visited,#techInfo a.lchot:visited,#carInfo a.lchot:visited,#eduInfo a.lchot:visited{color:#bd0a01;}
- #blogInfo a.lchot,#entInfo a.lchot,#gameInfo a.lchot,#comicInfo a.lchot,#bookInfo a.lchot,#ladyInfo a.lchot,#comicInfo a.lchot{color:#bd0a01;}
- #blogInfo a.lchot:visited,#entInfo a.lchot:visited,#gameInfo a.lchot:visited,#comicInfo a.lchot:visited,#bookInfo a.lchot:visited,#ladyInfo a.lchot:visited,#comicInfo a.lchot:visited{color:#bd0a01;}
- /*新闻*/
- #News h4{float:left;height:20px;line-height:20px;text-align:center;width:73px;overflow:hidden;margin-right:1px;padding-top:3px;}
- #News h4.s,#News h4.s1{font-weight:700;border-right:0;width:73px;padding-bottom:4px;}
- #News span h4 {width:82px;padding-left:4px}
- #News span h4.s {width:86px;}
- #News span h4.s1 {width:102px;}
- #News span h4.s0 {width:102px;}
- #News span h4 a{display:inline;}
- #NewsInfo a.black{color:#000;}
- #NewsInfo a.black:hover{color:#000;}
- #NewsInfo a.blue{color:#0330bb;}
- #NewsInfo a.blue:hover{color:#0330bb;}
- .dotline{padding:0;margin:4px 0 8px 4px;font:0;line-height:0;width:278px;height:1px;background:url(http://img1.qq.com/news/pics/9468/9468391.gif) top repeat-x;clear:both;}
- /*腾讯动态*/
- #adAreaD{height:230px;padding:10px 10px 10px 14px;}
- #adAreaD li{background:url(http://img1.qq.com/news/pics/9468/9468389.gif) no-repeat 0px 8px;padding:0 0 0 8px;font-size:12px;font-family:"宋体";}
- .footernew {color:#515151;text-align:center;font-size:12px;line-height:24px;width:910px;margin:0 auto; padding-top:12px;}
- .footernew a {color:#515151;text-decoration:none;}
- .footernew a.lchot {color:#bd0a01;}
- .footernew a:hover {color:#bd0a01;text-decoration:underline;}
- .footernew a:visited {color:#515151;}
- .footernew div{width:546px; margin:0 auto;}
- .footernew p{float:left;width:120px;height:50px;border:1px solid #d2d2d2;padding:0;line-height:20px; margin:6px;font-size:12px;}
- .footernew .fl{float:left;padding:3px;}
- .footernew .fr{float:right; width:72px;padding:5px 3px 0 3px;}
- </style>
- <!--[if ie 6]>
- <style>
- div,p,li{overflow:hidden;}
- #sosoFod{margin-bottom:0;}
- #SosoArea input.w{background-attachment:fixed;}
- #proNav {overflow:hidden;background-position-y:90px;}
- #proNav td.m{padding:2px 0 0 28px;}
- #tailor div{float:left;margin-left:3px}
- #toDay p{padding:0}
- .imgRArea{margin-left:0;}
- #paipaiInfo .fr img{padding-top:4px;}
- #proAll {margin-left:10px;}
- #proAll form img.i{margin-top:1px;}
- #proNav .list a{display:block;width:64px;height:20px;padding:3px 0 0 4px}
- #comicInfo .imgLAreapic{height:102px;}
- #tailorInfo .imgRArea1{padding-left:0;}
- #tailorInfo .textArea{line-height:24px;}
- #toDay h1{height:26px;}
- #NewsInfo *,#SportsInfo .textArea *,#financeInfo .textArea *,#techInfo .textArea *,#carInfo .textArea *,#eduInfo .textArea *{font-size:12px;line-height:24px;}
- #proArea_banner img{margin-bottom:0;}
- #proArea_banner {height:18px;margin-bottom:10px;padding:2px 0 0 16px;line-height:18px;}
- .dotline{padding:0;margin:3px 0 7px 4px;}
- </style>
- <![endif]-->
- <!--[if ie 7]>
- <style>
- div,p,li{overflow:hidden;}
- #sosoFod{margin-bottom:0;}
- #NewsPat{height:1px;line-height:0;margin-bottom:-6px;}
- .cl{height:0;line-height:0;width:0}
- #proNav {overflow:hidden;background-position-y:90px;}
- #proNav td.m{padding:2px 0 0 28px;}
- .imgRArea{margin-left:0;}
- #paipaiInfo .fr img{padding-top:4px;}
- #proAll {margin-left:10px;}
- #proAll form img.i{margin-top:1px;}
- #proNav .list a{display:block;width:64px;height:20px;padding:3px 0 0 4px}
- #comicInfo .imgLAreapic{height:102px;}
- #tailorInfo .imgLAreapic img{width:105px;height:55px;margin-bottom:4px;}
- #tailorInfo .imgRArea1{padding-left:0;}
- #tailorInfo .textArea{line-height:24px;}
- #blogMar,#playMar{width:389px;}
- #blogMarInfo,#playMarInfo{width:362px;overflow:hidden;padding-left:6px;}
- .more{position:relative;width:58px;}
- #NewsInfo *,#SportsInfo .textArea *,#financeInfo .textArea *,#techInfo .textArea *,#carInfo .textArea *,#eduInfo .textArea *{font-size:12px;line-height:24px;}
- </style>
- <![endif]-->
- <link id="cssChange" href="/iskin/skin1/skin1.css" rel="stylesheet" type="text/css" />
- <script language="javascript" type="text/javascript">
- var MiniSite=new Object();
- MiniSite.Browser={
- ie:/msie/.test(window.navigator.userAgent.toLowerCase()),
- moz:/gecko/.test(window.navigator.userAgent.toLowerCase()),
- opera:/opera/.test(window.navigator.userAgent.toLowerCase()),
- safari:/safari/.test(window.navigator.userAgent.toLowerCase())
- };
- MiniSite.$=function(s){
- return(typeof s=='object')?s:document.getElementById(s);
- };
- MiniSite.JsLoader={
- load:function(sUrl,fCallback){
- var _script=document.createElement('script');
- _script.setAttribute('charset','gb2312');
- _script.setAttribute('type','text/javascript');
- _script.setAttribute('src',sUrl);
- document.getElementsByTagName('head')[0].appendChild(_script);
- if(MiniSite.Browser.ie){
- _script.onreadystatechange=function(){
- if(this.readyState=='loaded'||this.readyState=='complete'){
- fCallback();
- }
- };
- }else if(MiniSite.Browser.moz){
- _script.onload=function(){
- fCallback();
- };
- }else{
- fCallback();
- }
- }
- };
- MiniSite.Cookie={
- set:function(name,value,expires,path,domain){
- if(typeof expires=="undefined"){
- expires=new Date(new Date().getTime()+10*24*3600*1000);
- }
- document.cookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"; path=/")+((domain)?";domain="+domain:"");
- },
- get:function(name){
- var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
- if(arr!=null){
- return unescape(arr[2]);
- }
- return null;
- },
- clear:function(name,path,domain){
- if(this.get(name)){
- document.cookie=name+"="+((path)?"; path="+path:"; path=/")+((domain)?"; domain="+domain:"")+";expires=Fri, 02-Jan-1970 00:00:00 GMT";
- }
- }
- };
- MiniSite.Home={
- defaultprovince:4,
- timelapse:null,
- Provinc:{"北京市":4,"上海市":28,"天津市":5,"重庆市":19,"香港":32,"澳门":33,"台湾省":31,"云南省":20,"内蒙古":9,"吉林省":2,"四川省":18,"宁夏":14,"安徽省":26,"山东省":8,"山西省":15,"广东省":0,"广西":22,"新疆":10,"江苏省":17,"江西省":27,"河北省":6,"河南省":7,"浙江省":29,"海南省":23,"湖北省":25,"湖南省":24,"甘肃省":12,"福建省":30,"西藏":11,"贵州省":21,"辽宁省":3,"陕西省":16,"青海":13,"黑龙江省":1},
- insertFlash:function(elm,url,w,h){
- if(!document.getElementById(elm))
- return;
- var str='';
- str+='<object width="'+w+'" height="'+h+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">';
- str+='<param name="movie" value="'+url+'">';
- str+='<param name="wmode" value="transparent">';
- str+='<param name="quality" value="autohigh">';
- str+='<param name="allowScriptAccess" value="always" > ';
- str+='<embed width="'+w+'" height="'+h+'" src="'+url+'" quality="autohigh" wmode="opaque" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>';
- str+='</object>';
- document.getElementById(elm).innerHTML=str;
- },
- _print:function(province){
- try{setdef();}catch(e){}
- },
- print:function(){
- var ok=function(){
- MiniSite.Home._print();
- }
- if(!MiniSite.Cookie.get("QQ_IPAddress")){
- MiniSite.Home.timelapse=setTimeout(ok,20000);
- MiniSite.JsLoader.load("http://fw.qq.com:80/ipaddress",function(){
- if(MiniSite.Home.timelapse!=null){
- clearTimeout(MiniSite.Home.timelapse);
- };
- if(typeof IPData!="undefined"){
- MiniSite.Cookie.set('QQ_IPAddress',IPData[2]+','+IPData[3]);
- MiniSite.Home._print(IPData[2]);
- }else{
- MiniSite.Home._print();
- }
- });
- }else{
- var ipAddress=MiniSite.Cookie.get("QQ_IPAddress");
- var ipAddressArr=ipAddress.split(",");
- return MiniSite.Home._print(ipAddressArr[0]);
- }
- }
- }
- if(!MiniSite.Cookie.get("QQ_IPAddress")){MiniSite.Home.print();}
- 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;
- var gh=window.location.host;
- var gu=gh?"http://"+gh:"http://www.qq.com";gp=[];gp["News"]=["2","/site/area/area_bj.htm"];gp["Sports"]=["2","/site/sports/nbainfon.htm"];gp["blog"]=["2","/public/publicn/bb3in1.htm"];gp["ent"]=["2","/site/ent/musicinfon.htm"];gp["finance"]=["2","/site/finance/stockinfon.htm"];gp["book"]=["3","/site/book/bookinfon2.htm","/site/book/bookinfon3.htm"];gp["tech"]=["2","/site/digi/digiinfon.htm"];gp["game"]=["3","/oprtn/qqgame/qqgameinfon.htm","/sms/sms_gamen.htm"];gp["car"]=["2","/site/house/houseinfon.htm"];gp["lady"]=["3","/site/cheaa/cheaainfon.htm","/site/astro/astroinfon.htm"];gp["edu"]=["3","/site/kid/kidinfon.htm","/site/baby/babyinfon.htm"];gp["comic"]=["3","/site/joke/jokeinfon.htm","/site/flash/flashinfon.htm"];gp["adAreaA"]=["4","/qqad/qqadn/textad_con2.htm","/qqad/qqadn/textad_con3.htm","/qqad/qqadn/textad_con4.htm"];gp["adAreaB"]=["3","/qqad/qqadn/card_adcon2.htm","/qqad/qqadn/card_adcon3.htm"];
- function $(o){ return (typeof o == "object")?o:document.getElementById(o);}
- function CreatAjax(a,b,c){var obj=CreatXmlRequest();obj.open('GET', a);obj.setRequestHeader("If-Modified-Since","0");obj.send(null);obj.onreadystatechange = function() {if(obj.readyState == 4 && obj.status == 200){b(c,obj.responseText);}}}
- function CreatXmlRequest() {var obj = null;try {obj = new XMLHttpRequest();} catch (e) {try {obj = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {obj = new ActiveXObject("Microsoft.XMLHTTP");}}return obj;}
- function parseInfo(a,b,c){a.obj.innerHTML=b;swLabs(a.obj,a.sid,a.snum);}
-
- function swTabs(e){if(typeof e=="string"){e=$(e);}var isAjax,gPath,sobject;var cls="s";if(e.id!="defTail"&&e.id!="tailorxxx"){var tmp=e.id.split("_");var sid=tmp[0];var snum=tmp[1];gPath=gu+gp[sid][snum-1];sobject=$(sid+"_"+snum+"_Info");}else if(e.id=="defTail"){sid=e.id;snum=1;sobject=$("defTailInfo");}else if(e.id=="tailorxxx"){sid=e.id;snum=2;gPath=gu+gp["News"][snum-1];sobject=$("tailorInfo");if(e.className=="s0"||e.className=="s1"){cls="s1";}}e.className=cls;if(snum!=1){if(sobject.innerHTML==""){CreatAjax(gPath,parseInfo,{obj:sobject,sid:sid,snum:snum});isAjax=true;}}if(!isAjax){swLabs(sobject,sid,snum)}tmp=gPath=sobject=isAjax=maxItemNum=null;}
- function swLabs(sobject,sid,snum){var maxItemNum;var tailorxxx=$("tailorxxx");var cls="";try{var i=1;maxItemNum=(sid=="defTail"||sid=="tailorxxx")?gp["News"][0]:gp[sid][0];while(i<=maxItemNum){if(i!=snum){var tmp1,tmp2;if(sid=="defTail"){tmp1=tailorxxx;tmp2=$("tailorInfo");if(tailorxxx.className=="s0"||tailorxxx.className=="s1"){cls="s0";}}else if(sid=="tailorxxx"){tmp1=$("defTail");tmp2=$("defTailInfo");if(tailorxxx.className=="s0"||tailorxxx.className=="s1"){tailorxxx.className="s1";}}else{tmp1=$(sid+"_"+i);tmp2=$(sid+"_"+i+"_Info");}tmp1.className=cls;tmp2.className="undis";}i++}}catch(e){}sobject.className="dis";}
- function loadNewsMap(){MiniSite.Home.insertFlash("map","http://www.qq.com/map.swf",294,280);}
- function tagOver(a){clearTimeout(fodTime);fodTime=0;fodTime = setTimeout(function(){swTabs(a)},100);if(a.id=="defTail"){$("map").className="undis";}if(a.id=="tailorxxx"&&$("map").innerHTML==""){setTimeout(function(){loadNewsMap();},300);}}
- function tagOut(a){clearTimeout(fodTime);fodTime=0;}
- function getNames(obj,name,tij){var plist = $(obj).getElementsByTagName(tij);var rlist = new Array();for(i=0;i<plist.length;i++){if(plist[i].getAttribute("name") == name){rlist[rlist.length] = plist[i];}}return rlist;}
- function cplay(){var o,n,t,na,c1,c2;o = $(arguments[0]);num=arguments[1];t=arguments[2];n=arguments[3];c1=arguments[4];c2=arguments[5];var f=getNames(o,n,t);for(i=0;i<f.length;i++){if(i == num){f[i].className = c1;}else{f[i].className = c2;}}}
- function formatPageZone()
- {var o1=$(arguments[0]);var o2=$(arguments[0]+"Info");var t1=arguments[1];var n1=arguments[2];var t2=arguments[3];var n2=arguments[4];var c1,c2,c3,c4,c5; if(arguments.length>5){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<f.length;i++){f[i].value = i;f[i].onclick=function(){fod(o1,o2,this.value,t1,n1,t2,n2,c1,c2,c3,c4)}; f[i].onmouseover=function(){cplay(o1,this.value,t1,n1,c5,c2);};f[i].onmouseout=function(){cplay(o1,this.value,t1,n1,c2,c5);}}}
- 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;var map = $("map");if(xmldom.documentElement.text){ ChangeInfo.innerHTML = xmldom.documentElement.text;}else{ChangeInfo.innerHTML = xmldom.documentElement.textContent;}/*$("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";}else{ChangeInfo.innerHTML = "<div style='margin:40px auto;width:140px;text-center:center'>正在载入内容....<br />请稍侯!</div>";}}
- function tail()
- {var name = arguments[0];var tailorxxx = $("tailorxxx");var tailorTitle = $("tailorTitle");strings = "<!--<div>--><a href='"+area[name].l+"' target='_blank'>"+area[name].n+"</a><!--</div><div id='tailorArrow' class='i'></div>-->";tailorTitle.innerHTML = strings;if(area[name].n.length > 4){if($("defTail").className == ""){tailorxxx.className = "s1";}else{tailorxxx.className = "s0"; };}else{if($("defTail").className == ""){tailorxxx.className = "s";}else{tailorxxx.className = "";};};send_request("http://www.qq.com/site/area/"+area[name].u);MiniSite.Cookie.set("Tencent",name);}
- //重庆19、四川18、陕西16、湖北25、北京4、上海28、广东0
- var _wip=/^(0|4|16|18|19|25|28)$/i;
- function setdefSkin()
- {var n = MiniSite.Cookie.get("TencentSkin");if(n!=null){call_0410("UNKNOWN","skin",n);setSkin(n);}else{call_0410("UNKNOWN","skin",0);}}
- function setdef(){
- var n=MiniSite.Cookie.get("QQ_IPAddress");
- if(n!=null){
- //alert(MiniSite.Home.Provinc)
- var p=n.split(",")[0];
- n=MiniSite.Home.Provinc[p];
- if(_wip.test(n)){
- $("tailorForIP").style.display="block";
- tail(n);
- }
- }else{
- MiniSite.Home.print()
- }
- }
-
- var cssList = new Array("skin1/skin1.css","skin2/skin2.css","skin3/skin3.css","skin4/skin4.css","skin5/skin5.css","skin6/skin6.css","skin7/skin7.css","skin8/skin8fv1.css","skin9/skin9v1.css","skin10/skin10.css")
- function setSkin(n)
- {var css = $("cssChange");var cssurl = "http://www.qq.com/iskin/";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<p.length;i++){p[i].num = i;p[i].onclick = function(){setSkin(this.num);}}s.onclick = function() { openSkin("sar","SkinList",140,56,2,0); };}
- function _openSkin(o1,o2,max,min,speed,n)
- { return openSkin(o1,o2,max,min,speed,n);}
- function _closeSkin(o1,o2,max,min,speed,n)
- { return closeSkin(o1,o2,max,min,speed,n);}
- //n=0 skin n=1 pro
- function openSkin(o1,o2,max,min,speed,n)
- {var a = $(o1); var s = $(o2);var w = s.offsetWidth;var move=function(){w+=speed;if(w>=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 = "<div class='s'><img src='http://img1.qq.com/news/pics/9471/9471252.gif' alt='收缩' /></div>";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 = "<div><img src='http://img1.qq.com/news/pics/9471/9471252.gif' alt='更多皮肤' /></div>";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);}
- function loadJS(url,load)
- {
- var _script = document.createElement('script');
- _script.setAttribute('type','text/javascript');
- _script.setAttribute('src',url);
- document.getElementsByTagName('head')[0].appendChild(_script);
- if(!load) return;
- if(document.all){
- _script.onreadystatechange = function(){
- if (this.readyState=='loaded' || this.readyState=='complete')
- {
- load();
- }
- };
- }else{
- _script.onload = function(){
- load();
- };
- }
- }
- 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 = "<span " + imgID + imgClass + imgTitle + " style="" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='image');"></span>"; img.outerHTML = strNewHTML; }} catch (e){}}}
- function call_0410(type,item,page)
- {try{var purl='';if (type == "A"){purl = window.event.srcElement.href;}else if (type == "IMG"){purl = window.event.srcElement.parentNode.href;};var iurl = 'http://trace.qq.com/collect?pj=1001&item='+item+'&page='+page+'&url='+purl+'&rnd='+Math.random();var img = new Image(1,1);img.onerror = function (){};img.src = iurl; } catch (e) {}}
- function register0410(item,page)
- {try{var type = window.event.srcElement.tagName;if (type == "A" || type == "IMG" ) {call_0410(type,item, page);}return true;}catch(e){}}
- </script><!--[if !IE]>|xGv00|6cbd863378a324d191e5a642e6021138<![endif]-->
- <base target="_blank">
- </head>
- <body onload="document.execCommand('BackgroundImageCache',false,true)">
- <script type="text/javascript" src="http://mat1.qq.com/js/speed_qqcom_v1.0-min.js"></script>
- <script>
- function SetHome(obj,vrl){
- try{
- obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
- }
- catch(e){
- if(window.netscape) {
- try {
- netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
- }
- catch (e)
- {
- alert("抱歉!您的浏览器不支持直接设为首页。请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为“true”,点击“加入收藏”后忽略安全提示,即可设置成功。");
- }
- var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
- prefs.setCharPref('browser.startup.homepage',vrl);
- }
- }
- }
- </script>
- <div id="miniNav" onClick="register0410('mininav',1);">
-
- </div><!--[if !IE]>|xGv00|74067e4e1afb8bcf65265e2b54d770d5<![endif]-->
- <div id="NavCenter"></div>
- <!--[if !IE]>|xGv00|0e138bca0b2c4b804fc7df00e7531803<![endif]-->
- <div id="Soso" onclick="register0410('sobar',1);">
- <div id="Soso_Left">
- <div id="Wealth"></div><!--[if !IE]>|xGv00|ccecb3638c47deca829764be4bddac8c<![endif]-->
- <div id="Skin">
- <div id="SkinList">
- <ul>
- <li id="def"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="默认" /></div></li>
- <li id="s1"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="淡蓝" /></div></li>
- <li id="s2"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="宁夏" /></div></li>
- <li id="s3"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="新绿" /></div></li>
- <li id="s4"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="竹韵" /></div></li>
- <li id="s5"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="水墨" /></div></li>
- <li id="s6"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="星空" /></div></li>
- <li id="s7"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="春节" /></div></li>
- <li id="s8"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="咖啡" /></div></li>
- <li id="s9"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="紫色" /></div></li>
- </ul>
- </div>
- <div id="sar"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="展开" /></div></div>
- <div class="cl"></div>
- </div>
- <script type="text/javascript">
- formatSkin();setdefSkin();
- </script>
- </div>
- <div id="SosoArea">
- <div id="sosoLogo"><a href="http://www.soso.com"><img width="44" height="24" src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="soso" /></a></div>
- <form name="frm_head" id="frm_head" action="http://www.soso.com/q" onsubmit="return sosoValidate();" method="GET" target="_blank">
- <input type="hidden" name="sp" value="S" />
- <input type="hidden" name="sc" value="web" />
- <input type="hidden" name="cid" value="w.q.in.sb.web" />
- <input type="hidden" name="ty" value="1" />
- <input type="hidden" name="bn" value="" />
- <input type="hidden" name="op" value="entry" />
- <input type="hidden" name="kw" value="" />
- <div id="sosoFod">
- <h3 class="s1" id="sosoweb" onmouseover="delaySubSearch('web');" onmouseout="cancelDelay()" onclick="sosoSubSearch('web');goSearch()">网页</h3>
- <h3 class="s2" id="sosoimg" onmouseover="delaySubSearch('img');" onmouseout="cancelDelay()" onclick="sosoSubSearch('img');goSearch()">图片</h3>
- <h3 class="s2" id="sosomus" onmouseover="delaySubSearch('mus');" onmouseout="cancelDelay()" onclick="sosoSubSearch('mus');goSearch()">音乐</h3>
- <h3 class="s2" id="sososoba" onmouseover="delaySubSearch('soba');" onmouseout="cancelDelay()" onclick="sosoSubSearch('soba');goSearch()">搜吧</h3>
- <h3 class="s2" id="sosowenwen" onmouseover="delaySubSearch('wenwen');" onmouseout="cancelDelay()" onclick="sosoSubSearch('wenwen');goSearch()">问问</h3>
- <h3 class="s2" id="sosoqz" onmouseover="delaySubSearch('qz');" onmouseout="cancelDelay()" onclick="sosoSubSearch('qz');goSearch()">博客</h3>
- <h3 class="s2" onmouseover="sm(event);" style="cursor:pointer;">更多▼
- <div name="tm" id="tm" class="more" onclick="stopB(event)" style="display:none;">
- <ul><li><a href="http://zh.soso.com/int.cgi?sc=int&w=" onclick="return tp(this);" target="_blank">综合</a></li>
- <li><a href="http://news.soso.com/n.q?sc=news&ty=c&w=" onclick="return tp(this);" target="_blank">新闻</a></li> <li><a href="http://video.soso.com/q?sc=vid&w=" onclick="return tp(this);" target="_blank">视频</a></li>
- <li><a href="http://dict.soso.com/d.q?sc=dict&w=" onclick="return tp(this);" target="_blank">词典</a></li>
- <li><a href="http://life.soso.com" target="_blank">生活</a></li>
- <li><a href="http://baike.soso.com/Search.e?sp=S" onClick="return tp(this);" target="_blank">百科</a></li>
- <li style="border-top:1px solid #B2D0EA;"><a href="http://www.soso.com/more.shtml" target="_blank">所有产品</a></li></ul>
- </div>
- </h3>
- </div>
- <div>
- <div class="fl">
- <input class="w" id="smart_input" style="COLOR: #424242" name="w" smartPid="w.q.web.sb" autocomplete="off" />
- </div>
- <div class="fl">
- <input type="submit" class="bot" value="搜 搜" align="absmiddle" style="cursor:pointer;"/>
- </div>
- </div>
- <div class="cl"></div>
- </form>
- <script type="text/javascript">
- var sosoInitHint="";var sosoCurrHighLight=$("sosoweb"),frm_head=$('frm_head'),delayId=null;var sosoTmpArr=['bfadb6fbccd8c8cb'];var sosoTmpArr2=['bfadb6fbccd8c8cb'];var sosoRandom=Math.floor(Math.random()*sosoTmpArr.length);sosoInitHint=sosoTmpArr[sosoRandom];sosoInitKw=sosoTmpArr2[sosoRandom];window.setTimeout(setFun,1);function setFun()
- {return;frm_head=$('frm_head');frm_head.w.value=sosoInitHint;}
- var sosoInitHint2=sosoInitHint;function trim(str){return str.replace(/(^\s*)|(\s*$)/g,"");}
- function sosoValidate(){wval=trim(frm_head.w.value);if((wval==sosoInitHint2)||(wval==sosoInitHint))
- {frm_head.w.value="";frm_head.w.style.color="#424242";if(frm_head.sc.value=="web")
- {frm_head.w.value=sosoInitKw;frm_head.action="http://www.soso.com/q";}
- return true;}
- if(frm_head.sc.value=="post")
- {frm_head.bn.value=frm_head.w.value;frm_head.op.value="entry";}
- else if(frm_head.sc.value=="wenwen"&&wval!="")
- {window.open("http://wenwen.soso.com/z/SearchSolved.e?cid=w.q.in.sb.ww&sp=S"+encodeURIComponent(frm_head.w.value),"_blank");return false;}
- return true;}
- function delaySubSearch(sc){if(delayId)clearTimeout(delayId);delayId=setTimeout(function(){sosoSubSearch(sc);},500);}
- function cancelDelay(){if(delayId)clearTimeout(delayId);}
- function sosoSubSearch(sc){changePage(sc);frm_head.w.blur();frm_head.sc.value=sc;wval=trim(frm_head.w.value);if(sc=="img")
- {frm_head.action="http://image.soso.com/image.cgi";}
- else if(sc=="mus")
- {frm_head.action="http://music.soso.com/music.cgi";}
- else if(sc=="qz")
- {frm_head.op.value="blog.blog";frm_head.ty.value="blog";frm_head.action="http://blog.soso.com/qz.q";}
- else if(sc=="soba"){frm_head.sc.value="post";frm_head.action="http://post.soso.com/sobar.q";}
- else if(sc=="wenwen")
- {frm_head.sc.value="wenwen";frm_head.action="http://wenwen.soso.com/z/SearchSolved.e";}
- else
- {frm_head.action="http://www.soso.com/q";}
- frm_head.w.focus();}
- function changePage(sc){if(sosoCurrHighLight==null){sosoCurrHighLight=$("sosoweb");}
- sosoCurrHighLight.className="s2";sosoCurrHighLight=$("soso"+sc);sosoCurrHighLight.className="s1";frm_head.sc.value=sc;frm_head.cid.value="w.q.in.sb."+sc;}
- function goSearch(){if(!sosoValidate())
- return false;frm_head.submit();frm_head.bn.value="";}
- function togDispMore(e){stopB(e);var elems=document.getElementsByName('tm');for(var i=0;i<elems.length;i++){var obj=elems[i],dp="";if(obj.style.display==""){dp="none";}obj.style.display=dp;}return false;}
- function stopB(e){if(!e)e=window.event;e.cancelBubble=true;}
- document.onmouseup=function(event){var elems=document.getElementsByName('tm');if(elems[0].style.display==""){togDispMore(event);}}
- function tp(obj){var frm_head_w=document.frm_head.w.value;if(frm_head_w.length>0&&(frm_head_w!=sosoInitHint&&frm_head_w!=sosoInitHint2))
- {var oh=obj.href;obj.href=obj.href.replace(/w=.+/g,"w=");obj.href=obj.href.replace(/SearchSolved\.e\?sp=S.+/g,"SearchSolved.e?sp=S");obj.href=obj.href.replace(/Search\.e\?sp=S.+/g,"Search.e?sp=S");
- var qw=document.frm_head.w.value.trim();if(obj.href.indexOf("wenwen")!=-1||obj.href.indexOf("baike")!=-1)
- {obj.href=obj.href+encodeURIComponent(qw);}else{obj.href=obj.href+qw;}}else{obj.href="http://"+obj.hostname;}}
- String.prototype.trim=function()
- {return this.replace(/(^\s*)|(\s*$)/g,'');}
- var st='';function sm(event)
- {clearTimeout(st);eventSrc=event.srcElement||event.target;o=$('tm');if(eventSrc.tagName=="H3")
- {tt=setTimeout(function(){o.style.display="block";document.onmousemove=cp;},800);}else
- {clearTimeout(st);o.style.display="block";document.onmousemove=cp;}}
- function cp(event)
- {evt=window.event?window.event:event;var pointer=function(event){return{x:event.pageX||(event.clientX+
- (document.documentElement.scrollLeft||document.body.scrollLeft)),y:event.pageY||(event.clientY+
- (document.documentElement.scrollTop||document.body.scrollTop))};}(evt);l=o.offsetLeft;t=o.offsetTop-20;r=l+o.offsetWidth;b=o.offsetTop+o.offsetHeight;py=pointer.y;px=pointer.x;if((py>t&&py<b&&px>l&&px<r)){}
- else{st=setTimeout(function(){o.style.display="none";},500);document.onmousemove=function(){};}}
- </script>
- </div>
- <!--[if !IE]>|xGv00|8b81aeba18f160bc4d58a4046038a756<![endif]-->
- <div id="SosoAd">
- <div style="width:172px;height:73px;overflow:hidden;">
- <div id="ad_div" style="position:relative;width:172px;height:73px;">
- </div>
- </div>
- <script>
- (function(){
- <!--[if !IE]>|xGv00|8562b5198b819aae2599422d037fbd8e<![endif]-->
- if(typeof g_arrAdObjects == "undefined")
- {
- g_arrAdObjects = [];
- }
- g_arrAdObjects.push({fileName:"http://adsfile.qq.com/web/c2c_0401_173.png",fileName2:"http://adsfile.qq.com/web/",clickUrl:"http://adsclick.qq.com/adsclick?seq=20090331000135&loc=QQCOM_sosobutton2&url=http://www.paipai.com/promote/2009/03/manlisong/index.shtml?PTAG=10001.3.17",width:172,heigth:73,oid:"1117384",cid:"96736",loc:"QQCOM_sosobutton2",moniterUrl:""});<!--[if !IE]>|xGv00|7363fd3c2cbd14455dc041d0ac1c6fbc<![endif]-->
- <!--[if !IE]>|xGv00|8562b5198b819aae2599422d037fbd8e<![endif]-->
-
- var bIsLowerIE6 = false;
- var ua = navigator.userAgent;
- m=ua.match(/MSIE\s([^;]*)/);
- var iVer = 0;
- if(m && m[1])
- {
- iVer = parseInt(m[1]);
- }
- if(iVer != 0 && iVer <= 6)
- {
- bIsLowerIE6 = true;
- }
- var iTimeout = 5000;
- var iCurrImg = 0;
- var arrPower = [];
-
- function changeImg()
- {
- if(g_arrAdObjects.length > iCurrImg)
- {
- setImg(iCurrImg);
- iCurrImg = (iCurrImg + 1 >= g_arrAdObjects.length ? 0 : iCurrImg + 1);
- }
- }
- function setImg(index)
- {
- if(g_arrAdObjects.length > index)
- {
- for(var i = 0; i < g_arrAdObjects.length; i++)
- {
- if(i == index)
- {
- if(g_arrAdObjects[i].node.style.display == "block") continue;
- else g_arrAdObjects[i].node.style.display = "block";
- }
- else g_arrAdObjects[i].node.style.display = "none";
- }
- }
- else
- {
- if(g_arrAdObjects[0])
- {
- if(g_arrAdObjects[0].node.style.display != "block") g_arrAdObjects[0].node.style.display = "block";
- }
- }
- }
- var oDiv = document.getElementById("ad_div");
- if(typeof g_arrAdObjects != "undefined")
- {
- for(var i = 0; i < g_arrAdObjects.length; i++)
- {
- var divNode = document.createElement("div");
- divNode.style.cursor = "pointer";
- divNode.style.display = "block";
- divNode.style.width = g_arrAdObjects[i].width + "px";
- divNode.style.height = g_arrAdObjects[i].heigth + "px";
- divNode.index = i;
- divNode.onclick = function()
- {
- window.open(g_arrAdObjects[this.index].clickUrl, "_blank");
- }
- var bIsPng = /(.png)$/i.test(g_arrAdObjects[i].fileName);
- if(bIsPng && bIsLowerIE6)
- {
- divNode.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + g_arrAdObjects[i].fileName + "')";
- }
- else
- {
- var imgNode = document.createElement("img");
- imgNode.src = g_arrAdObjects[i].fileName;
- divNode.appendChild(imgNode);
- }
- oDiv.appendChild(divNode);
- g_arrAdObjects[i].node = divNode;
- }
- for(var j = 0; j < g_arrAdObjects.length; j++)
- {
- g_arrAdObjects[j].node.style.position = "absolute";
- g_arrAdObjects[j].node.style.left = "0px";
- g_arrAdObjects[j].node.style.top = "0px";
- g_arrAdObjects[j].node.style.display = "none";
- }
- changeImg();
- setInterval(changeImg, iTimeout);
- }
- })();
复制代码 以上的是SS的代码,我想用它的样式改成百度搜索。我申请了联盟的。但不会整。请帮帮忙- <iframe id="baiduframe" marginwidth="0" marginheight="0" scrolling="no"
- framespacing="0" vspace="0" hspace="0" frameborder="0" width="960" height="60"
- src="http://unstat.baidu.com/bdun.bsc?tn=cdtx888_pg&cv=0&cid=1131257&csid=322&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=360&sropls=1,2,3,4,5,6,99&insiteurl=&defid=99">
- </iframe>
- 这个是我的百度搜索代码
复制代码 |