asp产品分类
服装衣服裤子配饰耳环项链玩具模型小汽车......这种产品分类是怎么做的,谢谢,给个代码...
服装
衣服 裤子
配饰
耳环 项链
玩具
模型 小汽车
......
这种产品分类是怎么做的,谢谢,给个代码 展开
衣服 裤子
配饰
耳环 项链
玩具
模型 小汽车
......
这种产品分类是怎么做的,谢谢,给个代码 展开
1个回答
展开全部
给你看个事例:
<script language="javascript" type="text/javascript">
if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
if(el.style.display != "block"){ //DynamicDrive.com change
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}
function killErrors() {
return true;
}
window.onerror = killErrors;
</script>
<table width="180" height="100%" border="0" cellpadding="0" cellspacing="0" class="HeaderTdStyle">
<tr>
<td align="center" valign="top"><table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">系统管理</td>
</tr>
</table>
<table width="100%" height="90%" border="0" cellpadding="0" cellspacing="0" class="MenuBg">
<tr>
<td align="center" valign="top">
<div id="masterdiv" style="
margin:20px 0px 10px 15px;width:100%;text-align:left;"><div class="menutitle1" onClick="SwitchMenu('sub1')"><img src="image/Left_1.gif" /><a href="#">系列设置</a></div>
<span class="submenu" id="sub1">
<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30%" height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16"></td>
<td width="66%" valign="bottom"><a href="Manage_Admin.asp" target="main">管理员管理</a></td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16"></td>
<td valign="bottom"><a href="Manage_backup.asp" target="main">数据库备份</a></td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16"></td>
<td valign="bottom"><a href="help.htm" target="main">系统帮助</a></td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16"></td>
<td valign="bottom"><a href="UploadFileManage.asp" target="main">上传文件管理</a></td>
</tr>
</table>
</span>
<div class="menutitle1" onClick="SwitchMenu('sub8')"><img src="image/Left_1.gif"/><a href="#">公告/新闻动态管理</a></div>
<span class="submenu" id="sub8">
<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16"></td>
<td valign="bottom"><a href="add_newnotes.asp" target="main">添加公告/通知</a> </td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16" /></td>
<td valign="bottom"><a href="Manage_newnotes.asp" target="main">管理公告/通知</a></td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16" /></td>
<td valign="bottom"><a href="add_newsdongtai.asp" target="main">添加最新动态</a></td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16" /></td>
<td valign="bottom"><a href="Manage_newdongtai.asp" target="main">管理最新动态</a></td>
</tr>
</table>
</span>
修该时:
<div class="menutitle1" onClick="SwitchMenu('sub9')">
<span class="submenu" id="sub9">
这 sub 名字要对应好,
多个树叉,就过个这段代码
<script language="javascript" type="text/javascript">
if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
if(el.style.display != "block"){ //DynamicDrive.com change
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}
function killErrors() {
return true;
}
window.onerror = killErrors;
</script>
<table width="180" height="100%" border="0" cellpadding="0" cellspacing="0" class="HeaderTdStyle">
<tr>
<td align="center" valign="top"><table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">系统管理</td>
</tr>
</table>
<table width="100%" height="90%" border="0" cellpadding="0" cellspacing="0" class="MenuBg">
<tr>
<td align="center" valign="top">
<div id="masterdiv" style="
margin:20px 0px 10px 15px;width:100%;text-align:left;"><div class="menutitle1" onClick="SwitchMenu('sub1')"><img src="image/Left_1.gif" /><a href="#">系列设置</a></div>
<span class="submenu" id="sub1">
<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30%" height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16"></td>
<td width="66%" valign="bottom"><a href="Manage_Admin.asp" target="main">管理员管理</a></td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16"></td>
<td valign="bottom"><a href="Manage_backup.asp" target="main">数据库备份</a></td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16"></td>
<td valign="bottom"><a href="help.htm" target="main">系统帮助</a></td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16"></td>
<td valign="bottom"><a href="UploadFileManage.asp" target="main">上传文件管理</a></td>
</tr>
</table>
</span>
<div class="menutitle1" onClick="SwitchMenu('sub8')"><img src="image/Left_1.gif"/><a href="#">公告/新闻动态管理</a></div>
<span class="submenu" id="sub8">
<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16"></td>
<td valign="bottom"><a href="add_newnotes.asp" target="main">添加公告/通知</a> </td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16" /></td>
<td valign="bottom"><a href="Manage_newnotes.asp" target="main">管理公告/通知</a></td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16" /></td>
<td valign="bottom"><a href="add_newsdongtai.asp" target="main">添加最新动态</a></td>
</tr>
<tr>
<td height="20" align="right"><img src="image/Left_1_1.gif" width="29" height="16" /></td>
<td valign="bottom"><a href="Manage_newdongtai.asp" target="main">管理最新动态</a></td>
</tr>
</table>
</span>
修该时:
<div class="menutitle1" onClick="SwitchMenu('sub9')">
<span class="submenu" id="sub9">
这 sub 名字要对应好,
多个树叉,就过个这段代码
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询