中文(繁体)
<!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"> <!-- 身體 { text-align: center;保證金:0;填充:0;背景:#FFF;字體大小:12px;顏色:#000;} div,form,img,ul,ol,li,dl,dt,dd {邊距: 0;填充:0;邊框:0;} h1,h2,h3,h4,h5,h6 { 邊距:0;填充:0;}表,td,tr,th{字體大小:12px;}a:連結{顏色:#000;文字裝飾:無;} a:曾造訪過{顏色:#83006f;文字裝飾:無;} a:懸停{顏色:#c00;文字裝飾:底線;} a:active {顏色: #000;} .focusPic{邊距:0 auto;寬度:244px;} .focusPic .pic{邊距:0 自動;寬度:240px;高度:180px;填充:2px 0 0;} .focusPic .adPic{邊距:0 自動 5px;寬度:240px;高度:29 像素;溢出:隱藏;背景:url(/u/info_img/2009-06/20/adpic.gif);} .focusPic .adPic .text{float:right;內邊距:9px 4px 0 0;寬度:140px;} .focusPic .adPic .text a{color:#1f3a87;} .focusPic .adPic .text a:hover{color:#bc2931;} .focusPic h2{ float:left;寬度:232px;填充:4px 0 3px 12px;字體大小:14px;文字對齊:左;} .focusPic p{float:左;寬度:226px;行高:160%;保證金:0; text-align:left;padding:0 0 10px 12px;} .focusPic p img {margin:0px 0 2px;} .focusPic .more{ margin:0 auto;寬度:240px; } .focusPic .more .textNum{float:right;邊距:0 8px 0 0;填滿:0 0 4px;} .focusPic .more .textNum .text{float:left;字體粗細:粗體;內邊距:7px 6px 0 0;顏色:#666;} .focusPic .more .textNum .num{float:left;寬度:113px;高度:19px;} .focusPic .more .textNum .bg1{ 背景:url(/u/info_img/2009-06/20/num1.gif);} .focusPic .more .textNum .bg2{ 背景:url(/u /info_img/2009-06/20/num2.gif);} .focusPic .more .textNum .bg3{ 背景:url(/u/info_img/2009-06/20/num3.gif);} .focusPic .more . textNum .bg4{ 背景:url(/u/info_img/2009-06/20/num4.gif);} .focusPic .more .textNum .num ul{ float:left;寬度:113px;} .focusPic .more .textNum .num li{float:left;寬度:28px;字體粗細:粗體;顯示:塊;顏色:#fff;清單樣式類型:無;填充:6px 0 0;} .focusPic .more .textNum .num li a{color:#fff;內邊距:0 5px; } .focusPic .more .textNum .num li a:visited{color:#fff;} .focusPic .more .textNum .num li a:hover{color:#ff0;} --> </style> </head> <body> <script language="JavaScript" type="text/javascript"> var nn; n = 1; setTimeout('change_img()',6000);函數change_img() { if(nn>4) nn=1 setTimeout('setFocus1('+nn+')',6000); nn++; tt=setTimeout('change_img()',6000); } 函數 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";休息;情況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";休息;情況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";休息;情況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";休息; } } </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年軟體審查結果" wid="240" height=240" "180" border="0" /></a> </div> <h2><a href="http://tech.163.com/special/000915SN/soft2005.html">網易學院05年軟體評選結果</a></h2> <p>經過大家的熱情投票和我們的辛勞整理,網易學院2005年度軟體評選結果終於出爐啦。 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>群居動物的這種行為顛覆了我們通常認為的,在動物世界通行的“叢林法則”,動物並不都自私,也不都是弱肉強食的。 = "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="詳細" width="3" height="5" / > < a href="http://tech.163.com/special/00091MNJ/itobserve015.html" class="cDRed">詳細</a></p> </div> <div id="focusPic4" style= “顯示:無;”> <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分發射新視野號債務,造訪這顆人類唯一尚未探測過的行星-冥王星。 width="3" height="5 " /> <a href="http://tech.163.com/special/00091OSI/horizons.html" class="cDRed">詳細</a>< /p> </div> <div class="更多"> <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 >