实现了展开了,但是不知道怎么收回
代码如下:
<table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#000000">
<!--是固定栏-->
                  <tr>
                    <td height="22" class="header"><img src="./images/minus.gif" width="20" height="9"><a href="javascript:show('foldertype1')"><font color=#ffffff>类别设置</font></a></td>
                  </tr><!--伸展栏-->
<!--style="display:none"是固定的,id="foldertype"的值按照不同的<Tboby>分配不同的id,但是要和固定栏中的href="javascript:show('foldertype')"相同-->
              <TBODY style="display:none" id="foldertype1">
                  <tr>
                    <td height="22" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#F8F8F8'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><a href="?filename=type&action=addtype" target="right">添加类别</a></td>
                  </tr>
                  <tr>
                    <td height="22" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#F8F8F8'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><a href="?filename=type&action=edittype" target="right">类别编辑</a></td>
                  </tr>
                  <tr>
                    <td height="22" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#F8F8F8'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><a href="?filename=type&action=jointype" target="right">合并类别</a></td>
                  </tr>
        </tr>
             </tbody><!--是固定栏-->
                  <tr>
                    <td height="22" class="header"><img src="./images/minus.gif" width="20" height="9"><a href="javascript:show('foldertype2')"><font color=#ffffff>类别设置</font></a></td>
                  </tr>
<!--伸展栏-->
<!--style="display:none"是固定的,id="foldertype"的值按照不同的<Tboby>分配不同的id,但是要和固定栏中的href="javascript:show('foldertype')"相同-->
              <TBODY style="display:none" id="foldertype2">
                  <tr>
                    <td height="22" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#F8F8F8'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><a href="?filename=type&action=addtype" target="right">添加类别</a></td>
                  </tr>
                  <tr>
                    <td height="22" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#F8F8F8'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><a href="?filename=type&action=edittype" target="right">类别编辑</a></td>
                  </tr>
                  <tr>
                    <td height="22" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#F8F8F8'" onMouseOut="this.style.backgroundColor='#FFFFFF'"><a href="?filename=type&action=jointype" target="right">合并类别</a></td>
                  </tr>
        </tr>
             </tbody></table><script>
function show(c_Str){
if(document.all(c_Str).style.display=='none'){
document.all(c_Str).style.display='block'
}else{
document.all(c_Str).style.display='none'
}
}
</script>知道的朋友提个醒啊!