DW图片无缝滚动代码方向修改,源代码如下,方向改为向左滚动 50
<divid="jsweb8_cn_right"style="overflow:hidden;width:500px;"><tablecellpadding="0"cel...
<div id="jsweb8_cn_right" style="overflow:hidden;width:500px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td id="jsweb8_cn_right1" valign="top" align="center"><table cellpadding="2" cellspacing="0" border="0">
<tr align="center">
<td><img src="images/23S]$C3}PVST$[0{8$WJ3(G.jpg
"></td>
<td><img src="images/A0U`Z`BQ]NO~X`~FWF8WT)0.jpg
"></td>
<td><img src="images/QW([0}C_%X0]B6Z50GNR}WI.jpg "></td>
<td><img src=" images/}7RL]{Q_}BX[DTP~X5J8SQI.jpg"></td>
</tr>
</table></td>
<td id="jsweb8_cn_right2" valign="top"></td>
</tr>
</table>
</div>
</div>
<script>
var speed=30//速度数值越大速度越慢
jsweb8_cn_right2.innerHTML=jsweb8_cn_right1.innerHTML
function Marquee4(){
if(jsweb8_cn_right.scrollLeft<=0)
jsweb8_cn_right.scrollLeft+=jsweb8_cn_right2.offsetWidth
else{
jsweb8_cn_right.scrollLeft--
}
}
var MyMar4=setInterval(Marquee4,speed)
jsweb8_cn_right.onmouseover=function() {clearInterval(MyMar4)}
jsweb8_cn_right.onmouseout=function() {MyMar4=setInterval(Marquee4,speed)}
</script>
<script>
var speed=30//速度数值越大速度越慢
jsweb8_cn_right2.innerHTML=jsweb8_cn_right1.innerHTML
function Marquee4(){
if(jsweb8_cn_right.scrollLeft<=0)
jsweb8_cn_right.scrollLeft+=jsweb8_cn_right2.offsetWidth
else{
jsweb8_cn_right.scrollLeft--
}
}
var MyMar4=setInterval(Marquee4,speed)
jsweb8_cn_right.onmouseover=function() {clearInterval(MyMar4)}
jsweb8_cn_right.onmouseout=function() {MyMar4=setInterval(Marquee4,speed)}
</script> 展开
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td id="jsweb8_cn_right1" valign="top" align="center"><table cellpadding="2" cellspacing="0" border="0">
<tr align="center">
<td><img src="images/23S]$C3}PVST$[0{8$WJ3(G.jpg
"></td>
<td><img src="images/A0U`Z`BQ]NO~X`~FWF8WT)0.jpg
"></td>
<td><img src="images/QW([0}C_%X0]B6Z50GNR}WI.jpg "></td>
<td><img src=" images/}7RL]{Q_}BX[DTP~X5J8SQI.jpg"></td>
</tr>
</table></td>
<td id="jsweb8_cn_right2" valign="top"></td>
</tr>
</table>
</div>
</div>
<script>
var speed=30//速度数值越大速度越慢
jsweb8_cn_right2.innerHTML=jsweb8_cn_right1.innerHTML
function Marquee4(){
if(jsweb8_cn_right.scrollLeft<=0)
jsweb8_cn_right.scrollLeft+=jsweb8_cn_right2.offsetWidth
else{
jsweb8_cn_right.scrollLeft--
}
}
var MyMar4=setInterval(Marquee4,speed)
jsweb8_cn_right.onmouseover=function() {clearInterval(MyMar4)}
jsweb8_cn_right.onmouseout=function() {MyMar4=setInterval(Marquee4,speed)}
</script>
<script>
var speed=30//速度数值越大速度越慢
jsweb8_cn_right2.innerHTML=jsweb8_cn_right1.innerHTML
function Marquee4(){
if(jsweb8_cn_right.scrollLeft<=0)
jsweb8_cn_right.scrollLeft+=jsweb8_cn_right2.offsetWidth
else{
jsweb8_cn_right.scrollLeft--
}
}
var MyMar4=setInterval(Marquee4,speed)
jsweb8_cn_right.onmouseover=function() {clearInterval(MyMar4)}
jsweb8_cn_right.onmouseout=function() {MyMar4=setInterval(Marquee4,speed)}
</script> 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏50(财富值+成长值)
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询