有问题请教,IE8.0"网页上有错误"
我程序是用asp写的,用IE7浏览网站很正常,改用IE8就出现"网页上有错误",如下图:js代码如下:
<!-- Beginning of JavaScript Code -------------------
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
if (object != "[object]"){ setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
return;
}
clearTimeout(nereidFadeTimers[object.sourceIndex]);
diff = destOp-object.filters.alpha.opacity;
direction = 1;
if (object.filters.alpha.opacity > destOp){
direction = -1;
}
delta=Math.min(direction*diff,delta);
object.filters.alpha.opacity+=direction*delta;
if (object.filters.alpha.opacity != destOp){
nereidFadeObjects[object.sourceIndex]=object;
nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
}
}
// -- End of JavaScript Code -->
鼠标移到菜单栏就出现错误,估计是这JS代码有问题,请大家帮帮忙。
[ 本帖最后由 qq792587976 于 2010-9-7 22:21 编辑 ]