📄 menu.asp
字号:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<title>菜单列表</title>
<!--#include file= "../dbase.asp"-->
<!--#include file= "../function.asp"-->
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body{font-size:9pt;}
TH{FONT-SIZE: 9pt}
TD{ FONT-SIZE: 9pt}
.normal {background-color:#c0c0c0; cursor: default; border-top: 1px #e1e3ec solid; border-left: 1px #e1e3ec solid; border-right: 1px #e1e3ec solid; border-bottom: 1px #e1e3ec solid }
.over {background-color:#c0c0c0; cursor: default; border-top: 1px #ffffff solid; border-left: 1px #ffffff solid; border-right: 1px #999999 solid; border-bottom: 1px #999999 solid }
.down {background-color:#c0c0c0; cursor: default; border-top: 1px #999999 solid; border-left: 1px #999999 solid; border-right: 1px #ffffff solid; border-bottom: 1px #ffffff solid }
.normal1 {BACKGROUND-COLOR:#92949C; COLOR: #ffffff; border-top: 1px #e1e3ec solid; border-left: 1px #e1e3ec solid; border-right: 1px #e1e3ec solid; border-bottom: 1px #e1e3ec solid ;width: 100%; CURSOR: hand; LINE-HEIGHT: 21px; TEXT-ALIGN: center}
.over1 {BACKGROUND-COLOR: #92949C; COLOR: #99FFCC; border-top: 1px #ffffff solid; border-left: 1px #ffffff solid; border-right: 1px #999999 solid; border-bottom: 1px #999999 solid ;width: 100%; CURSOR: hand; LINE-HEIGHT: 21px; TEXT-ALIGN: center}
.down1 {BACKGROUND-COLOR: #92949C; COLOR: #ff0000; border-top: 1px #999999 solid; border-left: 1px #999999 solid; border-right: 1px #ffffff solid; border-bottom: 1px #ffffff solid ;width: 100%; CURSOR: hand; LINE-HEIGHT: 21px; TEXT-ALIGN: center}
//-->
</style>
<base target="main">
</HEAD>
<body bgcolor="#c0c0c0" topmargin="0" leftmargin="12" rightmargin="0" bottommargin="0" onselectstart="return false">
<TABLE id="Table1" cellSpacing="3" cellPadding="0" width="100%" border="0">
<%
if request("menu") = "" then
menuid = "01"
else
menuid = trim(request("menu"))
end if
Menu=menuArray(menuid,0)
URight=userRight("t_OAMenu",Session("UID"))
if not isnull(Menu) and not isnull(Uright) then'1
%>
<TR>
<TD width="100%" height="20"><img border=0 src="<%=Menu(4,0)%>" alt="<%=Menu(3,0)%>"><font size="+1" face="黑体"><%=Menu(2,0)%></font>
<%for i= 1 to ubound(Menu,2)
'首先设定层次为第二层,层次划分为2、4、6、8,即每层用xx两个表示
if len(Menu(1,i))=4 then'2
%>
</TD>
</TR>
<TR>
<TD height="21" align=center valign=center class="normal" language="javascript" onmouseover="this.className='over'" onmousedown="this.className='down'" onmouseout="this.className='normal'" onclick="MenuClick('',layers<%=Menu(1,i)%>);" title="<%=Menu(3,i)%>"><%=Menu(2,i)%></TD>
</TR>
<TR id="layers<%=Menu(1,i)%>" style="display: none">
<TD align="center" class="normal1">
<%elseif len(Menu(1,i))=6 then'2
if InStr(","&URight(0,0)&"," , ","&Menu(0,i)&",")<>0 then'3
%>
<label class="normal1" language="javascript" onmouseover="this.className='over1'" onmousedown="this.className='down1'" onmouseout="this.className='normal1'" onclick="MenuClick('<%=Menu(5,i)%>');" title="<%=Menu(3,i)%>">
<%=Menu(2,i)%>
</label>
<br>
<%
else'3
if Menu(6,i)="p" then'4%>
<label class="normal1" language="javascript" onmouseover="this.className='over1'" onmousedown="this.className='down1'" onmouseout="this.className='normal1'" onclick="MenuClick('noright.asp');" title="<%=Menu(3,i)%>">
<%=Menu(2,i)%>
</label>
<br>
<%
end if'4
end if'3
end if'2
next
end if'1
%>
</TD>
</TR>
<TR>
<TD height="21" align="center" valign="center" class="normal" language="javascript" onmouseover="this.className='over'" onmousedown="this.className='down'" onmouseout="this.className='normal'" onclick="MenuClick('',layers00);" title="快捷">附件</TD>
</TR>
<tr id="layers00" style="display: none;">
<td>
<label class="normal1" language="javascript" onmouseover="this.className='over1'" onmousedown="this.className='down1'" onmouseout="this.className='normal1'" title="我的电脑">
<a href="file:///::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" target="_blank">我的电脑</a></label><br>
<label class="normal1" language="javascript" onmouseover="this.className='over1'" onmousedown="this.className='down1'" onmouseout="this.className='normal1'" title="我的文档">
<a href="file:///::{450D8FBA-AD25-11D0-98A8-0800361B1103}" target="_blank">我的文档</a></label><br>
<label class="normal1" language="javascript" onmouseover="this.className='over1'" onmousedown="this.className='down1'" onmouseout="this.className='normal1'" title="网上邻居">
<a href="file:///::{208D2C60-3AEA-1069-A2D7-08002B30309D}" target="_blank">网上邻居</a></label><br>
<label class="normal1" language="javascript" onmouseover="this.className='over1'" onmousedown="this.className='down1'" onmouseout="this.className='normal1'" title="控制面板">
<a href="file:///::{20D04FE0-3AEA-1069-A2D8-08002B30309D}/::{21EC2020-3AEA-1069-A2DD-08002B30309D}" target="_blank">
控制面板</a></label><br>
<label class="normal1" language="javascript" onmouseover="this.className='over1'" onmousedown="this.className='down1'" onmouseout="this.className='normal1'" title="回收站">
<a href="file:///::{645FF040-5081-101B-9F08-00AA002F954E}" target="_blank">回收站</a></label><br>
</td>
</tr>
</TABLE>
</body>
</HTML>
<script language="javascript">
<!--
var layers
layers=layers00;
function MenuClick(url,layer){
if (url != '') parent.main.location.href=url;
if (layer)
if (layer!=layers) {
layers.style.display='none';
layer.style.display='';
layers=layer;}
else
if (layer.style.display !=''){
layer.style.display=''; }
else {
layer.style.display='none'; }
}
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -