📄 lefttreemenu.aspx
字号:
<%@ Page language="c#" Codebehind="test.aspx.cs" AutoEventWireup="false" Inherits="WebApplication1.LeftTreeMenu" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>LeftTreeMenu</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="xcss.css" type="text/css" rel="stylesheet">
<script language="javascript">
current_div_id = -1;
function diva_show(div_id_parent,div_id_child)//div_id显示标号,type_id判断是否为叶子节点,0代表是,非零代表不是
{
if (document.all.item("a"+div_id_child).style.display == "block")//如果已是显示状态,则改为不显示状态
{
//alert("打开状态");
document.all.item("a"+div_id_child).style.display = "none";
document.all.item("i"+div_id_parent).src="images/icon_book_close.gif";
//document.all.item("f"+div_id_parent).src="images/plus1.gif";
}
else//如果不是显示状态,则改为显示状态
{
//alert("关闭状态");
document.all.item("a"+div_id_child).style.display = "block";
document.all.item("i"+div_id_parent).src="images/icon_book_open.gif";
//document.all.item("f"+div_id_parent).src="images/minus.gif";
}
if (current_div_id != -1)//改变颜色
{
document.all.item("link"+current_div_id).style.color = "#000066";
}
current_div_id = div_id_parent;
document.all.item("link"+div_id_parent).style.color = "red";
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout" BACKGROUND="images/leftbg.gif">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
</tr>
</table>
<a name="aa100"></a>
<table CELLSPACING="0" CELLPADDING="0">
<tr>
<td colspan="2">
<a href="#aa100" onclick="diva_show('100','110','1');" id="link100"><img name="i100" SRC="images/icon_book_close.gif" border="0">系统管理</a><br>
</td>
</tr>
</table>
<div id="a110" style="display:none">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td width="18"> </td>
<td>
<a name="aa110"></a>
<table CELLSPACING="0" CELLPADDING="0">
<tr>
<td colspan="2">
<a href="#aa110" onclick="diva_show('110','111');" id="link110"><img name="i110" SRC="images/icon_book_close.gif" border="0">用户登录</a><br>
</td>
</tr>
</table>
<div id="a111" style="display:none">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
</table>
</div>
</td>
</tr>
</table>
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td width="18"> </td>
<td>
<a name="aa120"></a>
<table CELLSPACING="0" CELLPADDING="0">
<tr>
<td colspan="2">
<a href="#aa120" onclick="diva_show('120','121');" id="link120"><img name="i120" SRC="images/icon_book_close.gif" border="0">新用户注册</a><br>
</td>
</tr>
</table>
<div id="a121" style="display:none">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
</table>
</div>
</td>
</tr>
</table>
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td width="18"> </td>
<td>
<a name="aa130"></a>
<table CELLSPACING="0" CELLPADDING="0">
<tr>
<td colspan="2">
<a href="Logout.aspx" onclick="diva_show('130','131');" id="link130" target="xright"><img name="i130" SRC="images/icon_book_close.gif" border="0">退出登录</a><br>
</td>
</tr>
</table>
<div id="a131" style="display:none">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
</table>
</div>
</td>
</tr>
</table>
</div>
<a name="aa200"></a>
<table CELLSPACING="0" CELLPADDING="0">
<tr>
<td colspan="2">
<a href="#aa200" onclick="diva_show('200','210');" id="link200"><img name="i200" SRC="images/icon_book_close.gif" border="0">图书信息管理</a><br>
</td>
</tr>
</table>
<div id="a210" style="display:none">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td width="18"> </td>
<td>
<a name="aa210"></a>
<table CELLSPACING="0" CELLPADDING="0">
<tr>
<td colspan="2">
<a href="BookManagement.aspx" onclick="diva_show('210','211');" id="link210" target="xright">
<img name="i210" SRC="images/icon_book_close.gif" border="0">图书信息管理</a><br>
</td>
</tr>
</table>
<div id="a211" style="display:none">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
</table>
</div>
</td>
</tr>
</table>
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td width="18"> </td>
<td>
<a name="aa220"></a>
<table CELLSPACING="0" CELLPADDING="0">
<tr>
<td colspan="2">
<a href="BookSearch.aspx" onclick="diva_show('220','221');" id="link220" target="xright">
<img name="i220" SRC="images/icon_book_close.gif" border="0">图书查询</a><br>
</td>
</tr>
</table>
<div id="a221" style="display:none">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
</table>
</div>
</td>
</tr>
</table>
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td width="18"> </td>
<td>
<a name="aa230"></a>
<table CELLSPACING="0" CELLPADDING="0">
<tr>
<td colspan="2">
<a href="BookInsert.aspx" onclick="diva_show('230','231');" id="link230" target="xright">
<img name="i230" SRC="images/icon_book_close.gif" border="0">新书录入</a><br>
</td>
</tr>
</table>
<div id="a231" style="display:none">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
</table>
</div>
</td>
</tr>
</table>
</div>
<a name="aa300"></a>
<table CELLSPACING="0" CELLPADDING="0">
<tr>
<td colspan="2">
<a href="#aa300" onclick="diva_show('300','310');" id="link300"><img name="i300" SRC="images/icon_book_close.gif" border="0">图书借阅管理</a><br>
</td>
</tr>
</table>
<div id="a310" style="display:none">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td width="18"> </td>
<td>
<a name="aa310"></a>
<table CELLSPACING="0" CELLPADDING="0">
<tr>
<td colspan="2">
<a href="Borrow.aspx" onclick="diva_show('310','311');" id="link310" target="xright"><img name="i310" SRC="images/icon_book_close.gif" border="0" >借书</a><br>
</td>
</tr>
</table>
<div id="a311" style="display:none">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
</table>
</div>
</td>
</tr>
</table>
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td width="18"> </td>
<td>
<a name="aa320"></a>
<table CELLSPACING="0" CELLPADDING="0">
<tr>
<td colspan="2">
<a href="Return.aspx" onclick="diva_show('320','321');" id="link320" target="xright"><img name="i320" SRC="images/icon_book_close.gif" border="0">还书</a><br>
</td>
</tr>
</table>
<div id="a321" style="display:none">
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
</table>
</div>
</td>
</tr>
</table>
</div>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -