首页新闻找找看学习计划

js向上滚动不兼容IE的问题

0
悬赏园豆:5 [已关闭问题] 关闭于 2016-03-02 13:59

<table background="listbg1.png" cellspacing="0" cellpadding="0">
<tr>
<td>
<div id=jsweb2_top style=overflow:hidden;width:735px;height:200px;>
<div id=jsweb2_top1>
<%=Application(strCacheFileName)%>
</div>
<div id=jsweb2_top2></div>
</div>
<script>
var speed=30;
var taba=document.getElementById("jsweb2_top");
var taba1=document.getElementById("jsweb2_top1");
var taba2=document.getElementById("jsweb2_top2");
taba2.innerHTML=taba1.innerHTML;
function Marqueea(){
if(taba2.offsetHeight-taba.scrollTop<=0)
taba.scrollTop-=taba1.offsetHeight
else{
taba.scrollTop++;
}
}
var MyMara=setInterval(Marqueea,speed);
taba.onmouseover=function() {clearInterval(MyMara)};
taba.onmouseout=function() {MyMara=setInterval(Marqueea,speed)};
</script>
</td>
</tr>
</table>

Dawdle的主页 Dawdle | 初学一级 | 园豆:186
提问于:2016-03-02 12:32
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册