Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[疑问] 谁能把百度做成这个样子

[复制链接]
噢哦 发表于 2009-4-3 22:23:15 | 显示全部楼层 |阅读模式
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  6. <title>腾讯首页</title>
  7. <style>
  8. body{margin:0;padding:0 0 12px 0;background:#fff;font-size:13px;line-height:22px;}
  9. div,p,li{font-family:Verdana,宋体;font-size:13px;}
  10. form,ul,li,p,h1,h2,h3,h4,h5,h6{margin:0;padding:0;}
  11. input,select{font-size:12px;line-height:16px;}
  12. img{border:0;}
  13. ul,li{list-style-type:none;}
  14. li{font-size:13px;}
  15. .tc{text-align:center;}.tl{text-align:left;}.tr{text-align:right;}
  16. .dis{display:block;}.undis{display:none;}
  17. .fl{float:left;}.fr{float:right;}.cl{clear:both;}
  18. .fh{height:22px;}.fb{font-weight:bold;}.fnb{font-weight:200;margin-left:-1px;}
  19. .fc30{color:#303030;font-family:"宋体";}.fchot{color:#ff0700}
  20. .f11{font-size:12px;font-family:tahoma;}

  21. /* Safari 3.0 and Opera 9 rules here */
  22. #TextNav *{font-family:STSong;}
  23. }
  24. /*soso*/
  25. #Soso{width:912px;height:78px;margin:0 auto;}
  26. #Soso_Left{padding:5px 0 0 25px;width:225px;margin:0 10px 0 0;float:left;}
  27. #Wealth{line-height:18px;height:54px;padding-bottom:7px;margin-top:-9px;margin-left:-5px;cursor:pointer;width:170px;}
  28. #Wealth *{line-height:18px;}
  29. #Wealth h6{font-size:13px;padding-top:20px;}
  30. #Wealth span.img{float:left;display:block;padding-top:8px}
  31. #Wealth p{float:left;margin:0;padding:0;}
  32. #Wealth div{font-size:12px;font-family:tahoma,宋体;width:100px;}
  33. /*皮肤列表*/
  34. #Skin div {float:left}
  35. #SkinList {width:56px;height:11px;overflow:hidden;display:block;}
  36. #Skin li{float:left;width:14px;height:11px;cursor:pointer;}
  37. #def div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left top;}
  38. #s1 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -11px;}
  39. #s2 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -22px;}
  40. #s3 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -33px;}
  41. #s4 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -44px;}
  42. #s5 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -55px;}
  43. #s6 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -66px;}
  44. #s7 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -77px;}
  45. #s8 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -88px;}
  46. #s9 div{background:url(http://img1.qq.com/news/pics/9468/9468392.gif) no-repeat left -99px;}
  47. #sar{cursor:pointer;}
  48. #sar div{background:url(http://img1.qq.com/news/pics/9468/9468357.gif) no-repeat -20px -1px;}
  49. #sar div.s{background:url(http://img1.qq.com/news/pics/9468/9468357.gif) no-repeat -10px -1px;}
  50. /*soso输入框区域*/
  51. #SosoArea{width:470px;padding:9px 0 0 0;float:left;}
  52. #sosoFod{padding-left:14px;height:25px;}
  53. #sosoFod h3{float:left;width:40px;height:26px;font-size:12px;font-weight:200;padding-left:13px;cursor:pointer;}
  54. #sosoFod #sosoqzone {width:50px;padding-left:3px;}
  55. #sosoFod #sosoqzone div{margin-top:-1px;font-size:12px;}
  56. #SosoArea input.w{width:392px;height:22px;border:0;padding:4px 3px 0 3px;margin-right:6px;line-height:18px;font-size:14px;}
  57. #SosoArea input.bot{border:0;width:51px;height:27px;padding-top:2px;}
  58. #SosoArea table{line-height:17px;}
  59. #SosoArea table a{color:#fff;}
  60. #SosoAd{float:left;}
  61. #sosoLogo {position:absolute;margin:26px 0 0 -55px;}
  62. .more{position:absolute;background:#fff;margin:-2px 0 0 -5px!important;margin:16px 0 0 -46px;z-index:10000;border:1px solid #B2D0EA;}
  63. .more a{width:55px;display:block;padding-left:5px;}
  64. .more ul{list-style-type:none;margin:0;padding:0;}
  65. .more li{line-height:24px;list-style-type:none;margin:0;padding:0;text-align:left;}
  66. .more li a,.more li a:visited{color:#3B5995;text-decoration:none;font-size:12px;}
  67. .more li a:hover{background:#D6E9F8;color:#3B5995;text-decoration:none;font-size:12px;}
  68. /*内容部分通用class*/
  69. .cArea{width:910px;margin:0 auto;padding:10px 0 0 0;clear:both;z-index:1;}
  70. .cArea1{width:910px;margin:0 auto;padding:7px 0 0 0;clear:both;}
  71. .txArea{width:714px;float:left;}
  72. .resArea{width:296px;float:left;}
  73. .proArea{width:409px;;float:right;}
  74. .adArea{width:186px;float:right}
  75. .adMArea{clear:both;padding-top:10px;}
  76. .imgArea{background:url(http://img1.qq.com/news/pics/9468/9468391.gif) repeat-x bottom;height:83px;}
  77. .imgLArea{width:105px;height:70px;padding:0 12px 0 0;float:left;}
  78. .imgRArea,.imgRArea1{float:left;}
  79. .imgRArea *{font-size:14px;line-height:24px;}
  80. .imgLAreapic {width:105px;height:80px;padding:0 12px 0 0;float:left;text-align:center;}
  81. .imgLAreapic img{width:105px;height:55px;margin-bottom:1px;}
  82. .imgLAreapic a{font-size:13px;}
  83. .height{height:122px;}
  84. .res_b,.pro_b{height:2px;}
  85. .textArea{clear:both;padding:5px 0 0 0;}


  86. /*内容链接颜色控制*/
  87. #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;}
  88. #NewsInfo h3 a:hover{color:#bd0a01;}
  89. #NewsInfo a.lchot,#SportsInfo a.lchot,#financeInfo a.lchot,#techInfo a.lchot,#carInfo a.lchot,#eduInfo a.lchot{color:#bd0a01;}
  90. #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;}
  91. #blogInfo a.lchot,#entInfo a.lchot,#gameInfo a.lchot,#comicInfo a.lchot,#bookInfo a.lchot,#ladyInfo a.lchot,#comicInfo a.lchot{color:#bd0a01;}
  92. #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;}
  93. /*新闻*/
  94. #News h4{float:left;height:20px;line-height:20px;text-align:center;width:73px;overflow:hidden;margin-right:1px;padding-top:3px;}
  95. #News h4.s,#News h4.s1{font-weight:700;border-right:0;width:73px;padding-bottom:4px;}
  96. #News span h4 {width:82px;padding-left:4px}
  97. #News span h4.s {width:86px;}
  98. #News span h4.s1 {width:102px;}
  99. #News span h4.s0 {width:102px;}
  100. #News span h4 a{display:inline;}
  101. #NewsInfo a.black{color:#000;}
  102. #NewsInfo a.black:hover{color:#000;}
  103. #NewsInfo a.blue{color:#0330bb;}
  104. #NewsInfo a.blue:hover{color:#0330bb;}
  105. .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;}




  106. /*腾讯动态*/
  107. #adAreaD{height:230px;padding:10px 10px 10px 14px;}
  108. #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:"宋体";}
  109. .footernew {color:#515151;text-align:center;font-size:12px;line-height:24px;width:910px;margin:0 auto; padding-top:12px;}
  110. .footernew a {color:#515151;text-decoration:none;}
  111. .footernew a.lchot {color:#bd0a01;}
  112. .footernew a:hover {color:#bd0a01;text-decoration:underline;}
  113. .footernew a:visited {color:#515151;}
  114. .footernew div{width:546px; margin:0 auto;}
  115. .footernew p{float:left;width:120px;height:50px;border:1px solid #d2d2d2;padding:0;line-height:20px; margin:6px;font-size:12px;}
  116. .footernew .fl{float:left;padding:3px;}
  117. .footernew .fr{float:right; width:72px;padding:5px 3px 0 3px;}
  118. </style>
  119. <!--[if ie 6]>
  120. <style>
  121. div,p,li{overflow:hidden;}
  122. #sosoFod{margin-bottom:0;}
  123. #SosoArea input.w{background-attachment:fixed;}
  124. #proNav {overflow:hidden;background-position-y:90px;}
  125. #proNav td.m{padding:2px 0 0 28px;}
  126. #tailor div{float:left;margin-left:3px}
  127. #toDay p{padding:0}
  128. .imgRArea{margin-left:0;}
  129. #paipaiInfo .fr img{padding-top:4px;}
  130. #proAll {margin-left:10px;}
  131. #proAll form img.i{margin-top:1px;}
  132. #proNav .list a{display:block;width:64px;height:20px;padding:3px 0 0 4px}
  133. #comicInfo .imgLAreapic{height:102px;}
  134. #tailorInfo .imgRArea1{padding-left:0;}
  135. #tailorInfo .textArea{line-height:24px;}
  136. #toDay h1{height:26px;}
  137. #NewsInfo *,#SportsInfo .textArea *,#financeInfo .textArea *,#techInfo .textArea *,#carInfo .textArea *,#eduInfo .textArea *{font-size:12px;line-height:24px;}
  138. #proArea_banner img{margin-bottom:0;}
  139. #proArea_banner {height:18px;margin-bottom:10px;padding:2px 0 0 16px;line-height:18px;}
  140. .dotline{padding:0;margin:3px 0 7px 4px;}
  141. </style>
  142. <![endif]-->
  143. <!--[if ie 7]>
  144. <style>
  145. div,p,li{overflow:hidden;}
  146. #sosoFod{margin-bottom:0;}
  147. #NewsPat{height:1px;line-height:0;margin-bottom:-6px;}
  148. .cl{height:0;line-height:0;width:0}
  149. #proNav {overflow:hidden;background-position-y:90px;}
  150. #proNav td.m{padding:2px 0 0 28px;}
  151. .imgRArea{margin-left:0;}
  152. #paipaiInfo .fr img{padding-top:4px;}
  153. #proAll {margin-left:10px;}
  154. #proAll form img.i{margin-top:1px;}
  155. #proNav .list a{display:block;width:64px;height:20px;padding:3px 0 0 4px}
  156. #comicInfo .imgLAreapic{height:102px;}
  157. #tailorInfo .imgLAreapic img{width:105px;height:55px;margin-bottom:4px;}
  158. #tailorInfo .imgRArea1{padding-left:0;}
  159. #tailorInfo .textArea{line-height:24px;}
  160. #blogMar,#playMar{width:389px;}
  161. #blogMarInfo,#playMarInfo{width:362px;overflow:hidden;padding-left:6px;}
  162. .more{position:relative;width:58px;}
  163. #NewsInfo *,#SportsInfo .textArea *,#financeInfo .textArea *,#techInfo .textArea *,#carInfo .textArea *,#eduInfo .textArea *{font-size:12px;line-height:24px;}
  164. </style>
  165. <![endif]-->
  166. <link id="cssChange" href="/iskin/skin1/skin1.css" rel="stylesheet" type="text/css" />
  167. <script language="javascript" type="text/javascript">
  168. var MiniSite=new Object();
  169. MiniSite.Browser={
  170.         ie:/msie/.test(window.navigator.userAgent.toLowerCase()),
  171.         moz:/gecko/.test(window.navigator.userAgent.toLowerCase()),
  172.         opera:/opera/.test(window.navigator.userAgent.toLowerCase()),
  173.         safari:/safari/.test(window.navigator.userAgent.toLowerCase())
  174. };
  175. MiniSite.$=function(s){
  176.         return(typeof s=='object')?s:document.getElementById(s);
  177. };
  178. MiniSite.JsLoader={
  179.         load:function(sUrl,fCallback){
  180.                 var _script=document.createElement('script');
  181.                 _script.setAttribute('charset','gb2312');
  182.                 _script.setAttribute('type','text/javascript');
  183.                 _script.setAttribute('src',sUrl);
  184.                 document.getElementsByTagName('head')[0].appendChild(_script);
  185.                 if(MiniSite.Browser.ie){
  186.                         _script.onreadystatechange=function(){
  187.                                 if(this.readyState=='loaded'||this.readyState=='complete'){
  188.                                         fCallback();
  189.                                 }
  190.                         };
  191.                 }else if(MiniSite.Browser.moz){
  192.                         _script.onload=function(){
  193.                                 fCallback();
  194.                         };
  195.                 }else{
  196.                         fCallback();
  197.                 }
  198.         }
  199. };
  200. MiniSite.Cookie={
  201.         set:function(name,value,expires,path,domain){
  202.                 if(typeof expires=="undefined"){
  203.                         expires=new Date(new Date().getTime()+10*24*3600*1000);
  204.                 }
  205.                 document.cookie=name+"="+escape(value)+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"; path=/")+((domain)?";domain="+domain:"");
  206.         },
  207.         get:function(name){
  208.                 var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
  209.                 if(arr!=null){
  210.                         return unescape(arr[2]);
  211.                 }
  212.                 return null;
  213.         },
  214.         clear:function(name,path,domain){
  215.                 if(this.get(name)){
  216.                         document.cookie=name+"="+((path)?"; path="+path:"; path=/")+((domain)?"; domain="+domain:"")+";expires=Fri, 02-Jan-1970 00:00:00 GMT";
  217.                 }
  218.         }
  219. };
  220. MiniSite.Home={
  221.         defaultprovince:4,
  222.         timelapse:null,
  223.         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},
  224.         insertFlash:function(elm,url,w,h){
  225.                 if(!document.getElementById(elm))
  226.                         return;
  227.                 var str='';
  228.                 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">';
  229.                 str+='<param name="movie" value="'+url+'">';
  230.                 str+='<param name="wmode" value="transparent">';
  231.                 str+='<param name="quality" value="autohigh">';
  232.                 str+='<param name="allowScriptAccess" value="always" > ';
  233.                 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>';
  234.                 str+='</object>';
  235.                 document.getElementById(elm).innerHTML=str;
  236.         },
  237.         _print:function(province){
  238.                 try{setdef();}catch(e){}
  239.         },
  240.         print:function(){
  241.                 var ok=function(){
  242.                         MiniSite.Home._print();
  243.                 }
  244.                 if(!MiniSite.Cookie.get("QQ_IPAddress")){
  245.                         MiniSite.Home.timelapse=setTimeout(ok,20000);
  246.                         MiniSite.JsLoader.load("http://fw.qq.com:80/ipaddress",function(){
  247.                                 if(MiniSite.Home.timelapse!=null){
  248.                                         clearTimeout(MiniSite.Home.timelapse);
  249.                                 };
  250.                                 if(typeof IPData!="undefined"){
  251.                                         MiniSite.Cookie.set('QQ_IPAddress',IPData[2]+','+IPData[3]);
  252.                                         MiniSite.Home._print(IPData[2]);
  253.                                 }else{
  254.                                         MiniSite.Home._print();
  255.                                 }
  256.                         });
  257.                 }else{
  258.                         var ipAddress=MiniSite.Cookie.get("QQ_IPAddress");
  259.                         var ipAddressArr=ipAddress.split(",");
  260.                         return MiniSite.Home._print(ipAddressArr[0]);
  261.                 }
  262.         }
  263. }
  264. if(!MiniSite.Cookie.get("QQ_IPAddress")){MiniSite.Home.print();}
  265.         window.onerror = function()
  266.         {
  267.                 return true;
  268.         }

  269.         if (!window._sT)
  270.         {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);};}

  271.         var marTime = new Array();
  272.         var marWay = new Array();
  273.         var moveTime = new Array();
  274.         moveTime[0] = 0;
  275.         moveTime[1] = 0;
  276.         var speed = 30;
  277.         var fodTime = 0;
  278.         var proFlog = 0;
  279.         var proTime = 0;

  280.         var gh=window.location.host;
  281.         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"];
  282.         function $(o){ return (typeof o == "object")?o:document.getElementById(o);}
  283.         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);}}}
  284.         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;}
  285.         function parseInfo(a,b,c){a.obj.innerHTML=b;swLabs(a.obj,a.sid,a.snum);}
  286.        
  287.         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;}
  288.         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";}
  289.         function loadNewsMap(){MiniSite.Home.insertFlash("map","http://www.qq.com/map.swf",294,280);}
  290.         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);}}
  291.         function tagOut(a){clearTimeout(fodTime);fodTime=0;}

  292.         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;}

  293.         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;}}}

  294.         function formatPageZone()
  295.         {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);}}}

  296.         function send_request(url)
  297.         {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);}

  298.         function loadPage()
  299.         {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>";}}
  300.         function tail()
  301.         {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);}       
  302.         //重庆19、四川18、陕西16、湖北25、北京4、上海28、广东0
  303.         var _wip=/^(0|4|16|18|19|25|28)$/i;
  304.         function setdefSkin()
  305.         {var n =  MiniSite.Cookie.get("TencentSkin");if(n!=null){call_0410("UNKNOWN","skin",n);setSkin(n);}else{call_0410("UNKNOWN","skin",0);}}
  306.         function setdef(){
  307.                 var n=MiniSite.Cookie.get("QQ_IPAddress");
  308.                 if(n!=null){
  309.                         //alert(MiniSite.Home.Provinc)
  310.                         var p=n.split(",")[0];
  311.                         n=MiniSite.Home.Provinc[p];
  312.                         if(_wip.test(n)){
  313.                                 $("tailorForIP").style.display="block";
  314.                                 tail(n);
  315.                         }
  316.                 }else{
  317.                         MiniSite.Home.print()
  318.                 }
  319.         }
  320.        


  321.         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")

  322.         function setSkin(n)
  323.         {var css = $("cssChange");var cssurl = "http://www.qq.com/iskin/";cssurl +=cssList[n];css.href=cssurl;MiniSite.Cookie.set("TencentSkin",n);}

  324.         function formatSkin()
  325.         {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); };}

  326.         function _openSkin(o1,o2,max,min,speed,n)
  327.         { return openSkin(o1,o2,max,min,speed,n);}

  328.         function _closeSkin(o1,o2,max,min,speed,n)
  329.         { return closeSkin(o1,o2,max,min,speed,n);}

  330.         //n=0 skin n=1 pro
  331.         function openSkin(o1,o2,max,min,speed,n)
  332.         {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);}

  333.         function closeSkin(o1,o2,max,min,speed,n)
  334.         {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);}

  335. function loadJS(url,load)
  336. {
  337.         var _script = document.createElement('script');
  338.         _script.setAttribute('type','text/javascript');
  339.         _script.setAttribute('src',url);
  340.         document.getElementsByTagName('head')[0].appendChild(_script);
  341.         if(!load)        return;
  342.         if(document.all){
  343.                 _script.onreadystatechange = function(){
  344.                         if (this.readyState=='loaded' || this.readyState=='complete')
  345.                         {
  346.                                 load();
  347.                         }
  348.                 };
  349.         }else{
  350.                 _script.onload = function(){
  351.                         load();
  352.                 };
  353.         }
  354. }

  355.         function loadPng(o)
  356.         {if(MiniSite.Browser.ie){try{var img = o;var imgName = o.src.toUpperCase();if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
  357.         {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){}}}

  358. function call_0410(type,item,page)
  359. {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) {}}

  360. function register0410(item,page)
  361. {try{var type = window.event.srcElement.tagName;if (type == "A" || type == "IMG" ) {call_0410(type,item, page);}return true;}catch(e){}}

  362. </script><!--[if !IE]>|xGv00|6cbd863378a324d191e5a642e6021138<![endif]-->
  363. <base target="_blank">
  364. </head>

  365. <body onload="document.execCommand('BackgroundImageCache',false,true)">
  366. <script type="text/javascript" src="http://mat1.qq.com/js/speed_qqcom_v1.0-min.js"></script>
  367. <script>
  368. function SetHome(obj,vrl){
  369.         try{
  370.                 obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
  371.         }
  372.         catch(e){
  373.                 if(window.netscape) {
  374.                         try {
  375.                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
  376.                         }  
  377.                         catch (e)
  378. {
  379.                                 alert("抱歉!您的浏览器不支持直接设为首页。请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为“true”,点击“加入收藏”后忽略安全提示,即可设置成功。");  
  380.                         }
  381.                         var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
  382.                         prefs.setCharPref('browser.startup.homepage',vrl);
  383.                  }
  384.         }
  385. }
  386. </script>
  387. <div id="miniNav" onClick="register0410('mininav',1);">
  388.                
  389. </div><!--[if !IE]>|xGv00|74067e4e1afb8bcf65265e2b54d770d5<![endif]-->
  390. <div id="NavCenter"></div>
  391. <!--[if !IE]>|xGv00|0e138bca0b2c4b804fc7df00e7531803<![endif]-->
  392.         <div id="Soso" onclick="register0410('sobar',1);">
  393.                 <div id="Soso_Left">
  394.                         <div id="Wealth"></div><!--[if !IE]>|xGv00|ccecb3638c47deca829764be4bddac8c<![endif]-->
  395.                         <div id="Skin">
  396.                                 <div id="SkinList">
  397.                                         <ul>
  398.                                                 <li id="def"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="默认" /></div></li>
  399.                                                 <li id="s1"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="淡蓝" /></div></li>
  400.                                                 <li id="s2"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="宁夏" /></div></li>
  401.                                                 <li id="s3"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="新绿" /></div></li>
  402.                                                 <li id="s4"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="竹韵" /></div></li>
  403.                                                 <li id="s5"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="水墨" /></div></li>
  404.                                                 <li id="s6"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="星空" /></div></li>
  405.                                                 <li id="s7"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="春节" /></div></li>
  406.                                                 <li id="s8"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="咖啡" /></div></li>
  407.                                                 <li id="s9"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="紫色" /></div></li>
  408.                                         </ul>                               
  409.                                 </div>
  410.                                 <div id="sar"><div><img src="http://img1.qq.com/news/pics/9471/9471252.gif" alt="展开" /></div></div>
  411.                                 <div class="cl"></div>
  412.                         </div>
  413.                         <script type="text/javascript">
  414.                                 formatSkin();setdefSkin();
  415.                         </script>
  416.                 </div>
  417.                 <div id="SosoArea">
  418. <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>
  419. <form name="frm_head" id="frm_head" action="http://www.soso.com/q" onsubmit="return sosoValidate();" method="GET" target="_blank">
  420. <input type="hidden" name="sp" value="S" />
  421. <input type="hidden" name="sc" value="web" />
  422. <input type="hidden" name="cid" value="w.q.in.sb.web" />
  423. <input type="hidden" name="ty" value="1" />
  424. <input type="hidden" name="bn" value="" />
  425. <input type="hidden" name="op" value="entry" />
  426. <input type="hidden" name="kw" value="" />

  427. <div id="sosoFod">
  428.   <h3 class="s1" id="sosoweb" onmouseover="delaySubSearch('web');" onmouseout="cancelDelay()" onclick="sosoSubSearch('web');goSearch()">网页</h3>
  429.   <h3 class="s2" id="sosoimg"  onmouseover="delaySubSearch('img');" onmouseout="cancelDelay()" onclick="sosoSubSearch('img');goSearch()">图片</h3>
  430.   <h3 class="s2" id="sosomus"  onmouseover="delaySubSearch('mus');" onmouseout="cancelDelay()" onclick="sosoSubSearch('mus');goSearch()">音乐</h3>
  431.   <h3 class="s2" id="sososoba" onmouseover="delaySubSearch('soba');" onmouseout="cancelDelay()" onclick="sosoSubSearch('soba');goSearch()">搜吧</h3>
  432.   <h3 class="s2" id="sosowenwen" onmouseover="delaySubSearch('wenwen');" onmouseout="cancelDelay()" onclick="sosoSubSearch('wenwen');goSearch()">问问</h3>
  433.   <h3 class="s2" id="sosoqz" onmouseover="delaySubSearch('qz');" onmouseout="cancelDelay()" onclick="sosoSubSearch('qz');goSearch()">博客</h3>
  434.   <h3 class="s2" onmouseover="sm(event);" style="cursor:pointer;">更多▼
  435.   <div name="tm" id="tm" class="more" onclick="stopB(event)" style="display:none;">
  436.   <ul><li><a href="http://zh.soso.com/int.cgi?sc=int&w=" onclick="return tp(this);" target="_blank">综合</a></li>
  437.     <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>
  438.     <li><a href="http://dict.soso.com/d.q?sc=dict&w=" onclick="return tp(this);" target="_blank">词典</a></li>
  439.     <li><a href="http://life.soso.com" target="_blank">生活</a></li>
  440.     <li><a href="http://baike.soso.com/Search.e?sp=S" onClick="return tp(this);" target="_blank">百科</a></li>
  441.     <li style="border-top:1px solid #B2D0EA;"><a href="http://www.soso.com/more.shtml" target="_blank">所有产品</a></li></ul>
  442.   </div>
  443.   </h3>
  444. </div>
  445. <div>
  446.   <div class="fl">
  447.         <input class="w" id="smart_input" style="COLOR: #424242" name="w" smartPid="w.q.web.sb" autocomplete="off" />
  448.   </div>
  449.   <div class="fl">
  450.     <input type="submit" class="bot" value="搜 搜" align="absmiddle" style="cursor:pointer;"/>
  451.   </div>
  452. </div>
  453. <div class="cl"></div>
  454. </form>
  455. <script type="text/javascript">
  456. 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()
  457. {return;frm_head=$('frm_head');frm_head.w.value=sosoInitHint;}
  458. var sosoInitHint2=sosoInitHint;function trim(str){return str.replace(/(^\s*)|(\s*$)/g,"");}
  459. function sosoValidate(){wval=trim(frm_head.w.value);if((wval==sosoInitHint2)||(wval==sosoInitHint))
  460. {frm_head.w.value="";frm_head.w.style.color="#424242";if(frm_head.sc.value=="web")
  461. {frm_head.w.value=sosoInitKw;frm_head.action="http://www.soso.com/q";}
  462. return true;}
  463. if(frm_head.sc.value=="post")
  464. {frm_head.bn.value=frm_head.w.value;frm_head.op.value="entry";}
  465. else if(frm_head.sc.value=="wenwen"&&wval!="")
  466. {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;}
  467. return true;}
  468. function delaySubSearch(sc){if(delayId)clearTimeout(delayId);delayId=setTimeout(function(){sosoSubSearch(sc);},500);}
  469. function cancelDelay(){if(delayId)clearTimeout(delayId);}
  470. function sosoSubSearch(sc){changePage(sc);frm_head.w.blur();frm_head.sc.value=sc;wval=trim(frm_head.w.value);if(sc=="img")
  471. {frm_head.action="http://image.soso.com/image.cgi";}
  472. else if(sc=="mus")
  473. {frm_head.action="http://music.soso.com/music.cgi";}
  474. else if(sc=="qz")
  475. {frm_head.op.value="blog.blog";frm_head.ty.value="blog";frm_head.action="http://blog.soso.com/qz.q";}
  476. else if(sc=="soba"){frm_head.sc.value="post";frm_head.action="http://post.soso.com/sobar.q";}
  477. else if(sc=="wenwen")
  478. {frm_head.sc.value="wenwen";frm_head.action="http://wenwen.soso.com/z/SearchSolved.e";}
  479. else
  480. {frm_head.action="http://www.soso.com/q";}
  481. frm_head.w.focus();}
  482. function changePage(sc){if(sosoCurrHighLight==null){sosoCurrHighLight=$("sosoweb");}
  483. sosoCurrHighLight.className="s2";sosoCurrHighLight=$("soso"+sc);sosoCurrHighLight.className="s1";frm_head.sc.value=sc;frm_head.cid.value="w.q.in.sb."+sc;}
  484. function goSearch(){if(!sosoValidate())
  485. return false;frm_head.submit();frm_head.bn.value="";}
  486. 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;}
  487. function stopB(e){if(!e)e=window.event;e.cancelBubble=true;}
  488. document.onmouseup=function(event){var elems=document.getElementsByName('tm');if(elems[0].style.display==""){togDispMore(event);}}
  489. 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))
  490. {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");
  491. var qw=document.frm_head.w.value.trim();if(obj.href.indexOf("wenwen")!=-1||obj.href.indexOf("baike")!=-1)
  492. {obj.href=obj.href+encodeURIComponent(qw);}else{obj.href=obj.href+qw;}}else{obj.href="http://"+obj.hostname;}}
  493. String.prototype.trim=function()
  494. {return this.replace(/(^\s*)|(\s*$)/g,'');}
  495. var st='';function sm(event)
  496. {clearTimeout(st);eventSrc=event.srcElement||event.target;o=$('tm');if(eventSrc.tagName=="H3")
  497. {tt=setTimeout(function(){o.style.display="block";document.onmousemove=cp;},800);}else
  498. {clearTimeout(st);o.style.display="block";document.onmousemove=cp;}}
  499. function cp(event)
  500. {evt=window.event?window.event:event;var pointer=function(event){return{x:event.pageX||(event.clientX+
  501. (document.documentElement.scrollLeft||document.body.scrollLeft)),y:event.pageY||(event.clientY+
  502. (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)){}
  503. else{st=setTimeout(function(){o.style.display="none";},500);document.onmousemove=function(){};}}
  504. </script>
  505. </div>
  506. <!--[if !IE]>|xGv00|8b81aeba18f160bc4d58a4046038a756<![endif]-->
  507.                 <div id="SosoAd">
  508.                 <div style="width:172px;height:73px;overflow:hidden;">
  509.         <div id="ad_div" style="position:relative;width:172px;height:73px;">
  510.         </div>
  511. </div>
  512. <script>
  513. (function(){
  514.         <!--[if !IE]>|xGv00|8562b5198b819aae2599422d037fbd8e<![endif]-->
  515.         if(typeof g_arrAdObjects == "undefined")
  516. {
  517.         g_arrAdObjects = [];
  518. }
  519. 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]-->
  520.         <!--[if !IE]>|xGv00|8562b5198b819aae2599422d037fbd8e<![endif]-->
  521.        
  522.         var bIsLowerIE6 = false;
  523.         var ua = navigator.userAgent;
  524.         m=ua.match(/MSIE\s([^;]*)/);
  525.         var iVer = 0;
  526.         if(m && m[1])
  527.         {
  528.                 iVer = parseInt(m[1]);
  529.         }

  530.         if(iVer != 0 && iVer <= 6)
  531.         {
  532.                 bIsLowerIE6 = true;
  533.         }
  534.         var iTimeout = 5000;
  535.         var iCurrImg = 0;

  536.         var arrPower = [];
  537.        
  538.         function changeImg()
  539.         {
  540.                 if(g_arrAdObjects.length > iCurrImg)
  541.                 {
  542.                         setImg(iCurrImg);
  543.                         iCurrImg = (iCurrImg + 1 >= g_arrAdObjects.length ? 0 : iCurrImg + 1);
  544.                 }
  545.         }
  546.         function setImg(index)
  547.         {
  548.                 if(g_arrAdObjects.length > index)
  549.                 {
  550.                         for(var i = 0; i < g_arrAdObjects.length; i++)
  551.                         {
  552.                                 if(i == index)
  553.                                 {
  554.                                         if(g_arrAdObjects[i].node.style.display == "block") continue;
  555.                                         else g_arrAdObjects[i].node.style.display = "block";
  556.                                 }
  557.                                 else g_arrAdObjects[i].node.style.display = "none";
  558.                         }
  559.                 }
  560.                 else
  561.                 {
  562.                         if(g_arrAdObjects[0])
  563.                         {
  564.                                 if(g_arrAdObjects[0].node.style.display != "block") g_arrAdObjects[0].node.style.display = "block";
  565.                         }
  566.                 }
  567.         }
  568.         var oDiv = document.getElementById("ad_div");
  569.         if(typeof g_arrAdObjects != "undefined")
  570.         {
  571.                 for(var i = 0; i < g_arrAdObjects.length; i++)
  572.                 {
  573.                         var divNode = document.createElement("div");
  574.                         divNode.style.cursor = "pointer";
  575.                         divNode.style.display = "block";
  576.                         divNode.style.width = g_arrAdObjects[i].width + "px";
  577.                         divNode.style.height = g_arrAdObjects[i].heigth + "px";
  578.                         divNode.index = i;
  579.                         divNode.onclick = function()
  580.                         {
  581.                                 window.open(g_arrAdObjects[this.index].clickUrl, "_blank");
  582.                         }
  583.                         var bIsPng = /(.png)$/i.test(g_arrAdObjects[i].fileName);
  584.                         if(bIsPng && bIsLowerIE6)
  585.                         {
  586.                                 divNode.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + g_arrAdObjects[i].fileName + "')";
  587.                         }
  588.                         else
  589.                         {
  590.                                 var imgNode = document.createElement("img");
  591.                                 imgNode.src = g_arrAdObjects[i].fileName;
  592.                                 divNode.appendChild(imgNode);
  593.                         }
  594.                         oDiv.appendChild(divNode);
  595.                         g_arrAdObjects[i].node = divNode;
  596.                 }
  597.                 for(var j = 0; j < g_arrAdObjects.length; j++)
  598.                 {
  599.                         g_arrAdObjects[j].node.style.position = "absolute";
  600.                         g_arrAdObjects[j].node.style.left = "0px";
  601.                         g_arrAdObjects[j].node.style.top = "0px";
  602.                         g_arrAdObjects[j].node.style.display = "none";
  603.                 }
  604.                 changeImg();
  605.                 setInterval(changeImg, iTimeout);
  606.         }
  607. })();
复制代码
以上的是SS的代码,我想用它的样式改成百度搜索。我申请了联盟的。但不会整。请帮帮忙
  1. <iframe id="baiduframe" marginwidth="0" marginheight="0" scrolling="no"
  2.   framespacing="0" vspace="0" hspace="0" frameborder="0" width="960" height="60"
  3.   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">
  4. </iframe>

  5. 这个是我的百度搜索代码
复制代码
1006728380 发表于 2009-4-3 23:02:36 | 显示全部楼层
回复

使用道具 举报

sunyayan 发表于 2009-6-5 23:53:26 | 显示全部楼层
这个是腾讯的源码吧,,,不知道楼主啥意思
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-15 12:57 , Processed in 0.026437 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表