File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to let drop down menu disappear after mouse moves out the layer area? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to let drop down menu disappear after mouse moves out the layer area?" Watch "How to let drop down menu disappear after mouse moves out the layer area?" New topic
Author

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

Jason Wang
Greenhorn

Joined: Apr 13, 2001
Posts: 26
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

Joined: Apr 04, 2002
Posts: 112
imo best javascript menu bar
http://brainjar.com/
http://brainjar.com/dhtml/menubar/demo.html
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to let drop down menu disappear after mouse moves out the layer area?