// 代码 
<SCRIPT language=JavaScript>
<!--
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</SCRIPT>
<DIV align=center>
<table border="0" width="760" bgcolor="#000000">
  <tr >
    <td width="234"><A   href="ghgz.htm" 
                  onmouseover="MM_showHideLayers('xia1','','show','xia2','','hide','xia3','','hide','xia4','','hide','xia5','','hide', 'chip1','','show' )" onmouseout="MM_showHideLayers('xia1','','hide','xia2','','hide','xia3','','hide','xia4','','hide','xia5','','hide', 'chip1','','hide' )"  target=_blank><font face="华文行楷" size="3" color="#FFFF00">工会工作</font>
      </a></td>
  </tr>
</table> 
</DIV>
<DIV id=xia1 
            style="HEIGHT: 81px; LEFT: 100px; POSITION: absolute; TOP: 129px; VISIBILITY: hidden; WIDTH: 100px; Z-INDEX: 2"            >
            <TABLE align=left  background="bgtop.gif"  border=0 borderColor=#cccccc 
            cellPadding=1 cellSpacing=1 height=61 width="175"
            bgcolor="#000000"
            >
              <TBODY>
              <TR>
                <TD >
                  <DIV align=left><A 
                  href="2002nfghgzzj.htm" 
                  target=_blank><font face="隶书" color="#CCFFFF">2002年分工会工作总结</font></A></DIV></TD></TR>
              <TR>
                <TD >
                  <DIV align=left><A 
                  href="2003ngsghjh.htm" 
                  target=_blank><FONT color=#CCFFFF face="隶书">2003年公司工会计划</FONT></A></DIV></TD></TR>
             
             </TBODY>
              
              </TABLE>
              
</DIV>

