Jump to content

Javascript accordion help needed


hanashite

Recommended Posts

I'm trying to add some new features to a nice Javascript based "accordion" navigation menu that I found at the Dezinerfolio website.

Here's my result so far.

 

Here's what I'm having trouble figuring out (not knowing if it's an HTML, CSS or Javascript issue):

 

  • Linkable buttons: In my example, the topmost ("Home") button doesn't expand as I want it to link to another page. Adding a normal HTML link to the text is easy, but I want the whole button to be linkable.
  • Highlighting of sub-sections: Whenever I click a button it is highlit with a blue line underneath it. However, I would also like the same to happen when I click on a sub-section link.
  • Nested buttons: it would be nice if I could press a button, then one or several nested buttons would appear with sub-sections inside.

 

Is any if this doable?

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...