哪位大虾帮忙翻译一下 15
<SCRIPT>varspeed3=25//速度数值越大速度越慢demo2.innerHTML=demo1.innerHTMLfunctionMarquee(){if(d...
<SCRIPT>
var speed3=25//速度数值越大速度越慢
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed3)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed3)}
</SCRIPT> 展开
var speed3=25//速度数值越大速度越慢
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed3)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed3)}
</SCRIPT> 展开
1个回答
展开全部
脚本>
无功speed3 = 25 / /速度数值越大速度越慢
demo2.innerhtml = demo1.innerhtml
功能选取框( ) (
如果( demo2.offsetwidth - demo.scrollleft < = 0 )
demo.scrollleft - = demo1.offsetwidth
否则(
demo.scrollleft +
)
)
无功mymar = setinterval (选取框, speed3 )
demo.onmouseover =函数( ) ( clearinterval ( mymar ) )
demo.onmouseout =函数( ) ( mymar = setinterval (选取框, speed3 ) )
无功speed3 = 25 / /速度数值越大速度越慢
demo2.innerhtml = demo1.innerhtml
功能选取框( ) (
如果( demo2.offsetwidth - demo.scrollleft < = 0 )
demo.scrollleft - = demo1.offsetwidth
否则(
demo.scrollleft +
)
)
无功mymar = setinterval (选取框, speed3 )
demo.onmouseover =函数( ) ( clearinterval ( mymar ) )
demo.onmouseout =函数( ) ( mymar = setinterval (选取框, speed3 ) )
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询