解决方案 »

  1.   

    <A   href="ghgz.htm" onmouseover="MM_showHideLayers('xia1','','show','xia2','','hide','xia3','','hide','xia4','','hide','xia5','','hide', 'chip1','','show' )" onmouseout="MM_showHideLayers('xia1','','hide','xia2','','hide','xia3','','hide','xia4','','hide','xia5','','hide', 'chip1','','hide' )"  target=_blank><font face="华文行楷" size="3" color="#FFFF00">工会工作</font></A>
      

  2.   

    <SCRIPT language=JavaScript>
    <!--
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    // -->function MM_findObj(n, d) { //v4.0
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && document.getElementById) x=document.getElementById(n); return x;
    }function MM_showHideLayers() { //v3.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
        if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
        obj.visibility=v; }
    }
    //-->
    </SCRIPT>
    <table border="0" width="760" background="bgtop.gif">
      <tr>
        <td  width= 310> </td>
        <td width="443">    
               
      </tr>    
    </table> 
    <DIV align=center>
    <table border="0" width="760" background="bgtop.gif">
      <tr>
        <td width="11%"><a href="index.asp"> <font face="华文新魏" size="3" color="#FFFF00">新闻首页</font></a></td>
        <td width="11%">
              <A   href="zzjg.htm"  target=_blank> 
              <font face="华文行楷" size="3" color="#FFFF00">组织机构</font>           
                </A>
        </td>
        <td width="11%"><A   href="ghgz.htm" 
                      onmouseover="MM_showHideLayers('xia1','','show','xia2','','hide','xia3','','hide',
                      'xia4','','hide','xia5','','hide', 'chip1','','show' )" 
                      
                     
                      
                    target=_blank><font face="华文行楷" size="3" color="#FFFF00">工会工作</font>
          </a></td>
        <td width="11%">
                  <A   href="ldjs.htm" 
                      onmouseover="MM_showHideLayers('xia1','','hide','xia2','','show','xia3','','hide',
                      'xia4','','hide','xia5','','hide', 'chip1','','show' )"                                  
     
                    target=_blank>
    <font face="华文行楷" size="3" color="#FFFF00">劳动竞赛</font>
              </a>
        </td>
        <td width="11%"><A   href="qccg.htm" 
                      onmouseover="MM_showHideLayers('xia1','','hide','xia2','','hide','xia3','','show',
                      'xia4','','hide','xia5','','hide', 'chip1','','show' )" 
                      
                    
                      
                    target=_blank><font face="华文新魏" color="#FFFF00" size="3">Q       
          C </font><font face="华文行楷" color="#FFFF00" size="3">成果</font></a>      
        </td>
        <td width="11%"><a href= "note/index.asp" target=_blank>          
              <font face="华文行楷" size="3" color="#FFFF00">合理建议</font>
              </a>
        </td>
        <td width="11%"><A   href="zgzj.htm" 
                      onmouseover="MM_showHideLayers('xia1','','hide','xia2','','hide','xia3','','hide',
                      'xia4','','show','xia5','','hide', 'chip1','','show' )" 
          
                    
                    target=_blank><font face="华文行楷" size="3" color="#FFFF00">职工之家</font></a></td>
                    
                    
        <td width="12%"><A   href="nzgfc.htm" 
                      onmouseover="MM_showHideLayers('xia1','','hide','xia2','','hide','xia3','','hide',
                      'xia4','','hide','xia5','','show', 'chip1','','show' )" 
                      
                      
                    target=_blank>
              <font face="华文行楷" size="3" color="#FFFF00">女职工风采</font></a>
        </td>
        <td width="11%">
         <a href="xjyg" target=_blank>
         <font face="华文行楷" size="3" color="#FFFF00">先进员工</font>
          </a>
          </td>
      </tr>
    </table> 
    </DIV>
      

  3.   

    <DIV id=xia1 
                style="HEIGHT: 81px; LEFT: 100px; POSITION: absolute; TOP: 129px; VISIBILITY: hidden; WIDTH: 100px; Z-INDEX: 2">
                <TABLE align=left  background="bgtop.gif"  border=0 borderColor=#cccccc 
                cellPadding=1 cellSpacing=1 height=61 width="175">
                  <TBODY>
                  <TR>
                    <TD >
                      <DIV align=left><A 
                      href="2002nfghgzzj.htm" 
                      target=_blank><font face="隶书" color="#CCFFFF">2002年分工会工作总结</font></A></DIV></TD></TR>
                  <TR>
                    <TD >
                      <DIV align=left><A 
                      href="2003ngsghjh.htm" 
                      target=_blank><FONT color=#CCFFFF face="隶书">2003年公司工会计划</FONT></A></DIV></TD></TR>
                 
                 </TBODY>
                  
                  </TABLE>
                  
    </DIV>
    <DIV id=xia2 
                style="HEIGHT: 81px; LEFT: 180px; POSITION: absolute; TOP: 129px; VISIBILITY: hidden; WIDTH: 100px; Z-INDEX: 2">
                <TABLE align=left  background="bgtop.gif" border=0 borderColor=#cccccc 
                cellPadding=1 cellSpacing=1 height=61 width="205">
                  <TBODY>
                  <TR>
                    <TD>
                      <DIV align=left><A 
                      href="2002nfghgzzj.htm" 
                      target=_blank><font face="隶书" color="#CCFFFF">2002年调度各专业竞赛总结</font></A></DIV></TD></TR>
                  <TR>
                    <TD >
                      <DIV align=left><A 
                      href="2003ngsghjh.htm" 
                      target=_blank><FONT color=#CCFFFF face="隶书">2002年调度各专业竞赛先进名单</FONT></A></DIV></TD></TR>
        <TR>
                    <TD >
                      <DIV align=left><A 
                      href="2002nfghgzzj.htm" 
                      target=_blank><font face="隶书" color="#CCFFFF">2002年调度千次操作无差错竞赛总结</font></A></DIV></TD></TR>
                  <TR>
                    <TD >
                      <DIV align=left><A 
                      href="2003ngsghjh.htm" 
                      target=_blank><FONT color=#CCFFFF face="隶书">2002年光纤熔接竞赛总结</FONT></A></DIV></TD></TR>
       </TBODY>
        </TABLE>  
    </DIV>
    <DIV id=xia3 
                style="height: 81; left: 347; position: absolute; top: 129; visibility: hidden; width: 103; z-index: 2">
                <TABLE align=left  background="bgtop.gif" border=0 borderColor=#cccccc 
                cellPadding=1 cellSpacing=1 height=61 width="110">
                  <TBODY>
                  <TR>
                    <TD>
                      <DIV align=left><A 
                      href="yxcg1.htm" 
                      target=_blank><font face="隶书" color="#CCFFFF">优秀成果(1)</font></A></DIV></TD></TR>
                  <TR>
                    <TD >
                      <DIV align=left><A 
                      href="yxcg2.htm" 
                      target=_blank><FONT color=#CCFFFF face="隶书">优秀成果(2)</FONT></A></DIV></TD></TR>
        <TR>
                    <TD>
                      <DIV align=left><A 
                      href="2003nqckt.htm" 
                      target=_blank><font face="隶书" color="#CCFFFF">2003年QC课题</font></A></DIV></TD></TR>
                  
       </TBODY>
        </TABLE>  
    </DIV>
    <DIV id=xia4 
                style="HEIGHT: 81px; LEFT: 520px; POSITION: absolute; TOP: 129px; VISIBILITY: hidden; WIDTH: 100px; Z-INDEX: 2">
                <TABLE align=left  background="bgtop.gif" border=0 borderColor=#cccccc 
                cellPadding=1 cellSpacing=1 height=61 width="75">
                  <TBODY>
                  <TR>
                    <TD>
                      <DIV align=left><A 
                      href="ysyd.htm" 
                      target=_blank><font face="隶书" color="#CCFFFF">影视园地</font></A></DIV></TD></TR>
                  <TR>
                    <TD>
                      <DIV align=left><A 
                      href="lhhd.htm" 
                      target=_blank><FONT color=#CCFFFF face="隶书">联欢活动</FONT></A></DIV></TD></TR>
        <TR>
                    <TD >
                      <DIV align=left><A 
                      href="ffxq.htm" 
                      target=_blank><font face="隶书" color="#CCFFFF">放飞心情</font></A></DIV></TD></TR>    <TR>
                    <TD >
                      <DIV align=left><A 
                      href="xxyd.htm" 
                      target=_blank><font face="隶书" color="#CCFFFF">休息园地</font></A></DIV></TD></TR>
                  
       </TBODY>
        </TABLE>  
    </DIV><DIV id=xia5 
                style="HEIGHT: 81px; LEFT: 560px; POSITION: absolute; TOP: 129px; VISIBILITY: hidden; WIDTH: 100px; Z-INDEX: 2">
                <TABLE align=left  background="bgtop.gif" border=0 borderColor=#cccccc 
                cellPadding=1 cellSpacing=1 height=61 width="170">
                  <TBODY>
                  <TR>
                    <TD >
                      <DIV align=left><A 
                      href="gxjnzgsjmd.htm" 
                      target=_blank><font face="隶书" color="#CCFFFF">各先进女职工事迹名单</font></A></DIV></TD></TR>
                  <TR>
                    <TD >
                      <DIV align=left><A 
                      href="jgsfgkjjd.htm" 
                      target=_blank><FONT color=#CCFFFF face="隶书">巾帼示范岗科技结队</FONT></A></DIV></TD></TR>
        <TR>
                    <TD >
                      <DIV align=left><A 
                      href="2003nnzgxxsldzsjs.htm" 
                      target=_blank><font face="隶书" color="#CCFFFF">2003年女职工学习十六大知识竞赛</font></A></DIV></TD></TR>
       </TBODY>
        </TABLE>  
    </DIV>
      

  4.   

    <td width="11%"><A   href="ghgz.htm" 
                      onmouseover="MM_showHideLayers('xia1','','show','xia2','','hide','xia3','','hide',
                      'xia4','','hide','xia5','','hide', 'chip1','','show' )" 
                      onmouseout="document.all.xia1.style.visibility='hidden';"
                      
                     
                      
                    target=_blank><font face="华文行楷" size="3" color="#FFFF00">工会工作</font>
          </a></td>
        <td width="11%">
                  <A   href="ldjs.htm" 
                      onmouseover="MM_showHideLayers('xia1','','hide','xia2','','show','xia3','','hide',
                      'xia4','','hide','xia5','','hide', 'chip1','','show' )"
                      onmouseout="document.all.xia2.style.visibility='hidden';"                                  
     
                    target=_blank>
    <font face="华文行楷" size="3" color="#FFFF00">劳动竞赛</font>
              </a>
        </td>
        <td width="11%"><A   href="qccg.htm" 
                      onmouseover="MM_showHideLayers('xia1','','hide','xia2','','hide','xia3','','show',
                      'xia4','','hide','xia5','','hide', 'chip1','','show' )" 
                       onmouseout="document.all.xia3.style.visibility='hidden';"                
                      
                    target=_blank><font face="华文新魏" color="#FFFF00" size="3">Q       
          C </font><font face="华文行楷" color="#FFFF00" size="3">成果</font></a>      
        </td>
        <td width="11%"><a href= "note/index.asp" target=_blank>          
              <font face="华文行楷" size="3" color="#FFFF00">合理建议</font>
              </a>
        </td>
        <td width="11%"><A   href="zgzj.htm" 
                      onmouseover="MM_showHideLayers('xia1','','hide','xia2','','hide','xia3','','hide',
                      'xia4','','show','xia5','','hide', 'chip1','','show' )" 
                            onmouseout="document.all.xia4.style.visibility='hidden';"                
                    target=_blank><font face="华文行楷" size="3" color="#FFFF00">职工之家</font></a></td>
                    
                    
        <td width="12%"><A   href="nzgfc.htm" 
                      onmouseover="MM_showHideLayers('xia1','','hide','xia2','','hide','xia3','','hide',
                      'xia4','','hide','xia5','','show', 'chip1','','show' )" 
                      onmouseout="document.all.xia5.style.visibility='hidden';"
                      
                      
                    target=_blank>
              <font face="华文行楷" size="3" color="#FFFF00">女职工风采</font></a>
        </td>
      

  5.   

    对不起啊,你用一级菜单的onmouseout事件
    这样,用户的鼠标离开了一级菜单,想点击子菜单的时候,子菜单已经隐藏了啊!
      

  6.   

    给你推荐个软件,呵呵
    http://www.sothink.com.cn/download/sdmenuchs.zip改别人的代码太头疼.