PDA

View Full Version : Collapse menu on page load



dieseldave
03-11-2011, 04:25 AM
1) Script Title: Glossy Vertical

2) Script URL (on DD): http://www.dynamicdrive.com/style/csslibrary/item/glossy-vertical-menu/P110

3) Describe problem: I am using the menu to filter the data on the same page - by passing filter params with the url. Howeber, If I navigate away from the list page to the mainmenu then go back the menu is still expanded to the last selected category. If I set the persiststate to false the menu collapses after each selection. Is there a way to collapse it when you leave the page?

<a class="menuitem" href="eventlisting.aspx">Return to Overall Ranking List</a>
<a class="menuitem submenuheader" href="resultwpoints.aspx" >Men: Elite</a>
<div class="submenu">
<ul>
<li><a href="resultwpoints.aspx?FILTER=MEA">All Elite Men</a></li>
<li><a href="resultwpoints.aspx?FILTER=MES">Standard Frame</a></li>
<li><a href="resultwpoints.aspx?FILTER=MER">Recumbent</a></li>
<li><a href="resultwpoints.aspx?FILTER=MEH">HPV</a></li>
<li><a href="resultwpoints.aspx?FILTER=MEF">Fixed Gear</a></li>
<li><a href="resultwpoints.aspx?FILTER=MEC">HandCycle</a></li
</ul>
</div>

Surely this must be possible. I just want the menu to remain expanded as long as it is re-retrieving but if the user navigates to another page and comes back I want the menu to be collapsed - they have to start over. Isnt there some function that could be called when the page closes to reset the menu to collapsed?