首页上一页 1 下一页尾页 1 条记录 1/1页
急急!!<> 人力资源管理系统 导航菜单有问题!!
发表在JavaWeb图书答疑
2012-04-11
是否精华
是
否
版块置顶:
是
否
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<script language="javascript">
function change(img,subMenu,path,type){
img.src="images/"+path+".GIF";
if(subMenu!=null){
if(type==0){
subMenu.style.display="none";
}else{
subMenu.style.display="";
}
}
}
</script>
<div style="position:absolute">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td onMouseOver="change(ImgUser,NUser,'NUser_r',1)" onMouseOut="change(ImgUser,NUser,'NUser_b',0)">
<a href="#"><img id="ImgUser" src="images/NUser_b.GIF" width="106" height="48" border="0"></a>
<div id="NUser" style="background-color:#F3FFD5; border:#75A102 1px solid; width:200px; position:absolute; display:none; left:1px; top: 34px;">
<table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="user.do?action=listuser">浏览员工信息</a> <a href="adduser.do">添加新员工</a></td>
</tr>
</table></div></td>
<td onMouseOver="change(ImgJob,NJob,'NJob_r',1)" onMouseOut="change(ImgJob,NJob,'NJob_b',0)"><a href="#"><img id="ImgJob" src="images/NJob_b.GIF" width="110" height="48" border="0"></a><div id="NJob" style="background-color:#F3FFD5; border:#75A102 1px solid; width:230px; position:absolute; left:110px; display:none; top: 34px;">
<table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="job.do?action=listjob">浏览应聘信息</a> <a href="addjob.do">添加应聘信息 </a><a href="job.do?action=listjob&isstock=yes">浏览人才库</a></td>
</tr>
</table>
</div></td>
<td onMouseOver="change(ImgEducate,NEducate,'NEducate_r',1)" onMouseOut="change(ImgEducate,NEducate,'NEducate_b',0)"><a href="#"><img id="ImgEducate" src="images/NEducate_b.GIF" width="111" height="48" border="0"></a><div id="NEducate" style="background-color:#F3FFD5; border:#75A102 1px solid; width:240px; position:absolute; display:none;left:222px; top: 34px;">
<table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="educate.do?action=listeducate">浏览培训计划</a><a href="addeducate.do"> 添加培训计划</a><a href="educate.do?action=listeducate&educate=1"> 查看培训总结</a></td>
</tr>
</table>
</div></td>
<td onMouseOver="change(ImgInstitution,NInstitution,'NInstitution_r',1)" onMouseOut="change(ImgInstitution,NInstitution,'NInstitution_b',0)">
<a href="#"><img id="ImgInstitution" src="images/NInstitution_b.GIF" width="110" height="48" border="0"></a>
<div id="NInstitution" style="background-color:#F3FFD5; border:#75A102 1px solid; width:180px; position:absolute; display:none; left:332px; top: 34px;">
<table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="institution.do?action=listinstitution">浏览奖惩制度 </a><a href="addinstitution.do">添加奖惩制度</a></td>
</tr>
</table>
</div></td>
<td onMouseOver="change(ImgStipend,NStipend,'NStipend_r',1)" onMouseOut="change(ImgStipend,NStipend,'NStipend_b',0)"><a href="#"><img id="ImgStipend" src="images/NStipend_b.GIF" width="110" height="48" border="0"></a><div id="NStipend" style="background-color:#F3FFD5; border:#75A102 1px solid; width:180px; position:absolute; display:none;left:446px; top: 34px;">
<table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="stipend.do?action=liststipend">浏览薪金列表</a><a href="addstipend.do"> 添加薪金数据</a></td>
</tr>
</table>
</div></td>
<td><a href="logout.jsp"><img src="images/NExit_b.GIF" width="98" height="48" border="0" onMouseOver="change(this,null,'NExit_r',1)" onMouseOut="change(this,null,'NExit_b',0)"></a></td>
<td><img src="images/NNull.GIF" width="130" height="48"></td>
</tr>
</table>
</div>
浏览奖惩制度 和 添加奖惩制度 以及 浏览薪金列表 和 添加薪金数据依次偏离到前面菜单的下面了其他都没问题,希望帮忙解决一下,谢了!
<script language="javascript">
function change(img,subMenu,path,type){
img.src="images/"+path+".GIF";
if(subMenu!=null){
if(type==0){
subMenu.style.display="none";
}else{
subMenu.style.display="";
}
}
}
</script>
<div style="position:absolute">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td onMouseOver="change(ImgUser,NUser,'NUser_r',1)" onMouseOut="change(ImgUser,NUser,'NUser_b',0)">
<a href="#"><img id="ImgUser" src="images/NUser_b.GIF" width="106" height="48" border="0"></a>
<div id="NUser" style="background-color:#F3FFD5; border:#75A102 1px solid; width:200px; position:absolute; display:none; left:1px; top: 34px;">
<table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="user.do?action=listuser">浏览员工信息</a> <a href="adduser.do">添加新员工</a></td>
</tr>
</table></div></td>
<td onMouseOver="change(ImgJob,NJob,'NJob_r',1)" onMouseOut="change(ImgJob,NJob,'NJob_b',0)"><a href="#"><img id="ImgJob" src="images/NJob_b.GIF" width="110" height="48" border="0"></a><div id="NJob" style="background-color:#F3FFD5; border:#75A102 1px solid; width:230px; position:absolute; left:110px; display:none; top: 34px;">
<table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="job.do?action=listjob">浏览应聘信息</a> <a href="addjob.do">添加应聘信息 </a><a href="job.do?action=listjob&isstock=yes">浏览人才库</a></td>
</tr>
</table>
</div></td>
<td onMouseOver="change(ImgEducate,NEducate,'NEducate_r',1)" onMouseOut="change(ImgEducate,NEducate,'NEducate_b',0)"><a href="#"><img id="ImgEducate" src="images/NEducate_b.GIF" width="111" height="48" border="0"></a><div id="NEducate" style="background-color:#F3FFD5; border:#75A102 1px solid; width:240px; position:absolute; display:none;left:222px; top: 34px;">
<table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="educate.do?action=listeducate">浏览培训计划</a><a href="addeducate.do"> 添加培训计划</a><a href="educate.do?action=listeducate&educate=1"> 查看培训总结</a></td>
</tr>
</table>
</div></td>
<td onMouseOver="change(ImgInstitution,NInstitution,'NInstitution_r',1)" onMouseOut="change(ImgInstitution,NInstitution,'NInstitution_b',0)">
<a href="#"><img id="ImgInstitution" src="images/NInstitution_b.GIF" width="110" height="48" border="0"></a>
<div id="NInstitution" style="background-color:#F3FFD5; border:#75A102 1px solid; width:180px; position:absolute; display:none; left:332px; top: 34px;">
<table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="institution.do?action=listinstitution">浏览奖惩制度 </a><a href="addinstitution.do">添加奖惩制度</a></td>
</tr>
</table>
</div></td>
<td onMouseOver="change(ImgStipend,NStipend,'NStipend_r',1)" onMouseOut="change(ImgStipend,NStipend,'NStipend_b',0)"><a href="#"><img id="ImgStipend" src="images/NStipend_b.GIF" width="110" height="48" border="0"></a><div id="NStipend" style="background-color:#F3FFD5; border:#75A102 1px solid; width:180px; position:absolute; display:none;left:446px; top: 34px;">
<table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><a href="stipend.do?action=liststipend">浏览薪金列表</a><a href="addstipend.do"> 添加薪金数据</a></td>
</tr>
</table>
</div></td>
<td><a href="logout.jsp"><img src="images/NExit_b.GIF" width="98" height="48" border="0" onMouseOver="change(this,null,'NExit_r',1)" onMouseOut="change(this,null,'NExit_b',0)"></a></td>
<td><img src="images/NNull.GIF" width="130" height="48"></td>
</tr>
</table>
</div>
浏览奖惩制度 和 添加奖惩制度 以及 浏览薪金列表 和 添加薪金数据依次偏离到前面菜单的下面了其他都没问题,希望帮忙解决一下,谢了!