PDA

View Full Version : JavaScript tree menu


Jan
10-18-2002, 10:24 AM
Hey all!

I am making this website, where I'd like a tree menu for easier and quicker navigation. I would only need it to be in two levels (main + sub) and it would be cool if it would animate somehow.

I was surfing the web, and I found this really cool menu on a company website. It can be found here at http://www.crmgroup.com. I know it's illegal to copy it and use it, so I was wondering if there's another but legal? Please, I've been looking for this for quite some time now!

And it would be really cool if it would as cross-browser friendly as possible, and also, that it doesen't have to reload to view the sub sections.


~Jagert

Vladdy
10-18-2002, 01:21 PM
I'm working on a college department site now, and I developed a similar menu for it: http://server.ime.uri.edu/
Features:
DOM compliant: IE5+; Gecko based browsers; future releases
Dynamically generated using Javascript: does require JS enabled to allow navigation, in return you get easy maintanance as all information about items and structure is stored in one file.
All presentation aspects are done using CSS and are independent from the code.
Allows to highlight the curently selected item


Compared to the menu you found at http://www.crmgroup.com it does not have animation and does not collapse an opened item before expanding another one. The reasons I stayed away from these featured are the following.
Animation does not add to the functionality but inhibits it. The function of the menu is to provide quick access to the information on your web site. Maybe the first time the user clicks on the menu the thought would be "how cute", but I bet it won't take long before it changes to "c'mon, move, you, stupid thing"
When opening an item user expects sub-menu to appear under it. If there was an item expanded above and you collapse it automatically, the cursor no longer points to the item that was selected. That makes user think "what did I just do and where did it go?"

If you are intereseted in the menu I developed, e-mail me to discuss the terms.

CyberScout
10-18-2002, 01:32 PM
Jan,

I posted a topic here yesterday about a FileTree script I have been working on for awhile. In the script I put a URL to one of the web sites I use that script on. You are welcome to the script if it works for what you are trying to do.

-CyberScout

CyberScout
10-18-2002, 01:34 PM
Actually, here is a linke to the thread.

http://www.codingforums.com/showthread.php?s=&threadid=8165

enjoy