📄 example.js
字号:
//以下的样式都是可以修改的
document.write('<style type=text/css>');
document.write('TD.Tree_FOLDER_1{height:0pt;padding:0pt 5pt 0pt 2pt;}');
document.write('TD.Tree_FOLDER_2{height:0pt;padding:0pt 5pt 0pt 2pt;}');
document.write('TD.Tree_FOLDER_3{height:0pt;padding:0pt 5pt 0pt 2pt;}');
document.write('TD.Tree_FILE_1{height:0pt;padding:0pt 5pt 0pt 2pt;}');
document.write('TD.Tree_FILE_2{height:0pt;padding:0pt 5pt 0pt 2pt;}');
document.write('TD.Tree_FILE_3{height:0pt;padding:0pt 5pt 0pt 2pt;}');
document.write('TD {FONT-SIZE: 12px}');
document.write('P {FONT-SIZE: 12px}');
document.write('A:hover {COLOR: #ff0000}');
document.write('A.nav:link {COLOR: #000000; TEXT-DECORATION: none}');
document.write('A.nav:visited {COLOR: #000000; TEXT-DECORATION: none}');
document.write('A.nav:active {COLOR: #ff0000; TEXT-DECORATION: none}');
document.write('A.nav:hover { COLOR: #ff0000; TEXT-DECORATION: none}');
document.write('</style>');
var tree=new Tree_treeView();
tree.useImage=true; //是否显示图片
tree.useTitleAsHint=true;//提示文字为空时,是否采用菜单标题为提示文字
tree.useTitleAsStatus=true;//提示文字为空时,是否采用菜单标题为状态栏提示
tree.useHint=true;//是否显示提示文字。默认值 true
tree.useStatus=true;//是否显示状态栏文字。默认值 true
tree.showSelect=true;//是否高亮度显示选择的结点。默认值 true
tree.showLine=true; //是否显示结点间连线
tree.Indent=13;//缩进量,单位:pt。默认值为13
tree.folderImg1="./treeimg/clsfld.gif"; //默认文件夹折叠图标。默认值为空,需要更改
tree.lineFolder="./treeimg/";//连线图片所在目录。默认值为当前目录"./"。需要更改
tree.folderImg2="./treeimg/openfld.gif"; //默认文件夹展开图标。默认值为空。需要更改
tree.fileImg="./treeimg/link.gif"; //默认文件图标。默认值为空。需要更改
tree.target="rightPage"; //默认目标框架(链接时用)。
tree.folderClass1="Tree_FOLDER_1";//文件夹样式名称(正常状态)。默认值为空
tree.folderClass2="Tree_FOLDER_2";//文件夹样式名称(鼠标位于文件夹上时)。默认值为空
tree.folderClass3="Tree_FOLDER_3";//文件夹样式名称(选择状态)。默认值为空
tree.fileClass1="Tree_FILE_1";//文件样式名称(正常状态)。默认值为空
tree.fileClass2="Tree_FILE_2";//文件样式名称(鼠标位于文件夹上时)。默认值为空
tree.fileClass3="Tree_FILE_3";//文件样式名称(选择状态)。默认值为空
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -