菜单

                               

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="css/admin.css" type="text/css" rel="stylesheet">
<SCRIPT language=javascript>
function expand(el)
{
childObj = document.getElementById("child" + el);

if (childObj.style.display == 'none')
{
childObj.style.display = 'block';
}
else
{
childObj.style.display = 'none';
}
return;
}
</SCRIPT>
</HEAD>
<BODY>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width=170
background=images/menu_bg.jpg border=0>
<TR>
<TD vAlign=top align=middle>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>

<TR>
<TD height=10></TD></TR></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>

<TR height=22>
<TD style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
class="menuParent" onclick=expand(1)
href="javascript:void(0);">菜单</A></TD></TR>
<TR height=4>
<TD></TD></TR></TABLE>
<TABLE id=child1 style="DISPLAY: none" cellSpacing=0 cellPadding=0
width=150 border=0>
<TR height=20>
<TD align=middle width=30><IMG height=9
src="images/menu_icon.gif" width=9></TD>
<TD><A class="menuChild"
href="book.do"
target=main>首页</A></TD></TR>
<TR height=20>
<TD align=middle width=30><IMG height=9
src="images/menu_icon.gif" width=9></TD>
<TD><A class="menuChild"
href="car.jsp"
target=main>购物车</A>(<span style="color:red;">${(empty sessionScope.bookcnt)?0:sessionScope.bookcnt}</span>)</TD></TR>
<TR height=20>
<TD align=middle width=30><IMG height=9
src="images/menu_icon.gif" width=9></TD>
<TD><A class="menuChild"
href="order.do"
target=main>订单管理</A></TD></TR>
<TR height=4>
<TD colSpan=2></TD></TR></TABLE>






<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>

<TR height=22>
<TD style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
class="menuParent" onclick=expand(0)
href="javascript:void(0);">个人管理</A></TD></TR>
<TR height=4>
<TD></TD></TR></TABLE>
<TABLE id=child0 style="DISPLAY: none" cellSpacing=0 cellPadding=0
width=150 border=0>

<TR height=20>
<TD align=middle width=30><IMG height=9
src="images/menu_icon.gif" width=9></TD>
<TD><A class="menuChild"
href="javascript:top.chgPwd();" >修改口令</A></TD></TR>
<TR height=20>
<TD align=middle width=30><IMG height=9
src="images/menu_icon.gif" width=9></TD>
<TD><A class="menuChild"
onclick="if (confirm('确定要退出吗?')) return true; else return false;"
href="user.do?opt=logout"
target=_top>退出系统</A></TD></TR></TABLE></TD>
<TD width=1 bgColor=#d1e6f7></TD></TR></TABLE></BODY></HTML>

原文地址:https://www.cnblogs.com/tian114527375/p/4929787.html