// JavaScript Document
marqueesHeight=240//189;滚动的高度 
delaytime = 200 //停留时间 
scrollupRadio = 1 //每段显示中的文字向上滚动速度... 
stopscroll=false; 
icefable1.scrollTop=0; 
//设置层的属性 
with(icefable1){  
//宽度0 
//  style.width=140; 
   //高度为设定的滚动高度 
  style.height=marqueesHeight; 
  //溢出不显示.. 
  style.overflowX="visible"; 
  style.overflowY="hidden"; 
  //不允许换行.. 
  noWrap= false //true; 
  onmouseover=new Function("stopscroll=true"); 
  onmouseout=new Function("stopscroll=false"); 
} 
//将层中的数据输出两次，由于限制了高度，所以不会显示出来； 
  icefable1.innerHTML+=icefable1.innerHTML+=icefable1.innerHTML+=icefable1.innerHTML+=icefable1.innerHTML+=icefable1.innerHTML; 
function init_srolltext(){  
  icefable1.scrollTop= 0; 
  setInterval("scrollUp()",scrollupRadio); //滚动速度...100 
} 
init_srolltext(); 
// ?? ; 当前top ,停留时间 
preTop=0; currentTop=0; stoptime=0; 
function scrollUp(){  
  if(stopscroll==true) return; 
  currentTop+=1; 
  if(currentTop==241) 
  {  
   stoptime+=1; 
   currentTop-=1; 
   if(stoptime==delaytime)  
   {  
    currentTop=0; 
    stoptime=0; 
    } 
  } 
  else {     
   preTop=icefable1.scrollTop; 
   icefable1.scrollTop+=1; 
   if(preTop==icefable1.scrollTop){  
     icefable1.scrollTop=0 //189; 
     icefable1.scrollTop+=1; 
   } 
  } 
}