IE9运行这代码就未响应,然后页面崩溃,其他浏览器没事
这代码是DIY到门户页面上的 请大家看看为什么 <div id="scrollobj" style="white-space:nowrap;overflow:hidden;width:940px;" VALIGN="middle";><span><IMG src=" http://www.zhibaoku.com/images/huiyuan/1.jpg" border=0><IMG src=" http://www.zhibaoku.com/images/huiyuan/2.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/3.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/4.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/5.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/6.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/7.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/8.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/9.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/10.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/11.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/12.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/13.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/14.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/15.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/16.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/17.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/18.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/19.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/20.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/21.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/22.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/23.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/24.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/25.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/26.jpg" border=0>
<IMG src=" http://www.zhibaoku.com/images/huiyuan/27.jpg" border=0></span></div>
<script language="javascript" type="text/javascript">
function scroll(obj){
var tmp=(obj.scrollLeft)++;
//当滚动条到达右边顶端时
if(obj.scrollLeft==tmp) obj.innerHTML+=obj.innerHTML;
//当滚动条滚动了初始内容的宽度时滚动条回到最左端
if(obj.scrollLeft>=obj.firstChild.offsetWidth) obj.scrollLeft=0;
}
setInterval("scroll(document.getElementById('scrollobj'))",1);
</script> |