window| menu Below is a tree menu style similar to Windows Explorer
Include the following script in your page
Also need to intercept some GIF pictures from the Explorer, see the comments in the script
The format of the menu structure file is:
Tree Level|item text|item link|link target|last item in subtree
For example
. <b>demo Menu</b>|javascript:alert (' This are the Demo menu for Treemenu 1.0 ');
.. <b> Catalogue 1</b>
...<b> subdirectory 1.1</b>
... item 1.1.1|javascript:alert (' Item 1.1.1 ');
... item 1.1.2|javascript:alert (' Item 1.1.1 ');
... item 1.2|javascript:alert (' Item 1.2 ');
... item 1.3|javascript:alert (' Item 1.3 ');
.. <b> Sub-Directory 2</b>
... item 2.1|javascript:alert (' Item 2.1 ');
... item 2.2|javascript:alert (' Item 2.2 ');
...<b> subdirectory 2.3</b>
... item 2.3.1|javascript:alert (' Item 2.3.1 ');
... item 2.3.2|javascript:alert (' Item 2.3.2 ');
<?php
File:tremenu.inc
PHP Treemenu
/////////////////
Initialization//
/////////////////
$treefile = "Demomenu.txt";//Set a file with a menu structure
The following picture can intercept the map of the corresponding location in Windows Explorer
$img _expand = "tree_expand.gif";//form as Extensible node in Resource Manager +
$img _collapse = "tree_collapse.gif";//in the form of an extended node in Resource Manager-
$img _line = "tree_vertline.gif";//Shaped like |
$img _split = "tree_split.gif";//Shaped like |
$img _end = "tree_end.gif";/shaped like L
$img _leaf = "tree_leaf.gif";//form as O
$img _SPC = "tree_space.gif";//Blank chart
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.