jquery Ztree v3.5 实例2 自定义显示在节点前的图片
来源:互联网 发布:php throw exception 编辑:程序博客网 时间:2024/06/12 01:01
显示效果如下:
代码如下:
<html><head><title></title></head><script type="text/javascript" src="jquery-1.10.2.js"></script><script type="text/javascript" src="jquery.ztree.all-3.5.min.js"></script><link href="zTreeStyle.css" rel="stylesheet" type="text/css"/><style type="text/css">.ztree li span.button.pIcon01_ico_open{margin-right:2px; background: url(img/diy/1_open.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}.ztree li span.button.pIcon01_ico_close{margin-right:2px; background: url(img/diy/1_close.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}.ztree li span.button.pIcon02_ico_open, .ztree li span.button.pIcon02_ico_close{margin-right:2px; background: url(img/diy/2.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}.ztree li span.button.icon01_ico_docu{margin-right:2px; background: url(img/diy/3.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}.ztree li span.button.icon02_ico_docu{margin-right:2px; background: url(img/diy/4.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}.ztree li span.button.icon03_ico_docu{margin-right:2px; background: url(img/diy/5.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}.ztree li span.button.icon04_ico_docu{margin-right:2px; background: url(img/diy/6.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}.ztree li span.button.icon05_ico_docu{margin-right:2px; background: url(img/diy/7.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}.ztree li span.button.icon06_ico_docu{margin-right:2px; background: url(img/diy/8.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}</style><script type="text/javascript">var setting = {data: {simpleData: {enable: true}}};var zNodes =[{ id:1, pId:0, name:"展开、折叠 自定义图标不同", open:true, iconSkin:"pIcon01"},{ id:11, pId:1, name:"叶子节点1", iconSkin:"icon01"},{ id:12, pId:1, name:"叶子节点2", iconSkin:"icon02"},{ id:13, pId:1, name:"叶子节点3", iconSkin:"icon03"},{ id:2, pId:0, name:"展开、折叠 自定义图标相同", open:true, iconSkin:"pIcon02"},{ id:21, pId:2, name:"叶子节点1", iconSkin:"icon04"},{ id:22, pId:2, name:"叶子节点2", iconSkin:"icon05"},{ id:23, pId:2, name:"叶子节点3", iconSkin:"icon06"},{ id:3, pId:0, name:"不使用自定义图标", open:true },{ id:31, pId:3, name:"叶子节点1"},{ id:32, pId:3, name:"叶子节点2"},{ id:33, pId:3, name:"叶子节点3"}];$(document).ready(function(){$.fn.zTree.init($("#tree"), setting, zNodes);});</script><body><ul id="tree" class="ztree"></ul></body></html>
- jquery Ztree v3.5 实例2 自定义显示在节点前的图片
- jQuery zTree v3.5 实例4 对树的节点进行编辑和删除
- jQuery zTree v3.5 实例5 对树节点的增、删、改,添加时包含添加同级节点和子节点
- JQuery zTree v3.5 实例1 节点单击、复选和链接
- jquery zTree树开发实例之点击树节点获取节点信息显示到表格中
- jQuery zTree v3.5 实例3 异步树及后台(springMVC+mybatis)实现
- jQuery zTree v3.5 实例3 异步树及后台(springMVC+mybatis)实
- Jquery的zTree--Js点击树节点
- ztree显示选中节点
- zTree v3.2 Demo
- jQuery zTree v3.5 异步树及后台
- JQuery Tree插件——zTree v3.2 正式版发布
- jquery ztree 在树节点后面加复选下拉框
- ztree自定义按钮的显示和功能
- Jquery zTree实例
- Jquery zTree实例
- zTree v3.5.02 发布,jQuery Tree 插件
- zTree v3.1获取选中节点的值并赋给隐藏域
- IOS学习笔记06---C语言函数
- Strategy(策略模式)
- 聚类算法初探(三)直接聚类法
- 正则表达式(javascript)学习总结
- C++设置文件修改时间
- jquery Ztree v3.5 实例2 自定义显示在节点前的图片
- IOS学习笔记07---C语言函数-printf函数
- 如何用Apache TCPMon来截获SOAP消息
- PHP5.5 + Apache2.4.4 初体验(64位)
- ios模拟器 奇怪的中文字
- “_beginthread”: 即使使用参数相关的查找,也未找到标识符 解决方法
- JPEG编解码过程详解
- Node.js测试
- JDK自带VM分析工具jps,jstat,jmap,jconsole