Jump to content

javascript/jquery expanded and collapsed menus - pls help


stuck

Recommended Posts

I found the following javascript dropdown menu down the right hand side of this web page - looks cool.

 

http://www.equanet.co.uk/catalogue/Computers/Laptop/Laptops

 

one flaw with this however is that when u select an item in the list the page refreshes but the category collapses. would anyone know where i could find a menu like this one but where the collapsed and expanded states are retained after a page refresh. is it at all possible...

 

Any help would be greatly appreciated.

Link to comment
Share on other sites

I currently don't know of any accordion plugin that saves the open/closed states.

 

I believe the only way to approach this would be to use cookies. You need to update a cookie everytime a user clicks on the menu, and on page load have to read the cookie to distinguish which are to be left open/closed.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...