﻿marqueesHeight=18;
stopscroll=false;
with(turnup)
{
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;
turnup.innerHTML+=turnup.innerHTML;
function init_srolltext()
{
turnup.scrollTop=0;
setInterval("scrollUp()",1);
}init_srolltext();
function scrollUp()
{
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==marqueesHeight+1)
{
stoptime+=1;
currentTop-=1;
if(stoptime==300)
{
currentTop=0;
stoptime=0;
}
}else{
preTop=turnup.scrollTop;
turnup.scrollTop+=1;
if(preTop==turnup.scrollTop)
{
turnup.scrollTop=marqueesHeight;
turnup.scrollTop+=1;
}
}
}init_srolltext();