把下面的代码放入网业代码内
<tr> <td><SCRIPT> var NowFrame = 1; var MaxFrame = 3; var bStart = 0; function fnToggle() { var next = NowFrame + 1; if(next == MaxFrame+1) { NowFrame = MaxFrame; next = 1; } if(bStart == 0) { bStart = 1; setTimeout('fnToggle()', 1000); return; } else { oTransContainer.filters[0].Apply(); document.images['oDIV'+next].style.display = ""; document.images['oDIV'+NowFrame].style.display = "none"; oTransContainer.filters[0].Play(duration=3); if(NowFrame == MaxFrame) NowFrame = 1; else NowFrame++; } setTimeout('fnToggle()', 6000); } fnToggle(); </SCRIPT> <!--焦点图片开始--> <DIV id=oTransContainer style="FILTER: progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0, wipeStyle=0, motion='forward'); WIDTH: 770px; HEIGHT: 150px"> <A href="" target=_blank><IMG id=oDIV1 style="BORDER-RIGHT: black 0px solid; BORDER-TOP: black 0px solid; DISPLAY: yes; BORDER-LEFT: black 0px solid; BORDER-BOTTOM: black 0px solid" height=150 src="/tp/hhymb500/2008.jpg" width=770 border=0></A> <A href="" target=_blank><IMG id=oDIV2 style="BORDER-RIGHT: black 0px solid; BORDER-TOP: black 0px solid; DISPLAY: none; BORDER-LEFT: black 0px solid; BORDER-BOTTOM: black 0px solid" height=150 src="/tp/hhymb500/2007.jpg" width=770 border=0></A> <A href="" target=_blank><IMG id=oDIV3 style="BORDER-RIGHT: black 0px solid; BORDER-TOP: black 0px solid; DISPLAY: none; BORDER-LEFT: black 0px solid; BORDER-BOTTOM: black 0px solid" height=150 src="/tp/hhymb500/2009.jpg" width=770 border=0></A> </DIV> <!--焦点图片结束--> </td> </tr>
备注:把绿色部分和红色部分换成你想要的网址和你的图片位置!
效果如下
|