Hello, Raj;
Here are some examples written in PHP. The scripts I have listed
are all free. There were some scripts which were not free, but I
didn't think they would do you much good since you are wanting
examples to modify for your site.
"EU-TreeMenue 1.0 is a Windows Explorer style tree menu based on
MySQL-tables.
Features:
* Easy to use
* 'Unlimited' number of levels
* All items are linkable
* Freeware
The MySQL-table contains the structure of your menu. As you can
see it's a really easy and quite intuitive way of creating your
menu. Apart from some layout code and commenting, the real code
is just some lines."
http://www.imperiator.com/dasat/index.php3?conid=100230&cid=100082
"class.tree is a class for php. class.tree gives you an easy way to
create expandable tree lists. class.tree is designed and testet
for 4+ browsers with javascript enabled, tested with Netscape 4.7
and IE 5.0."
http://pbone.biz/index.php?id=50
"Node Tree handle expandable tree lists inside a browser like
Windows Explorer. It is based on a hierachical array. The
information, which node is opened, closed or choosed is posted by
HTML forms, so no extra file or DB needed for each session."
http://www.bitesser.de/freeware/script.php?id=3
There don't seem to be as many PERL examples out there, but here
is one:
"Expanding Menus"
(NB: To download, use the download link in the nav menu on the
left. It will expand to 2 versions of the script: expand12.zip
and expand-1.2.tar.gz.)
http://kuoi.asui.uidaho.edu/~collinf/scripts.html/expand/about/_ABdtdx
There are several PERL scripts that generate a treeview of the
server filesystem. If you want to look at those for ideas, check
out this link:
http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=tree&catid=1
Additional Links:
This is a JavaScript/DHTML treeview menu. It is designed to work
with as many browsers as possible (it worked with Galeon 1.2.6
on Linux).
http://www.treeview.net/
Search Strategy:
Google Search:
php script site navigation expandable tree
://www.google.com/search?q=php+script+expandable+tree
Google Search:
php script expandable tree
://www.google.com/search?q=php+script+expandable+tree
Google Search:
perl script expandable tree
://www.google.com/search?q=perl+script+expandable+tree&hl=en&lr=&ie=UTF-8&start=10&sa=N
Hotscripts Searches:
"treeview" in category PHP
http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=treeview&catid=2
"tree" in category PHP
http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=tree&catid=2
"treeview" in category PERL
http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=treeview&catid=1
"tree" in category PERL
http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=tree&catid=1
Also searched the Comprehensive Perl Archive Network (
http://search.cpan.org/ ), but didn't turn up anything.
Hope this helps!
Bikerman |