返回列表 发帖
试了再说!

TOP

一个大问题 !
在访问一些网页,如news.sina.com.cn时会出现
a Runtime Error has occurred
Do you wish to Debug?
Line:14
Error:Object doesn't support this property or method
如果进调试器的话,就是下面的了。停在----->>>>>>  myright.style.top=bdy.scrollTop+bdy.offsetHeight-imgheight_close;
但是用IE没有问题 。好几个网站都有这个问题 。

var imgheight_close
document.ns = navigator.appName == "Microsoft Internet Explorer"
var bdy = (document.documentElement && document.documentElement.clientWidth)?document.documentElement:document.body;

window.screen.width>800 ? imgheight_close=120:imgheight_close=120
function myload()
{
----->>>>>>  myright.style.top=bdy.scrollTop+bdy.offsetHeight-imgheight_close;
myright.style.left=bdy.offsetWidth-120;
mymove();
}
function mymove()
{
myright.style.top=bdy.scrollTop+bdy.offsetHeight-imgheight_close;
myright.style.left=bdy.scrollLeft+bdy.offsetWidth-120;
setTimeout("mymove();",50)
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)

function close_float_right(){
        myright.style.visibility='hidden';
}

if(document.ns){
document.write("<div id=myright style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'>\
<style>\
A.closefloat:link,A.refloat:visited {text-decoration:none;color:#000000;font-size:12px}\
A.closefloat:active,A.refloat:hover {text-decoration:underline;color:#0000FF;font-size:12px}\
</style>\
<table border=0 cellpadding=0 cellspacing=0><tr><td>");

if(ad_float_right_type!="swf")
        document.write("<a href='" + ad_float_right_url + "' target = '_blank'><img src='" + ad_float_right_src + "' WIDTH=80 HEIGHT=80  border = 0></a>");
else{
        document.write("<div id='ad_float_right_div'></div>");
        var objFlash = new sinaFlash(ad_float_right_src, "ad_float_right", "80", "80", "7", "#ffffff");
        objFlash.addParam("quality", "high");
        objFlash.addParam("wmode", "opaque");
        objFlash.write("ad_float_right_div");
}

document.write("</td></tr><tr><td width=80 height=20 align=right><a href='javascript:close_float_right();void(0);'><b><font color=#ff0000>关闭</font></b></a></td></tr>\
</table>\
</div>");

myload()

TOP

版本2.0.0.5和2.0.0.6都有这个问题 !

原帖由 catfox 于 2006-10-14 20:03 发表
一个大问题 !
在访问一些网页,如news.sina.com.cn时会出现
a Runtime Error has occurred
Do you wish to Debug?
Line:14
Error:Object doesn't support this property or method
如果进调试器的话,就 ...

TOP

下来试试
虽然不上那些网
更新就是进步
呵呵
谢谢老大

TOP

严重期待正式版……
世界,从未离去
只是渐行渐远
哪天,希望你重生

TOP

感觉1.33的图标好看..  等2.0版  

TOP

返回列表