87,910
社区成员
发帖
与我相关
我的任务
分享
<table width="411" height="74" border="0">
<tr>
<td>
<div id="xmwd" style="overflow:hidden;width:409px;color:#ff0000">
<table align=left cellpadding=0 cellspace=0 border=0 width="130">
<tr >
<td id=xmwd1 valign=top>
<table border=0 cellpadding=0 cellspacing=0 >
<tr >
<td > <a href=http://www.qpsh.com target=_blank style="margin:0px 2px "> <img src="http://www.qpsh.com/icon/BS9097.jpg" width="130"height=100 border=0 ></a ></td >
<td > <a href=http://www.qpsh.com target=_blank style="margin:0px 2px "> <img src="http://www.qpsh.com/icon/BS9097.jpg" width="130"height=100 border=0 ></a ></td >
<td > <a href=http://www.qpsh.com target=_blank style="margin:0px 2px "> <img src="http://www.qpsh.com/icon/BS9097.jpg" width="130"height=100 border=0 ></a ></td >
<td > <a href=http://www.qpsh.com target=_blank style="margin:0px 2px "> <img src="http://www.qpsh.com/icon/BS9097.jpg" width="130"height=100 border=0 ></a ></td >
</tr >
</table >
<td id=xmwd2 valign=top width="1"></td >
</tr >
</table >
</div >
<script >
var speed=50//速度数值越大速度越慢
xmwd2.innerHTML=xmwd1.innerHTML
function Marquee(){
if(xmwd2.offsetWidth-xmwd.scrollLeft <=0)
xmwd.scrollLeft-=xmwd1.offsetWidth
else{
xmwd.scrollLeft+=3
}
}
var MyMar=setInterval(Marquee,speed)
xmwd.onmouseover=function() {clearInterval(MyMar)}
xmwd.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
</td>
</tr>
</table>