<script language="javascript">
<!--
marqueesHeight=75;
stopscroll=false;
with(marquees){
noWrap=true;
style.width=600;
style.height=marqueesHeight;
style.overflowY="hidden";
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
document.write('<div id="templayer" style="position:absolute;z-index:1;visibility:hidden"></div>');
function init(){ //
while(templayer.offsetHeight<marqueesHeight){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML=templayer.innerHTML+templayer.innerHTML;
setInterval("scrollUp()",30);
}
document.body.onload=init;
preTop=0;
function scrollUp()
{ if(stopscroll==true)
return;
preTop=marquees.scrollTop;
marquees.scrollTop+=1; //当然不仅如此,同样还要向下滚动一个像素(+1):
if(preTop==marquees.scrollTop){
marquees.scrollTop=templayer.offsetHeight-marqueesHeight+1;
}
}
-->
</script>
这是一段上下滚动的,如果我想给他改成左右滚动的话,应该在哪修改呀?
我看不大懂,所以想大家帮忙!
谢谢!