向左
<table width="100%">
<tbody>
<tr>
<td width="80%">
<marquee id="mymarquee "><img src="图片地址"></marquee></td>
</tr>
</tbody>
</table>
向下
<marquee onmouseover=this.stop() onmouseout=this.start() direction=down loop=10><img src="图片地址"></marquee>
上下
<marquee scrollDelay=1 direction=up behavior=alternate width=285 height=120><img src="图地址"> <img src="图地址2"> <img src="图地址3"> <img src="图地址4"> ....</marquee>
向右
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
demo.scrollLeft=demo.scrollWidth
function Marquee(){
if(demo.scrollLeft<=0)
demo.scrollLeft+=demo2.offsetWidth
else{
demo.scrollLeft--
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。