var scrollContent;
scrollContent='
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
+'
'
document.write(''
+scrollContent
+'
'
+'');
marqueesHeight=172; //显示大小
rollHeight=173; //滚动幅度
rollInterval=10; //滚动速度
MaxStoptime=180; //停顿时间
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()",rollInterval);
}
function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==rollHeight)
{
stoptime+=1;
currentTop-=1;
if(stoptime==MaxStoptime)
{
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();