위로
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; 현재Top=0;
함수 init(){
templayer.innerHTML="";
while(templayer.offsetHeight
}
윤곽. innerHTML=templayer.innerHTML templayer.innerHTML;
setInterval("scrollUp()",100);
}
document.body.onload=init;
function scrollUp(){
if(stopscroll==true) return;
preTop=marquees.scrollTop;
marquees.scrollTop =1;
if(preTop==marquees.scrollTop) {
marquees.scrollTop=templayer.offsetHeight-marqueesHeight;
marquees.scrollTop =1;
}
}
marqueesWidth=200;
with(marquees){
style.height=0;
style.width=marqueesWidth;
style.overflowX="hidden";
style.overflowY="visible";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
preLeft=0; 현재왼쪽=0; 중지스크롤=false;
함수 init(){
templayer.innerHTML="";
while(templayer.offsetWidth
}
marquees. innerHTML =templayer.innerHTML;
setInterval("scrollLeft()",100);
}init();
함수 scrollLeft(){
if(stopscroll==true) return;
preLeft=marquees.scrollLeft;
marquees.scrollLeft =1;
if(preLeft==marquees.scrollLeft) {
marquees.scrollLeft=templayer.offsetWidth-marqueesWidth 1;
}
}