tree_tpl.js

来自「《JSP网站开发典型模块与实例精讲》一书光盘源码」· JavaScript 代码 · 共 40 行

JS
40
字号
/*
	Feel free to use your custom images for the tree. Make sure they are all of the same size.
	User images collections are welcome, we'll publish them giving all regards.
*/

var tree_tpl = {
	'target'  : 'mainFrame',	// name of the frame links will be opened in
							// other possible values are: _blank, _parent, _search, _self and _top

	'icon_e'  : 'images/empty.gif', // empty image
	'icon_l'  : 'images/line.gif',  // vertical line

	'icon_32' : 'images/base.gif',   // root icon normal	
	'icon_36' : 'images/base.gif',   // root icon normal	
	
	
	'icon_48' : 'images/base.gif',   // root icon normal
	'icon_52' : 'images/base.gif',   // root icon selected
	'icon_56' : 'images/base.gif',   // root icon opened
	'icon_60' : 'images/base.gif',   // root icon selected
	
	'icon_16' : 'images/folder.gif', // node icon normal
	'icon_20' : 'images/folderopen.gif', // node icon selected
	'icon_24' : 'images/folder.gif', // node icon opened
	'icon_28' : 'images/folderopen.gif', // node icon selected opened

	'icon_0'  : 'images/page.gif', // leaf icon normal
	'icon_4'  : 'images/page.gif', // leaf icon selected
	'icon_8'  : 'images/page.gif', // leaf icon opened
	'icon_12' : 'images/page.gif', // leaf icon selected
	
	'icon_2'  : 'images/joinbottom.gif', // junction for leaf
	'icon_3'  : 'images/join.gif',       // junction for last leaf
	'icon_18' : 'images/plusbottom.gif', // junction for closed node
	'icon_19' : 'images/plus.gif',       // junctioin for last closed node
	'icon_26' : 'images/minusbottom.gif',// junction for opened node
	'icon_27' : 'images/minus.gif'       // junctioin for last opended node
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?