我做的网站,在打开网站时可以正常访问浏览,但是浏览时,IE浏览器左下角会出现'null'为空或不是对象的错误,请大家帮我分析一下,是哪里有错误。截图如下:
部分代码如下:
<script>
function myGod(id,w,n){
var box=document.getElementById(id),can=true,w=w||1500,fq=fq||10,n=n==-1?-1:1;
box.innerHTML+=box.innerHTML;
box.onmouseover=function(){can=false};
box.onmouseout=function(){can=true};
var max=parseInt(box.scrollHeight/2);
new function (){
var stop=box.scrollTop%24==0&&!can;
if(!stop){
var set=n>0?[max,0]:[0,max];
box.scrollTop==set[0]?box.scrollTop=set[1]:box.scrollTop+=n;
};
setTimeout(arguments.callee,box.scrollTop%24?fq:w);
};
};
myGod('div4',1000);
</script>