<div id="icefable1">
内容...........
</div>
<SCRIPT>
marqueesHeight=140;
stopscroll=false;
with(icefable1){
style.width=380;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
preTop=0; currentTop=80; stoptime=0;
icefable1.innerHTML+=icefable1.innerHTML;
function init_srolltext(){
icefable1.scrollTop=0;
setInterval("scrollUp()",30);
}
init_srolltext();
function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==118)
{
stoptime+=1;
currentTop-=1;
if(stoptime==100)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=icefable1.scrollTop;
icefable1.scrollTop+=1;
if(preTop==icefable1.scrollTop){
icefable1.scrollTop=110;
icefable1.scrollTop+=10;
}
}
}
</SCRIPT>