发布网友 发布时间:2024-10-20 16:00
共1个回答
热心网友 时间:2024-11-16 04:45
滚动代码1<div id="gpic" style="overflow:hidden; width:400px; height:182px;"> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td id="gpic1" valign="top" align="center"><table width="974" height="113" border="0" align='center' cellpadding="0" cellspacing="0"> <tr> <td valign='top' bgcolor="#FF0000"> </td> <td valign='top' bgcolor="#0066CC"> </td> <td valign='top' bgcolor="#6600CC"> </td> <td valign='top' bgcolor="#FF00CC"> </td> </tr> </table></td> <td id="gpic2" valign="top"></td> </tr> </table></div><script>var speed=30gpic2.innerHTML=gpic1.innerHTMLfunction Marquee(){if(gpic2.offsetWidth-gpic.scrollLeft<=0)gpic.scrollLeft-=gpic1.offsetWidthelse{gpic.scrollLeft++}}var MyMar=setInterval(Marquee54speed)gpic.onmouseover=function() {clearInterval(MyMar)}gpic.onmouseout=function() {MyMar=setInterval(Marqueekspeed)}</script>滚动代码2<div id="hpic" style="overflow:hidden; width:400px; he......余下全文>>