请帮我看一下javascript代码,在IE6下可以,IE7和Firefox不行

来源:百度知道 编辑:UC知道 时间:2024/06/17 23:00:35
就是这个页面http://www.golden-book.com/faq/help/help.shtml

<SCRIPT language=javascript>
function menuShow(obj,maxh,obj2)
{
if(obj.style.pixelHeight<maxh)
{
obj.style.pixelHeight+=maxh/5;
obj.filters.alpha.opacity+=20;
if(obj.style.pixelHeight==maxh/5)
obj.style.display='block';
obj2.className="menu_title2";
myObj=obj;
myMaxh=maxh;
myObj2=obj2;
setTimeout('menuShow(myObj,myMaxh,myObj2)','5');
}
}
function menuHide(obj,maxh,obj2)
{
if(obj.style.pixelHeight>0)
{
if(obj.style.pixelHeight==maxh/1)
obj.style.display='none';
obj.style.pixelHeight-=maxh/1;
obj.filters.alpha.opacity-=5;
obj2.className="menu_title";
myObj=obj;
myMaxh=maxh
myObj2=obj2;<

你应该把html文件一并贴出来。

  您好,感谢您对火狐的支持

  您需要的这个效果,使用JQuery可以轻松实现,您可以百度下,有个toggle函数(这里我只说关键字了),它可以帮助你实现动画效果(缓慢的收缩)
  您可以在火狐官方网站下载火狐浏览器,在火狐社区了解更多内容。希望我的回答对您有所帮助,如有疑问,欢迎继续在本平台咨询。