关于织梦CMS模板里面的图片滚动想要修改调用,想把下面这个代码改成调用指定栏目的图片怎么改?谢谢
<divclass="showfl"><divclass="hd"></div><divclass="bd"><divclass="slider"><divid="sho...
<div class="show fl">
<div class="hd"></div>
<div class="bd">
<div class="slider">
<div id="showpic">
<table cellspacing="0" cellpadding="0" align="center" border="0">
<tbody>
<tr>
<td id="marquePic1" valign="top"><table width="760" height="180" border="0" cellpadding="0" cellspacing="0">
{dede:arclist row='3' type='image.'}
<td align="center"><a href="[field:arcurl/]"> <img src="[field:litpic/]" height="180" /> </a></td>
{/dede:arclist} </tr>
</table></td>
<td id="marquePic2" valign="top"></td>
</tr>
</tbody>
</table>
</div>
<script type=text/javascript>
var speed=30
document.getElementById("marquePic2").innerHTML=document.getElementById
("marquePic1").innerHTML
function Marquee()
{
if(document.getElementById("showpic").scrollLeft>=document.getElementById
("marquePic1").scrollWidth)
{
document.getElementById("showpic").scrollLeft=0
}
else
{
document.getElementById("showpic").scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
document.getElementById("showpic").onmouseover=function() {clearInterval(MyMar)}
document.getElementById("showpic").onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script> 展开
<div class="hd"></div>
<div class="bd">
<div class="slider">
<div id="showpic">
<table cellspacing="0" cellpadding="0" align="center" border="0">
<tbody>
<tr>
<td id="marquePic1" valign="top"><table width="760" height="180" border="0" cellpadding="0" cellspacing="0">
{dede:arclist row='3' type='image.'}
<td align="center"><a href="[field:arcurl/]"> <img src="[field:litpic/]" height="180" /> </a></td>
{/dede:arclist} </tr>
</table></td>
<td id="marquePic2" valign="top"></td>
</tr>
</tbody>
</table>
</div>
<script type=text/javascript>
var speed=30
document.getElementById("marquePic2").innerHTML=document.getElementById
("marquePic1").innerHTML
function Marquee()
{
if(document.getElementById("showpic").scrollLeft>=document.getElementById
("marquePic1").scrollWidth)
{
document.getElementById("showpic").scrollLeft=0
}
else
{
document.getElementById("showpic").scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
document.getElementById("showpic").onmouseover=function() {clearInterval(MyMar)}
document.getElementById("showpic").onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询