怎么能让我的滚动信息滚动到某一位置停顿一段时间呢
我知道下面这一段与停顿有关,就是不知道在我的代中怎么用,这个函数用什么事件触发呢?大家帮我看看撒!
marqueesHeight=21;
stopscroll=false;
toptable.scrollTop=0;
with(toptable){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}preTop=0; currentTop=21; stoptime=0;
toptable.innerHTML+=toptable.innerHTML;
function init_srolltext(){
toptable.scrollTop=0;
setInterval("scrollUp()",40);
}init_srolltext();
function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==22)
{stoptime+=1;
currentTop-=1;
if(stoptime==80)
{currentTop=0;
stoptime=0;
}}else {
preTop=toptable.scrollTop;
toptable.scrollTop+=1;
if(preTop==toptable.scrollTop){
toptable.scrollTop=42;
toptable.scrollTop+=1;
}}}