marqueesHeight=20;//显示高度
stopscroll=false;
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=marqueesHeight; stoptime=0;
  icefable1.innerHTML+=icefable1.innerHTML;
 
function init_srolltext(){
  icefable1.scrollTop=0;
  setInterval("scrollUp()",40);//滚动速度
}init_srolltext();
function scrollUp(){
  if(stopscroll==true) return;
  currentTop+=1;
  if(currentTop==marqueesHeight+1)
  {
   stoptime+=1;
   currentTop-=1;
   if(stoptime==80)//停留时间
   {
   currentTop=0;
   stoptime=0;  
   }
  }
  else {  
  preTop=icefable1.scrollTop;
  icefable1.scrollTop+=1;
  if(preTop==icefable1.scrollTop){
    icefable1.scrollTop=marqueesHeight;
    icefable1.scrollTop+=1;
   
  }
  }
}
init_srolltext();
