http://blog.csdn.net/majianan/archive/2008/12/07/3461974.aspx

解决方案 »

  1.   

    node.onmouseover=function() 
    {this.className+=" over";} 
    node.onmouseout=function() 
    {this.className=this.className.replace(" over", "");} 
    } 高手,这段改CSS类名起什么作用啊。
    我看不明白,请指教。
      

  2.   

    就是显示与隐藏啊
    this.className+=" over"; // 使用li.over ul { display: block; } ,即显示
    this.className=this.className.replace(" over", ""); // 使用li ul { position: absolute; left: 149px; top: 0; display: none; } ,即隐藏