盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

用PHP完成windows资源管理器风格的树型菜单

时间:2024/10/27作者:未知来源:盾怪网教程人气:

[摘要]- img_end = "tree_end.gif";//形如L img_leaf = "tree_leaf.gif";//形如o img_spc = &qu...
-
$img_end = "tree_end.gif";//形如L
$img_leaf = "tree_leaf.gif";//形如o
$img_spc = "tree_space.gif";//空白图

//以下是菜单处理脚本

$maxlevel=0;
$cnt=0;

$fd = fopen($treefile, "r");
if ($fd==0) die("treemenu.inc : Unable to open file ".$treefile);
while ($buffer = fgets($fd, 4096))
{
$tree[$cnt][0]=strspn($buffer,".");
$tmp=rtrim(substr($buffer,$tree[$cnt][0]));
$node=explode("

关键词:用PHP完成windows资源管理器风格的树型菜单




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版