Hello,
I have created a typical expanding/collapsing menu using HTML/CSS/Javascript. After a user clicks on the menu I would like the menu to persist, stay open, when the new page is loaded. I believe the correct way to do this is to use php sessions. I understand how sessions work, but do not know what variables I would need to store. The menu is four levels deep at places.
Here is a small portion of the menu.
I am having a hard time wrapping my head around what actually will need to be stored in a session to open the menu to a specific location.HTML Code:<li class="treenode"> <a href="#">Mayor</a> <ul> <li><a href="#">Contact</a></li> <li><a href="#">Budget</a></li> <li><a href="#">Biography</a></li> <li><a href="#">Message</a></li> <li><a href="#">Newsletters</a></li> <li><a href="#">Quickfacts</a></li> <li><a href="#">City Council</a></li> </ul> </li>
Thank you for your help.






Bookmarks