Use PHP to implement a tree menu of windows Resource Manager style
Source: Internet
Author: User
The following is a tree menu similar to windows Resource Manager that includes the following script to your page. In addition, you need to take some GIF images from the resource manager, in the script, the structure of the comment menu structure file is: treelevel | itemtext, which is a tree menu similar to the windows resource manager.
Include the following script to your page
In addition, you need to extract some GIF images from the resource manager. For more information, see the notes in the script.
The menu structure file format is:
Tree level | item text | item link | link target | last item in subtree
For example
. Demo menu| Javascript: alert ('This is the demo menu for TreeMenu 100 ');
.. Directory 1
... Sub-directory 1.1
... 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 ');
.. Subdirectory 2
... Item 2.1 | javascript: alert ('item 2.1 ');
... Item 2.2 | javascript: alert ('item 2.2 ');
... Sub-directory 2.3
... Item 2.3.1 | javascript: alert ('item 2.3.1 ');
... Item 2.3.2 | javascript: alert ('item 2.3.2 ');
// File: tremenu. inc
// PHP TreeMenu
/////////////////
// Initialization //
/////////////////
$ Treefile = 'demomenu.txt '; // sets a file with a menu structure.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service