当前位置:编程技术网 > 资源下载 > 源码 > 文章详细内容

一个非常好用的js写的树控件treeview,支持cookies保存节点展开状态,采用面向对象思想



调用代码

<script type="text/javascript" src="../js/tree/js/dtree.js"></script>
<script>
var d = new dTree("d");
function showTree()
{
d.add(0, -1, "<b>东莞建材电子商务平台</b>", "../Business/First.htm")

d.add(1, 0, "我的商品", null, null, null, null, null, true);
d.add(11, 1, "新增商品", "../Business/WareAdd.htm");
d.add(12, 1, "管理商品", "../Business/WareMana.htm");

d.add(2, 0, "我的订单", null, null, null, null, null, true);
d.add(21, 2, "新订单", "a.htm", "客户新提交尚未安排送货的订单", "_blank");
d.add(22, 2, "正在配送的订单", "a.htm", null, "_blank");
d.add(23, 2, "历史订单", null, null, null, null, null, false);
d.add(231, 23, "已成交订单", "a.htm", null, "_blank");
d.add(232, 23, "失败的订单", "a.htm", null, "_blank");

d.add(3, 0, "订单综合查询", "a.htm", "超级管理具有的功能 可以对所有的商家 所有状态的订单的查询", "_blank");

d.add(4, 0, "配送处理", null, null, null, null, null, true);
d.add(41, 4, "待配送的订单", "a.htm", null, "_blank");
d.add(42, 4, "配送中的订单", "a.htm", null, "_blank");
d.add(43, 4, "配送历史", "a.htm", null, "_blank");

d.add(5, 0, "商家综合管理", "../Business/BizMana.htm", "商家的审核禁用删除商家权限设置");

d.add(6, 0, "系统设置", null, null, null, null, null, true);
d.add(61, 6, "商品类别设置", "../Business/WareTypeMana.htm");

d.add(7, 0, "我的资料", null, null, null, null, null, true);
d.add(71, 7, "修改资料", "../Business/BizModInfo.htm");
d.add(72, 7, "修改密码", "../Business/BizChangePwd.htm");                               

d.add(8, 0, "安全退出", "../Business/SignOut.htm");

document.getElementById("tree").innerHTML=d;
}
showTree();
</script>

点击下载 作者|来源:原创(17fx.net)发表于:2009-2-15 0:24:53
上一篇 没有了