Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to let drop down menu disappear after mouse moves out the layer area?

 
Jason Wang
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, everyone:
I create drop down menu by using layers. I have a question for you guru. How to make all of the layers disappear (hidden) after the mouse leaves any one of the layers? I am talking about the layer here.
Thanks a lot and have a nice day.
Jason
 
Charlie Sturman
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
imo best javascript menu bar
http://brainjar.com/
http://brainjar.com/dhtml/menubar/demo.html
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been working on my own menu, what I did was put an onmouseover code on the layer that is below the menu. therefore when the person goes off of the upper layer onto the lower layer, it closes all of the layers that could have been open.
or you can do some sort of settimeout on a onmouseoff and undo the timer with an onmouseover
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic