This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Custom vertical slide navigation component in javascript.....

 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, Im wanting to implement a custom vertical slide navigation component in javascript code.

I have it to where if you hover over an item that has a sub list, it goes to the next, but I only have it to where it can go to one sub list.

I'm not sure how I'm going to keep track of the other sub lists of sub lists.

I was thinking about using a 'this.next' variable that hold the string name of the id of the next menu, and also have a 'this.prev' for the string name of the id of the previous menu, but I don't know how I'm going to get around the fact that if I move off of an item, go back to the root node 'mainmenu', but if i go off of one menu to a submenu, it will execute that same cod on "onmouseout" and go back to root menu 'mainmenu' each time.

I'm lost

Justin Fox
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic