你直接查看csdn生成的html代码就知道了
//隐藏树
function hidetoc()
  {
  strColumns_Current = top.mainframeset.cols
  
  top.mainframeset.cols = "1,*";
  top.contentbar.document.all("showtoc").style.display = "block";
  }
//显示树
function showtoc()
  {
  top.mainframeset.cols = strColumns_Current;
  top.contentbar.document.all("showtoc").style.display = "none";
  }树简单点你可以用微软提供的TreeView控件, 它自带了一些例子, 介绍了多层节点如何实现