menu drop down by Deluxe-Menu.com

DHTML Faq » The Items of the java popup menu stay expanded in the same state.

The Items of the java popup menu stay expanded in the same state.

Filed under: Recent Posts — Tags: , , , — admin @ October 23, 2008 at 5:55 am

Q:

Is there a way to have the java popup menu stay expanded in the same exact state when
I click on a menu item of the javascript tree view and go to a new page?

A:

There is no need to write additional code on a server side to remember what items were expanded/collapsed.
DHTML Tree Menu can save items state automatically.
Please, see the example of the menu that works with cookies:
http://dhtml-menu.com/tree-examples/tree-menuxp-save-state.html

Set the following parameter:

var tsaveState = 1;

and the menu remembers its structure for each user who visit your page.
Try to expand/collapse items. Then reload the page and you’ll see results.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment