View Full Version : Switch Menu - Close when refreshed

10-21-2008, 05:21 PM
1) Script Title: Switch Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm

3) Describe problem:

When a user clicks on the script, to make the drop down portion appear, it doesn't go back up once the user refreshes the page... it stays open.

What I want to happen is, whenever the page is refreshed, I want the menu to close, and go back to the starting position.

Thanks in advance!!

10-21-2008, 07:31 PM
It sounds like you have persistence enabled. Try turning it off inside the script:

var persistmenu="no" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)

10-22-2008, 06:57 PM
Thanks so much! :D