<div id="marquees">
<a href="#"><img src="images/index_52.jpg" width="117" height="42" /></a><br><br>
<a href="#"><img src="images/index_54.jpg" width="117" height="42" /></a><br><br>
<a href="#"><img src="images/index_56.jpg" width="117" height="42" /></a><br><br>
<a href="#"><img src="images/index_58.jpg" width="123" height="42" /></a><br><br>
</div>
<script language="JavaScript">
marqueesHeight=45;
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('<div id="templayer" style="position:absolute;z-index:1;visibility:hidden"></div>');
preTop=0; currentTop=0;
function init(){
templayer.innerHTML="";
while(templayer.offsetHeight<marqueesHeight){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML=templayer.innerHTML+templayer.innerHTML;
setInterval("scrollUp()",50);
}
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;
}
}
</script>
现在是竖排滚动我应该怎么改