|
以下是代码片段:
<STYLE type=text/css> /* 全局CSS定义 */ body { text-align: center; margin:0; padding:0; background: #FFF; font-size:12px; color:#000;} div,form,img,ul,ol,li,dl,dt,dd {margin: 0; padding: 0; border: 0;} h1,h2,h3,h4,h5,h6 { margin:0; padding:0;} table,td,tr,th
/* 链接颜色 */ a:link {color: #000; text-decoration:none;} a:visited {color: #83006f;text-decoration:none;} a:hover {color: #c00; text-decoration:underline;} a:active {color: #000;} /* 颜色属性 [定义规则,小写c加颜色名称] */ .cRed,a.cRed:link,a.cRed:visited{ color:Red; } .cBlue,a.cBlue:link,a.cBlue:visited a.cBlue:hover .cDRed,a.cDRed:link,a.cDRed:visited{ color:#c00;} .cGray,a.cGray:link,a.cGray:visited{ color: #4F544D;} .cDGray,a.cDGray:link,a.cDGray:visited{ color: #666;} .cWhite,a.cWhite:link,a.cWhite:visited{ color:#fff;} .cBlack,a.cBlack:link,a.cBlack:visited a.cBlack:hover
/* 头图 */ .col{margin: 20 0 0 0;float:center; width:252px;border:1px solid #006BB6;} .focusPic{margin:0 auto; width:252px;} .focusPic .pic{margin:0 auto; width:250px; height:191px; padding:5px 0 0; background:url(images/butong_net_bg.gif) no-repeat;} .focusPic .pic img{margin:6px 0 0 0;} .focusPic .pic h3 {text-align:left; padding:1px 0 0 12px;} .focusPic .pic h3 img {margin:0px; }
.focusPic .pic .flashBlank {margin:0 auto; width:100%; height:6px; font-size:1px; } .focusPic .pic h5 {text-align:left; padding:0px 0 0 12px !important;padding:5px 0 0 12px;} .focusPic .pic h5 img {margin:0px; }
.focusPic h2{ float:left; width:236px;padding:4px 0 3px 12px; font-size:14px; text-align:left;} .focusPic p{float:left; width:236px;line-height:160%; margin:0; text-align:left;padding:0 0 10px 12px; height:57px;} .focusPic .more{ margin:0 auto; width:250px; } .focusPic .more .textNum{float:right; margin:0 8px 0 0;padding:0 0 4px;} .focusPic .more .textNum .text{float:left; font-weight:bold; padding:7px 6px 0 0; color:#666;} .focusPic .more .textNum .num{float:left; width:113px; height:19px;} .focusPic .more .textNum .bg1{ background:url(images/butong_net_1.gif);} .focusPic .more .textNum .bg2{ background:url(images/butong_net_2.gif);} .focusPic .more .textNum .bg3{ background:url(images/butong_net_3.gif);} .focusPic .more .textNum .bg4{ background:url(images/butong_net_4.gif);} .focusPic .more .textNum .num ul{ float:left; width:113px;} .focusPic .more .textNum .num li{float:left; width:28px; font-weight:bold;display:block; color:#fff; list-style-type:none; padding:6px 0 0;} .focusPic .more .textNum .num li a{color:#fff; padding:0 5px; } .focusPic .more .textNum .num li a:visited .focusPic .more .textNum .num li a:hover </STYLE>
<DIV class=col><!-- 头图 --> <SCRIPT language=javascript> var nn; nn=1; setTimeout('change_img()',6000); function 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"; break; case 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"; break; case 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"; break; case 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"; break; } } </SCRIPT>
<DIV class=focusPic> <DIV id=focusPic1 style="DISPLAY: block"> <DIV class=pic><A href="http://ent.163.com/06/0410/07/2EB5MT7000031H2L.html"><IMG height=150 alt=章子怡黑衣蒙头上吴彦祖保姆车 src="http://cimg2.163.com/ent/2006/4/10/200604100850175803c.jpg" width=228 border=0></A></DIV> <H2><A href="http://ent.163.com/06/0410/07/2EB5MT7000031H2L.html">章子怡黑衣蒙头上吴彦祖保姆车</A></H2> <P> 章子怡日前和霍启山闹分手,前晚(4月8日)在香港又被媒体跟拍到她和吴彦祖一起玩乐、还一上车就遮遮掩掩 <IMG height=13 alt=详细 src="images/butong_net_xx.gif" width=3> <A class=cDRed href="http://ent.163.com/06/0410/07/2EB5MT7000031H2L.html">详细</A></P></DIV> <DIV id=focusPic2 style="DISPLAY: none"> <DIV class=pic><A href="http://ent.163.com/06/0410/13/2EBQ6RK000031NKO.html"><IMG height=150 alt=刘晓庆重演武则天造型曝光 src="http://cimg2.163.com/ent/2006/4/10/2006041016571088ffc.jpg" width=228 border=0></A></DIV> <H2><A href="http://ent.163.com/06/0410/13/2EBQ6RK000031NKO.html">刘晓庆重演武则天造型曝光</A></H2> <P> 《日月凌空》正紧张拍摄,刘晓庆再次扮演武则天,记者通过特殊渠道获得了两张被称为剧组顶级机密的造型照。 <IMG height=13 alt=详细 src="images/butong_net_xx.gif" width=3> <A class=cDRed href="http://ent.163.com/06/0410/13/2EBQ6RK000031NKO.html">详细</A></P></DIV> <DIV id=focusPic3 style="DISPLAY: none"> <DIV class=pic><A href="http://adclient.163.com/event.ng/Type=click&FlightID=55136&AdID=57068&TargetID=515&Values=31,43,51,60,72,78,81,90,100,110,312,330,332,364,582,733,734&Redirect=http://ent.163.com/special/00031SST/FQ.html"><IMG height=150 alt=赢飞利浦768手机 src="http://cimg2.163.com/ent/2006/4/7/20060407101802517a6.jpg" width=228 border=0></A></DIV> <H2><A href="http://adclient.163.com/event.ng/Type=click&FlightID=55136&AdID=57068&TargetID=515&Values=31,43,51,60,72,78,81,90,100,110,312,330,332,364,582,733,734&Redirect=http://ent.163.com/special/00031SST/FQ.html">赢飞利浦768手机</A></H2> <P> 参加飞利浦手机娱乐关键字专题活动,赢取飞利浦768手机,活动正火热进行中 <IMG height=13 alt=详细 src="images/butong_net_xx.gif" width=3> <A class=cDRed href="http://adclient.163.com/event.ng/Type=click&FlightID=55136&AdID=57068&TargetID=515&Values=31,43,51,60,72,78,81,90,100,110,312,330,332,364,582,733,734&Redirect=http://ent.163.com/special/00031SST/FQ.html">详细</A></P></DIV> <DIV id=focusPic4 style="DISPLAY: none"> <DIV class=pic> <DIV class="clear flashBlank"> </DIV> <OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 height=150 width=228 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="6033"><PARAM NAME="_cy" VALUE="3969"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="http://cimg3.163.com/ent/2006/0403/pepsi228150.swf"><PARAM NAME="Src" VALUE="http://cimg3.163.com/ent/2006/0403/pepsi228150.swf"><PARAM NAME="WMode" VALUE="Window"><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false"> <embed src="http://cimg3.163.com/ent/2006/0403/pepsi228150.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="228" height="150"></embed> </OBJECT></DIV> <H2><A href="http://adclient.163.com/event.ng/Type=click&FlightID=54561&AdID=56510&TargetID=515&Values=31,43,51,60,72,78,84,91,100,110,312,330,332,364,586,702,733,734&Redirect=http://pepsi.163.com/">中国无名小子挑战球星贝克汉姆</A></H2> <P> 两个中国无名小子将会亲身与贝克汉姆、罗纳尔迪尼奥、亨利等世界顶级球星面对面。 <IMG height=13 alt=详细 src="images/butong_net_xx.gif" width=3> <A class=cDRed href="http://adclient.163.com/event.ng/Type=click&FlightID=54561&AdID=56510&TargetID=515&Values=31,43,51,60,72,78,84,91,100,110,312,330,332,364,586,702,733,734&Redirect=http://pepsi.163.com/">详细</A></P></DIV> <DIV class=more> <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></DIV>
|