1个回答
展开全部
试下这段代码 <TABLE border="0" cellspacing="0" cellpadding="0" width="100%" height="100%"> <TR> <TD align="center"><div id=demo style="overflow:hidden; width:189px; height:260px;"> <div id=demo1> <A href="#" target=_blank> <IMG SRC="图片网址" WIDTH="100" HEIGHT="75" BORDER="0" ALT="00000"></a> <A href="#" target=_blank> <IMG SRC="图片网址" WIDTH="100" HEIGHT="75" BORDER="0" ALT="111"></a> <A href="#" target=_blank> <IMG SRC="图片网址" WIDTH="100" HEIGHT="75" BORDER="0" ALT="2222"></a> <A href="#" target=_blank> <IMG SRC="图片网址" WIDTH="100" HEIGHT="75" BORDER="0" ALT="3333"></a> <A href="#" target=_blank> <IMG SRC="图片网址" WIDTH="100" HEIGHT="75" BORDER="0" ALT="4444"></a> </div> <div id=demo2></div> </div> <script language="javascript"> var speed=30 demo2.innerHTML=demo1.innerHTML function Marquee(){ if(demo2.offsetTop-demo.scrollTop<=0) demo.scrollTop-=demo1.offsetHeight else{ demo.scrollTop++ } } var MyMar=setInterval(Marquee,speed) demo.onmouseover=function() {clearInterval(MyMar)} demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} </script></TD> </TR> </TABLE>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询