
marqueesHeight=250;//滚动区域高度设定
stopscroll=false;
icefable1.scrollTop=0;
with(icefable1){
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=0; stoptime=0;
function init_srolltext(){
icefable2.innerHTML="";
icefable2.innerHTML+=icefable1.innerHTML;
icefable1.innerHTML=icefable2.innerHTML+icefable2.innerHTML;
setInterval("scrollUp()",20);
}
function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==100)//向上滚动高度设定
{
stoptime+=1;
currentTop-=1;
if(stoptime==150)//停顿时间设定
{
   currentTop=0;
   stoptime=0;
}
}
else {   
    preTop=icefable1.scrollTop;
    icefable1.scrollTop+=1;
    if(preTop==icefable1.scrollTop){
      icefable1.scrollTop=icefable2.offsetHeight-marqueesHeight;
      icefable1.scrollTop+=1;
    }
}
}
init_srolltext();