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 Close DIV Popup When it Looses Focus Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Close DIV Popup When it Looses Focus" Watch "Close DIV Popup When it Looses Focus" New topic
Author

Close DIV Popup When it Looses Focus

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
I am using a link:hover to open a DIV using jQuery to load DIV with a table of options.

I need this DIV to stay displayed only while the cursor is within the boundries of the DIV.

I have tried to set onmouseout event to DIV that gets loaded but the DIV disappears(I suppose the onmouseout is fired) when I move the mouse from the calling link to the option table.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Check out .hover().


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
Bear Bibeault wrote:Check out .hover().


The following works great when I run it by itself. However, when I load it into a DIV tag using jQuery.load the hover will display the option correctly but when I move the cursor off of the hover item to move down the option list the options disappear.

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
I figured it out. I put the hover on the ul instead of the li tag.
 
 
subject: Close DIV Popup When it Looses Focus
 
Similar Threads
100% height does not work
Positioning DIVs
Progress GIF Just Displays but No Animation
DHTML menu problems, keeps going and going...
Unwanted Scrollbars