上
marqueesHeight=200;
stopscroll=false;
with(marquees){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
document.write('
preTop=0; currentTop=0;
function init(){
templayer.innerHTML="";
while(templayer.offsetHeight
}
マーキー。 innerHTML=templayer.innerHTML templayer.innerHTML;
setInterval("scrollUp()",100);
}
document.body.onload=init;
functionscrollUp(){
if(stopscroll==true) return;
preTop=marquees.scrollTop;
marquees.scrollTop =1;
if(preTop==marquees.scrollTop) {
marquees.scrollTop=templayer.offsetHeight-marqueesHeight;
marquees.scrollTop =1;
}
}