关于织梦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个回答
博思aippt
2024-07-20 广告
2024-07-20 广告
作为深圳市博思云创科技有限公司的工作人员,对于Word文档生成PPT的操作,我们有以下建议:1. 使用另存为功能:在Word中编辑完文档后,点击文件->另存为,选择PowerPoint演示文稿(*.pptx)格式,即可将文档内容转换为PPT...
点击进入详情页
本回答由博思aippt提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询