if (this.bottomclip<parseInt(this.dropmenuobj.offsetHeight))
这一句在IE8中提示  错误: 缺少对象

解决方案 »

  1.   

    this.dropmenuobj
    this.bottomclip指的是什么?
      

  2.   

    offsetHeight不用parseInt转
    取的时候就是number型的了。
      

  3.   

    这里面只有三个对象啊。
    this
    this.dropmenuobj
    this.bottomclip
    依次测一下就可以了。
      

  4.   

    swipeeffect:function(){
    if (this.bottomclip<parseInt(this.dropmenuobj.offsetHeight)){
    this.bottomclip+=10+(this.bottomclip/10) 
    this.dropmenuobj.style.clip="rect(0 auto "+this.bottomclip+"px 0)"
    }
    else
    return
    this.swipetimer=setTimeout("cssdropdown.swipeeffect()", 10)
    }
      

  5.   

    我也不清楚,在上面有一句这样的 
    dropmenuobj: null, ie: document.all, firefox: document.getElementById&&!document.all, swipetimer: undefined, bottomclip:0,
      

  6.   

    http://bbs.blueidea.com/thread-3031387-1-1.html 这里有IE8正常。你看看http://it.chinawin.net/application/article-47d4.html
      

  7.   

    用7楼的提示
    Microsoft JScript 运行时错误: 缺少对象