Português
<!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" /> <title>新闻切换技术</title > <style type="text/css"> <!-- body { text-align: center; margem:0; preenchimento:0; fundo: #FFF; tamanho da fonte: 12px; color:#000;} div,form,img,ul,ol,li,dl,dt,dd {margem: 0; preenchimento: 0; borda: 0;} h1,h2,h3,h4,h5,h6 {margem:0; padding:0;} table,td,tr,th{font-size:12px;} a:link {cor: #000; decoração de texto:none;} a:visitado {cor: #83006f;decoração de texto:none;} a:hover {cor: #c00; text-decoration:underline;} a:active {color: #000;} .focusPic{margin:0 auto; largura:244px;} .focusPic .pic{margem:0 auto; largura:240px; altura:180px; preenchimento:2px 0 0;} .focusPic .adPic{margem:0 auto 5px; largura:240px; altura:29px; overflow:hidden;background:url(/u/info_img/2009-06/20/adpic.gif);} .focusPic .adPic .text{float:right; preenchimento:9px 4px 0 0; largura:140px;} .focusPic .adPic .text a{color:#1f3a87;} .focusPic .adPic .text a:hover{color:#bc2931;} .focusPic h2{ float:left; largura:232px;preenchimento:4px 0 3px 12px; tamanho da fonte: 14px; text-align:left;} .focusPic p{float:left; largura:226px;altura da linha:160%; margem:0; text-align:left;padding:0 0 10px 12px;} .focusPic p img {margin:0px 0 2px;} .focusPic .more{ margin:0 auto; largura:240px; } .focusPic .more .textNum{float:right; margin:0 8px 0 0;padding:0 0 4px;} .focusPic .more .textNum .text{float:left; peso da fonte: negrito; preenchimento:7px 6px 0 0; color:#666;} .focusPic .more .textNum .num{float:left; largura:113px; altura:19px;} .focusPic .more .textNum .bg1{ background:url(/u/info_img/2009-06/20/num1.gif);} .focusPic .more .textNum .bg2{ background:url(/u /info_img/2009-06/20/num2.gif);} .focusPic .more .textNum .bg3{ background:url(/u/info_img/2009-06/20/num3.gif);} .focusPic .more . textNum .bg4{ background:url(/u/info_img/2009-06/20/num4.gif);} .focusPic .more .textNum .num ul{ float:left; largura:113px;} .focusPic .more .textNum .num li{float:esquerda; largura:28px; peso da fonte: negrito; display: bloco; cor:#fff; tipo de estilo de lista: nenhum; padding:6px 0 0;} .focusPic .more .textNum .num li a{color:#fff; preenchimento:0 5px; } .focusPic .more .textNum .num li a:visited{color:#fff;} .focusPic .more .textNum .num li a:hover{color:#ff0;} --> </style> </head> <body> <script linguagem="JavaScript" type="text/javascript"> var nn; nn=1; setTimeout('change_img()',6000); função change_img() { if(nn>4) nn=1 setTimeout('setFocus1('+nn+')',6000); nn++; tt=setTimeout('change_img()',6000); } function setFocus1(i) { selectLayer1(i); } function selectLayer1(i) { switch(i) { case 1: document.getElementById("focusPic1").style.display="block"; document.getElementById("focusPic2").style.display="none"; document.getElementById("focusPic3").style.display="none"; document.getElementById("focusPic4").style.display="none"; document.getElementById("focusPic1nav").style.display="block"; document.getElementById("focusPic2nav").style.display="none"; document.getElementById("focusPic3nav").style.display="none"; document.getElementById("focusPic4nav").style.display="none"; quebrar; caso 2: document.getElementById("focusPic1").style.display="none"; document.getElementById("focusPic2").style.display="block"; document.getElementById("focusPic3").style.display="none"; document.getElementById("focusPic4").style.display="none"; document.getElementById("focusPic1nav").style.display="none"; document.getElementById("focusPic2nav").style.display="block"; document.getElementById("focusPic3nav").style.display="none"; document.getElementById("focusPic4nav").style.display="none"; quebrar; caso 3: document.getElementById("focusPic1").style.display="none"; document.getElementById("focusPic2").style.display="none"; document.getElementById("focusPic3").style.display="block"; document.getElementById("focusPic4").style.display="none"; document.getElementById("focusPic1nav").style.display="none"; document.getElementById("focusPic2nav").style.display="none"; document.getElementById("focusPic3nav").style.display="block"; document.getElementById("focusPic4nav").style.display="none"; quebrar; caso 4: document.getElementById("focusPic1").style.display="none"; document.getElementById("focusPic2").style.display="none"; document.getElementById("focusPic3").style.display="none"; document.getElementById("focusPic4").style.display="block"; document.getElementById("focusPic1nav").style.display="none"; document.getElementById("focusPic2nav").style.display="none"; document.getElementById("focusPic3nav").style.display="none"; document.getElementById("focusPic4nav").style.display="block"; quebrar; } } </script> <div class="focusPic"> <div id="focusPic1" style="display:block ;"> <div class="pic"> <a href="http://tech.163 .com/special/000915SN/soft2005.html"><img src="/u/info_img/2009-06/20/2006011810122068706.jpg" alt="网易学院05年软件评选结果" width="240" height= "180" border="0" /></a> </div> <h2><a href="http://tech.163.com/special/000915SN/soft2005.html">网易学院05年软件评选结果</a></h2> <p>经过大家的热情投票和我们的辛劳整理,网易学院2005年年度软件评选结果终于出炉啦。点击进入查看……<img src="/newimg/i2 .gif" alt="详细" width="3" height="5" /> <a href="http://tech.163.com/special/000915SN/soft2005.html" class="cDRed">详细</a></p> </div> <div id="focusPic2" style="display: none ;"> <div class="pic"> <a href="http://tech.163.com /discover/"><img src="/u/info_img/2009-06/20/200601171557008cee7.jpg" alt="颠覆丛林动物生存法则" width="240" height="180" border="0" / ></a> </div> <h2><a href="http://tech.163.com/discover/">颠覆丛林动物生存法则</a></h2> <p>群居动物的这种行为颠覆了我们通常认为的,在动物世界通行的 “丛林法则”,动物不都自私,不都是弱肉强食的。<img src="/newimg/i2.gif" alt="详细" largura= "3" height="5" /> <a href="http://tech.163.com/discover/" class="cDRed">详细</a></p> </div> <div id ="focusPic3" style="display: none ;"> <div class="pic"> <a href="http://tech.163.com/special/00091MNJ/itobserve015.html"><img src=" /u/info_img/2009-06/20/2006011711483290a60.jpg" alt="WAPI并非贸易阴谋" width="240" height="180" border="0" /></a> </div> <h2 ><a href="http://tech.163.com/special/00091MNJ/itobserve015.html">WAPI并非贸易阴谋</a></h2> <p>近日国家做出决定:“将向其他的国内及国外企业公布该算法”。事实证明中国WAPI标准并非是贸易阴谋。<img src="/newimg/i2.gif" alt="详细" 3" altura="5" /> < a href="http://tech.163.com/special/00091MNJ/itobserve015.html" class="cDRed">详细</a></p> </div> <div id="focusPic4" style= "display: none;"> <div class="pic"> <a href="http://tech.163.com/special/00091OSI/horizons.html"><img src="/u/info_img/2009 -06/20/200601171002503f251.jpg" alt="新视野号探测冥王星特别专题" width="240" height="180" border="0" /></a> </div> <h2><a href = "http://tech.163.com/special/00091osi/horizons.html"> 新视野号探测冥王星特别专题 </a> </h2> <p> 美国宇航局将于北京时间 18日凌晨2时24分发射新视野号探测器,造访这颗人类唯一尚未探测过的行星-冥王星。<img src="/newimg/i2.gif" alt="详细" largura="3" altura="5 " /> <a href="http://tech.163.com/special/00091OSI/horizons.html" class="cDRed">详细</a></p> </div> <div class=" mais"> <div class="textNum"> <div class="text">> 更多头图新闻</div> <div class="num bg1" id="focusPic1nav" style="display: block;"> <ul> <li>1</li> <li><a href=" javascript:setFocus1(2);" target="_self">2</a></li> <li><a href="javascript:setFocus1(3);" target="_self">3</a></li> <li><a href="javascript:setFocus1(4);" target="_self">4</a></li> </ul> </div> <div class="num bg2" id="focusPic2nav" style="display: none;"> <ul> <li ><a href="javascript:setFocus1(1);" target="_self">1</a></li> <li>2</li> <li><a href="javascript:setFocus1(3);" target="_self">3</a></li> <li><a href="javascript:setFocus1(4);" target="_self">4</a></li> </ul> </div> <div class="num bg3" id="focusPic3nav" style="display: none;"> <ul> <li ><a href="javascript:setFocus1(1);" target="_self">1</a></li> <li><a href="javascript:setFocus1(2);" target="_self">2</a></li> <li>3</li> <li><a href="javascript:setFocus1(4);" target="_self">4</a></li> </ul> </div> <div class="num bg4" id="focusPic4nav" style="display: none;"> <ul> <li ><a href="javascript:setFocus1(1);" target="_self">1</a></li> <li><a href="javascript:setFocus1(2);" target="_self">2</a></li> <li><a href="javascript:setFocus1(3);" target="_self">3</a></li> <li>4</li> </ul> </div> </div> </div> </div> </body> </html >