大学的读书笔记300:滚动字效的问题.``~急~~!!!

来源:百度文库 编辑:高考问答 时间:2024/05/01 01:23:34
<SCRIPT> marqueetable = document.all.vip;scrollheight=19;scrollline=4;scrolltimeout = 60;scrollstoptimes = 50;marqueetable.scrollTop=0; stopscroll1=false; startmarqueetop=0; offsettop=scrollheight; marqueestoptime=0; marqueetable.innerHTML+=marqueetable.innerHTML; with(marqueetable){ style.width=280; style.height=scrollheight; style.overflowX="hidden"; style.overflowY="hidden"; noWrap=true; onmouseover=new Function("stopscroll1=true"); onmouseout=new Function("stopscroll1=false");}function setmarqueetime(){ marqueetable.scrollTop=0; setInterval("marqueeup()",scrolltimeout);}function marqueeup(){ if(stopscroll1==true) return; offsettop+=1; if(offsettop==scrollheight+1) { marqueestoptime+=1; offsettop-=1; if(marqueestoptime==scrollstoptimes) { offsettop=0; marqueestoptime=0; } } else { startmarqueetop=marqueetable.scrollTop; marqueetable.scrollTop+=1; if(startmarqueetop==marqueetable.scrollTop) { marqueetable.scrollTop=scrollheight*(scrollline-1); marqueetable.scrollTop+=1; } } } setmarqueetime(); </SCRIPT>

不知道这上面怎么调整,大侠们帮我看看,我把他弄到网页里,滚动几次文字就对不齐了~~~
里面的设置怎么调,麻烦解释一下.~~谢谢啦..

如果找不到合适的代码的话就做个flash!
用action语句也可以实现的!

同意楼上