大家帮我看看这一段:
<td valign="top"><div id="Layer1" style="position:absolute; width:200px; height:350px; z-index:1; left: 793px; top: 345px; overflow: hidden; background-color: #9EC3F8; layer-background-color: #9EC3F8; border: 1px none #000000;" class="ablack">
<div id="marquees"> <a href="#">链接1</a>
<br class="style1">............</a>
<br> <a href="#">链接2</a>
<br class="style1">............</a>
<br> <a href="#">链接3</a>
<br class="style1">............</a>
<br> <a href="#">链接4</a>
<br class="style1">............</a>
<br>
</div>
<script language="javascript">
marqueesHeight=300;
stopscroll=false;
with(marquees){
noWrap=true;
style.width=0;
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()",80);
}
document.body.onload=init;
preTop=0;
function scrollUp(){
if(stopscroll==true) return;
preTop=marquees.scrollTop;
marquees.scrollTop+=1;
if(preTop==marquees.scrollTop){
marquees.scrollTop=templayer.offsetHeight-marqueesHeight+1;
}
}
-->
</script></div>
为什么我在本机测试可以滚动,但上传到服务器就不行。