树形目录示例程序:
<script type="text/javascript">
function ShowMenu(MenuID)
{
if(MenuID.style.display=="none"){
MenuID.style.display="";
}
else{
MenuID.style.display="none";
}
}
</script>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0" bgcolor="#EFEFE7">
<table width="150" height="25" border="0" cellpadding="0" cellspacing="0" bgcolor="#739E18">
<tr>
<td align="left"> <strong>栏目树形结构列表</strong></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
<tr>
<td width='20'>
<img src='../image/plus.png' border='0' onClick='javascript:ShowMenu(Menu1);'> </td>
<td class='Menu' onClick='javascript:ShowMenu(Menu1);'>电影管理</td>
</tr>
<tr id=Menu1 style='display:none'>
<td width='20'>
</td>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
<tr>
<td width='20'><img src='../image/page.png' border='0'> </td><td class='Menu'>
<a href="../admin/insert.php?name=addmovie" target='right'>增加电影</a></td>
</tr>
<tr>
<td width='20'><img src='../image/page.png' border='0'> </td><td class='Menu'>
<a href="../admin/edit.php?name=editmovie" target='right'>编辑电影</a>
</td>
</tr>
<tr>
<td width='20'><img src='../image/page.png' border='0'> </td>
<td class='Menu'><a href="../admin/delet.php?name=deletmovie" target='right'>删除电影</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='20'><img src='../image/plus.png' border='0' onClick='javascript:ShowMenu(Menu2);'> </td>
<td class='Menu' onClick='javascript:ShowMenu(Menu2);'>音乐管理</td>
</tr>
<tr id=Menu2 style='display:none'><td width='20'> </td>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%'><tr>
<td width='20'><img src='../image/page.png' border='0'> </td>
<td class='Menu'><a href="../admin/insert.php?name=addmusic" target='right'>增加音乐</a></td>
</tr>
<tr><td width='20'><img src='../image/page.png' border='0'> </td>
<td class='Menu'><a href="../admin/edit.php?name=editmusic" target='right'>编辑音乐</a></td></tr>
<tr><td width='20'><img src='../image/page.png' border='0'> </td><td class='Menu'><a href="../admin/delet.php?name=deletmusic" target='right'>删除音乐</a></td></tr></table>
</td></tr>
<tr><td width='20'><img src='../image/plus.png' border='0' onClick='javascript:ShowMenu(Menu3);'> </td><td class='Menu' onClick='javascript:ShowMenu(Menu3);'>MTV/MV</td></tr><tr id=Menu3 style='display:none'><td width='20'> </td>
<td>
<table cellpadding='0' cellspacing='0' border='0' width='100%'><tr><td width='20'><img src='../image/page.png' border='0'> </td><td class='Menu'><a href="../admin/insert.php?name=addmtv" target='right'>增加MTV</a></td></tr>
<tr>
<td width='20'><img src='../image/page.png' border='0'> </td><td class='Menu'><a href="../admin/edit.php?name=editmtv" target='right'>编辑MTV</a></td></tr>
<tr><td width='20'><img src='../image/page.png' border='0'> </td><td class='Menu'><a href="../admin/delet.php?name=deletmtv" target='right'>删除MTV</a></td></tr>
</table></td></tr>
<tr><td width='20'><img src='../image/plus.png' border='0' onClick='javascript:ShowMenu(Menu4);'> </td><td class='Menu' onClick='javascript:ShowMenu(Menu4);'>自拍</td></tr><tr id=Menu4 style='display:none'><td width='20'> </td>
<td><table cellpadding='0' cellspacing='0' border='0' width='100%'><tr><td width='20'><img src='../image/page.png' border='0'> </td><td class='Menu'><a href="../admin/insert.php?name=addpai" target='right'>增加自拍</a></td></tr>
<tr><td width='20'><img src='../image/page.png' border='0'> </td><td class='Menu'><a href="../admin/edit.php?name=editpai" target='right'>编辑自拍</a></td></tr>
<tr><td width='20'><img src='../image/page.png' border='0'> </td><td class='Menu'><a href="../admin/delet.php?name=deletpai" target='right'>删除自拍</a></td></tr></table></td></tr>
<tr><td width='20'><img src='../image/plus.png' border='0' onClick='javascript:ShowMenu(Menu5);'> </td><td class='Menu' onClick='javascript:ShowMenu(Menu5);'>消息管理</td></tr><tr id=Menu5 style='display:none'><td width='20'> </td>
<td><table cellpadding='0' cellspacing='0' border='0' width='100%'>
<tr><td width='20'><img src='../image/page.png' border='0'> </td>
<td class='Menu'><a href="../admin/insert.php?name=addxiao" target='right'>增加消息</a></td>
</tr>
</table>
</td>
</tr>
</table>