<SCRIPT language=javascript1.2>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
用法:
<tr>
<td height="26" background="../image/menu.gif" id="menuTitle1" onClick="showsubmenu(1)" style="cursor:hand;">
<font color="#FF9900">■ </font><font color="#FFFFFF"><strong>知识库分类</strong></font>
</td>
</tr>
<tr>
<td style="display:none" id='submenu1'>
<table cellspacing="0" align="center" width="100%">
<tr>
<td class="nav">· <a href="<%=request.getContextPath()%>/knowledge/knowledgeCategoryList.htm?order=list" target="mainFrame">编辑知识库分类</a></td>
</tr>
<tr>
<td class="nav">· <a href="<%=request.getContextPath()%>/knowledge/knowledgeCategoryList.htm?order=edit" target="mainFrame">新增知识库分类</a></td>
</tr>
</table>
posted on 2006-10-25 17:37
lovetq 阅读(462)
评论(0) 编辑 收藏