导航菜单问题
做了个有下拉菜单的页面用来导航,可是如果一个个页面都这么做,太费力了,
各位大虾帮我出出主意,小弟在此多谢了。
以下是该页面的代码(dreamweaver mx做的),请多指教!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
td {
font-family: "宋体";
font-size: 12px;
}
-->
</style>
<script language="JavaScript" type="text/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.01
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 && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.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>
</head>
<body background="images/backclr.JPG">
<div id="title" style="position:absolute; left:54px; top:27px; width:650px; height:15px; z-index:1; background-color: #339999; layer-background-color: #339999; border: 1px none #000000;">
<table width="100%" height="15" cellpadding="2" cellspacing="0">
<tr>
<td width="120" height="12" onMouseOver="MM_showHideLayers('menu1','','show')" onMouseOut="MM_showHideLayers('menu1','','hide')"><font color="#FFFFFF">■用户管理</font></td>
<td width="120" height="12" onMouseOver="MM_showHideLayers('menu2','','show')" onMouseOut="MM_showHideLayers('menu2','','hide')"><font color="#FFFFFF">■帐户管理</font></td>
<td width="120" height="12" onMouseOver="MM_showHideLayers('menu3','','show')" onMouseOut="MM_showHideLayers('menu3','','hide')"><font color="#FFFFFF">■帐户查询</font></td>
<td width="120" height="12" onMouseOver="MM_showHideLayers('menu4','','show')" onMouseOut="MM_showHideLayers('menu4','','hide')"><font color="#FFFFFF">■帐户统计</font></td>
<td width="120" height="12"><font color="#FFFFFF">■业务留言</font></td>
<td width="120" height="12"><font color="#FFFFFF">■字典维护</font></td>
</tr>
</table>
</div>
<div id="menu1" style="position:absolute; left:55px; top:45px; width:90px; height:36px; z-index:2; background-color: #99CC00; layer-background-color: #99CC00; border: 1px none #000000; visibility: hidden;" onMouseOver="MM_showHideLayers('menu1','','show')" onMouseOut="MM_showHideLayers('menu1','','hide')">
<table width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><a href="User/UserSetup.asp">职员设置</a></td>
</tr>
<tr>
<td><a href="User/UserRight.asp">权限设置</a></td>
</tr>
<tr>
<td><a href="User/ExtRight.asp">扩展权限</a></td>
</tr>
</table>
</div>
<div id="menu2" style="position:absolute; left:163px; top:45px; width:90px; height:53px; z-index:2; background-color: #99CC00; layer-background-color: #99CC00; visibility: hidden; border: 1px none #000000;" onMouseOver="MM_showHideLayers('menu2','','show')" onMouseOut="MM_showHideLayers('menu2','','hide')">
<table width="100%" border="0">
<tr>
<td><a href="Account/AccountSetup.asp">帐户设置</a></td>
</tr>
<tr>
<td height="15"><a href="Account/AccountUpgrade.asp">帐户升级</a></td>
</tr>
<tr>
<td><a href="Account/ValueControl.asp">阀值管理</a></td>
</tr>
</table>
</div>
<div id="menu3" style="position:absolute; left:274px; top:45px; width:90px; height:53px; z-index:2; background-color: #99CC00; layer-background-color: #99CC00; border: 1px none #000000; visibility: hidden;" onMouseOver="MM_showHideLayers('menu3','','show')" onMouseOut="MM_showHideLayers('menu3','','hide')">
<table width="98%" border="0">
<tr>
<td><a href="Query/BalanceQuery.asp">余额查询</a></td>
</tr>
<tr>
<td><a href="Query/FixDateQuery.asp">定期查询</a></td>
</tr>
<tr>
<td><a href="Query/OuterUnitQuery.asp">外单位帐户</a></td>
</tr>
<tr>
<td><a href="Query/ChangeQuery.asp">变动查询</a></td>
</tr>
<tr>
<td><a href="Query/LeaveWordQuery.asp">留言查询</a></td>
</tr>
</table>
</div>
<div id="menu4" style="position:absolute; left:379px; top:45px; width:90px; height:54px; z-index:2; background-color: #99CC00; layer-background-color: #99CC00; border: 1px none #000000; visibility: hidden;" onMouseOver="MM_showHideLayers('menu4','','show')" onMouseOut="MM_showHideLayers('menu4','','hide')">
<table width="99%" border="0">
<tr>
<td><a href="Statistic/PropertyStat.asp">按属性统计</a></td>
</tr>
<tr>
<td><a href="Statistic/ChangeStat.asp">变动统计</a></td>
</tr>
<tr>
<td><a href="Statistic/AccountAnalyse.asp">帐户分析</a></td>
</tr>
</table>
</div>
<br>
</body>
</html>