高手来帮我改成无间断循环滚动图片代码
<MARQUEEdirection=upwidth=200height=80onmouseover=stop()onmouseout=start()scrollAmoun...
<MARQUEE direction=up width=200 height=80 onmouseover=stop() onmouseout=start() scrollAmount=3 loop=infinite deplay="0">
<a href="http://连接地址" target="_blank"><img src="图片" border="0"></a>
<p><a href="http://字连接" target="_blank">文字</a></p>
<a href="http://连接地址" target="_blank"><img src="图片" border="0"></a>
<p><a href="http://字连接" target="_blank">文字</a></p>
<a href="http://连接地址" target="_blank"><img src="图片" border="0"></a>
<p><a href="http://字连接" target="_blank">文字</a></p>
<a href="http://连接地址" target="_blank"><img src="图片" border="0"></a>
<p><a href="http://字连接" target="_blank">文字</a></p>
</MARQUEE>
谢谢了 展开
<a href="http://连接地址" target="_blank"><img src="图片" border="0"></a>
<p><a href="http://字连接" target="_blank">文字</a></p>
<a href="http://连接地址" target="_blank"><img src="图片" border="0"></a>
<p><a href="http://字连接" target="_blank">文字</a></p>
<a href="http://连接地址" target="_blank"><img src="图片" border="0"></a>
<p><a href="http://字连接" target="_blank">文字</a></p>
<a href="http://连接地址" target="_blank"><img src="图片" border="0"></a>
<p><a href="http://字连接" target="_blank">文字</a></p>
</MARQUEE>
谢谢了 展开
展开全部
<div id="demo" style="overflow:hidden;width:100%;color:#ffffff;">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td id="demo1" valign="top" align="center">
<table cellpadding="2" cellspacing="0" border="0">
<tr align="center">
<td><img src="图片1地址" ></td>
<td><img src="图片2地址" ></td>
<td><img src="图片3地址" ></td>
<td><img src="图片4地址" ></td>
<td><img src="图片5地址" ></td>
</tr>
</table>
</td>
<td id="demo2" valign="top"></td>
</tr>
</table>
</div>
<script>
var speed=2 //速度数值越大速度越慢
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
<table cellpadding="0" cellspacing="0" border="0">
<tr><td id="demo1" valign="top" align="center">
<table cellpadding="2" cellspacing="0" border="0">
<tr align="center">
<td><img src="图片1地址" ></td>
<td><img src="图片2地址" ></td>
<td><img src="图片3地址" ></td>
<td><img src="图片4地址" ></td>
<td><img src="图片5地址" ></td>
</tr>
</table>
</td>
<td id="demo2" valign="top"></td>
</tr>
</table>
</div>
<script>
var speed=2 //速度数值越大速度越慢
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询