首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

再次,怎么让FIREFOX支持小弟我的菜单

2012-01-15 
再次,弱弱的问,如何让FIREFOX支持我的菜单,style!--.menutitle{width:150pxheight:25pxbackground-co

再次,弱弱的问,如何让FIREFOX支持我的菜单,

<style>
<!--

        .menutitle   {
                width:150px;
                height:   25px;
                background-color:#0000FF;
                border:0px   solid   #FFFFFF
        }

        .munubody   {
                background-color:   #0000FF;
               
        }

        .munuone   {
        color:#FFFFFF
                border:   0px   solid   #FFFFFF;
                width:100px;
height:25px;
                text-decoration:none
        }


a:link{color:#FFFFFF;text-decoration:none}
a:visited{color:#FFFFFF;text-decoration:none}
a:hover{color:yellow;text-decoration:none;}


-->
</style>
<div   style= "height:100%;width:100%;   background-color:#0000FF ">
<br>
<div   id= "menu "   style= "font-size:12px;color:#FFFFFF;width:   150px;   height:   25px;   border:   0px   solid   blue ">
<div   class= "menutitle "     >
<a     onclick= "openHtml( 'showstatus.cgi '); "   href= "# ">    
&nbsp;test1 </a> </div>
<div   class= "menutitle "     >
<a         onclick= "showMenu( 'munubody1 ');     openHtml( 'test2.htm '); "   id= "menutitle1 "   href= "# "   >
+test2 </a> </div>
<div   class= "munubody "   id= "munubody1 "   style= "display:none ">

<div   class= "munuone "   >  
<a   onclick= "return   openHtml( 'test3 '); "   href= "# ">
<span   style= "text-decoration:   none;font-size:12px "> &nbsp;&nbsp;&nbsp;&nbsp;test3 </span> </a> </div>

              </div>



<div   class= "menutitle "   >
<a       onclick= "   showMenu( 'munubody2 ');   openHtml( 'test4.htm '); " "   id= "menutitle2 "   href= "# ">  
+test4 </a> </div>
<div   class= "munubody "   id= "munubody2 "   style= "display:none   "   >
<div   class= "munuone "   style= "width:   149px; ">
<a     onclick= "return   openHtml( 'test5.htm '); "   href= "# "> <span   style= "text-decoration:   none "> &nbsp;&nbsp;&nbsp;&nbsp;test5 </span> </a> </div>
<div   class= "munuone ">


<a     onclick= "return   openHtml( 'changepwd.htm '); "   href= "# "> <span   style= "text-decoration:   none "> &nbsp;&nbsp;&nbsp;&nbsp;test6 </span>   </a> </div>

<div   class= "munuone ">
<a     onclick= "return   openHtml( 'cversion.htm '); "   href= "# "> <span   style= "text-decoration:   none "> &nbsp;&nbsp;&nbsp;&nbsp;test7 </span>   </a> </div>
</div>

</div>
</div>

<script   type= "text/javascript ">
        function   showMenu(obj)   {
                var   menu   =   document.getElementById(obj);
                var   show=0;
                for   (var   i   =   1;   i   <=   2;   i++)   {
                        var   menuHidden   =   document.getElementById( 'munubody '   +   i);
                        if   (menuHidden   !=   menu)   {
                                menuHidden.style.display   =   'none ';
                        }else{
                                show=i;
                        }
                    var   title   =   document.getElementById( "menutitle "   +   i);
                    title.innerHTML   =   "+ "   +   title.innerHTML.substring(1,   title.innerHTML.length);
                }
              var   showMenu=document.getElementById( 'menutitle '+show);
                if   (menu.style.display   ==   'none ')   {
                        menu.style.display   =   'inline ';
                        showMenu.innerHTML= "- "+showMenu.innerHTML.substring(1,showMenu.innerHTML.length);
                }   else   {
                        menu.style.display   =   'none ';
                        showMenu.innerHTML= "+ "+showMenu.innerHTML.substring(1,showMenu.innerHTML.length);
                }
        }
        function   openHtml(obj)   {
                parent.body_Html.location.href   =   obj;


        }
</script>


[解决办法]
问题如题,在IE中能够运行,但是,用firefox就不行,请各位牛人指点。

热点排行