XML Navigation Menu that Remembers Expanded Nodes

Hey everyone,
Somebody asked me (nicely!) a few weeks ago whether I would explain how to make a drop-down menu that remembered which nodes were expanded. The idea was to have a navigation menu on a web site that did not reset to a collapsed state each time a new page was loaded.

I have attached the source files for that :slight_smile:

Cheers!
Kirupa :nat:

Kirupa,
This menu is great. Is there anyway where you could arrange this menu for 3 levels? Your help is much appreciated.

-Matt

[quote=kirupa;2043196]Hey everyone,
Somebody asked me (nicely!) a few weeks ago whether I would explain how to make a drop-down menu that remembered which nodes were expanded. The idea was to have a navigation menu on a web site that did not reset to a collapsed state each time a new page was loaded.

I have attached the source files for that :slight_smile:

Cheers!
Kirupa :nat:[/quote]