网站建设的基本流程规范,想做个自己的网站,淘宝每平每屋设计家官网,驻马店高端网站建设借鉴 网友 iuhxq 的设计制作而成的目录树#xff0c;在此感谢 iuhxq 的代码对我大帮助。特点#xff1a;1、无限级节点。2、直接产生html代码#xff0c;容易修改。3、目录清楚#xff0c;类似于资源管理器#xff0c;(csdn论坛的#xff0c;层数多了就不容易分清楚层次了…借鉴 网友 iuhxq 的设计制作而成的目录树在此感谢 iuhxq 的代码对我大帮助。特点1、无限级节点。2、直接产生html代码容易修改。3、目录清楚类似于资源管理器(csdn论坛的层数多了就不容易分清楚层次了)。4、记忆节点状态人性化。核心代码如下$time1 gettimeofday();require_once(conn.php);function menu($id){global $conn;$sql select * from menu where id1.$id;$result mysql_query($sql);echo mysql_error();$row mysql_num_rows($result);if($row0){return;}//end ifecho .$Rs_item[menuname].; $i 1; while($Rs_item mysql_fetch_array($result)) { if (strlen($Rs_item[url])0) { if ($i$row) { $menutype file1; } else { $menutype file; }//end if $menuname ; $onmouseup ; } else { if ($i$row) { $menutype menu3; $listtype list1; $onmouseup chengstate(.$Rs_item[id].); } else { $menutype menu1; $listtype list; $onmouseup chengstate(.$Rs_item[id].); }//end if $menuname $Rs_item[menuname]; }//end if? class onMouseUp styledisplay:none$i; }//end while echo ; }//end function menu ?