Expand and collapse tree menu

Hi all - looking for a js tree menu that uses "expand all" and "collapse all" links at the top, but they're the same link.
In other words, one becomes the other when clicked since you can't do both at the same time.

The problem is I can't find an example - do you have any links to one such menu?

Thanks ;-)
LVL 31
seanpowellAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hieloCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bpmurrayCommented:
Do you want a freebie or a commercial solution? Have a look at these:
   http://www.treeview.net/
   http://www.dynamicdrive.com/dynamicindex1/navigate1.h
   http://www.learningmovabletype.com/a/000674expandable_list/

I have to admit though, that I'd personally perfer to use a toolkit like Dojo (dojotoolkit.org) where the sheer power of the whole makes it completely pointless to try to roll your own. Even IBM and Apache use this stuff, so it's pretty darn good!
0
seanpowellAuthor Commented:
Thanks - used b0lsc0tt's solution, should be workable.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.