我在(http://download.csdn.net/detail/gmzyyzgh/3007916)下载的“新浪网图片展示幻灯片CSS代码”,
在IE6下运行时提示“载入错误!”,IE7下运行时无法显示。 能不能给指导一下。联系:[email protected],多谢!

解决方案 »

  1.   

    看了下,在ie6、7、8 ff chrome 均没错,可以正常运行
      

  2.   

    我是用Ietester测得
    错误信息Inernet Explorer Script ErrorLine:239
    Char:4
    Error:找不到成员
    Code:0。。
      

  3.   

    遇到这种错误,考验人整体的技术储备之外还有就是耐心。
    其实一步一步找还是很容易找到容易的。
    1. 在html里边ctrl + f 查找 “载入错误”,很容易找到,177行,而177行上面是个try catch,那肯定是try里边报错,在try里边一步一步写alert(1);看那一行不报错,很容易找到:
    epidiascope.initialize();//初始化
    中出错了。
    2. 检查:epidiascope.initialize();//初始化,
    在initialize方法中,很容易找到 263行,this.select(0);报错。
    3. 在this.select(0)中很容易找到:
    320,324行注释后可运行:
    就是这两句:
    // this.ImgObj1.filters[0].Apply();
    // this.ImgObj1.filters[0].Play();
    看他的方法名,估计注释后不能播放了。
      

  4.   

    腾讯新闻用的跟这个超不多,在IE6下,不报错但,图片显示也是问题http://news.qq.com/a/20120428/000201.htm#p=6
    新浪
    http://slide.sports.sina.com.cn/g/slide_2_730_26706.html以上是新浪的页面,在IE6下不能正常显示各位高人试一下就知道了
      

  5.   

    下一步先看看apply,play方法有错没,经检查没有错误,
    紧跟着我们在google里边查查后发现ie6不支持filters,
    错误终于浮出水面,
    然后简单了,根据特性做判断:if (this.ImgObj1.filters) {
        this.ImgObj1.filters[0].Apply();
        this.ImgObj1.filters[0].Play();
    }但这样还是报错,那只能换个特性了,if (window.XMLHttpRequest) {            
        this.ImgObj1.filters[0].Apply();
        this.ImgObj1.filters[0].Play();
    }致此,这个错误才得以解决。
    虽然化了一个多小时,但帮助你的同时,也锻炼了我的耐性。双赢了~!
      

  6.   

    ....
    if(sina.isIE){
    this.ImgObj1.filters[0].Apply(); 
    this.ImgObj1.filters[0].Apply();
    this.ImgObj1.lowsrc = this.filmstrips[num].lowsrc;
    this.ImgObj1.src = this.filmstrips[num].src;
    this.ImgObj1.filters[0].Play(); 
    }
    ....
    具体咋改?this.ImgObj1.filters[0].Apply();
    this.ImgObj1.filters[0].Play();
      

  7.   

    this.ImgObj1.filters[0].Apply();
    this.ImgObj1.filters[0].Play();
    我把这两句注释掉了,Ie6下可以正常了
      

  8.   

    if (window.XMLHttpRequest) {                       
        this.ImgObj1.filters[0].Apply();
        this.ImgObj1.filters[0].Play();
    }
      

  9.   

    顶5楼。
    你可以用alert()看看到底是在哪一行出错了,然后再去改。还有很多是因为浏览器兼容问题。