[jQuery] Can you treat hover as a boolean?
Hi,
I am trying to build a dynamic nav menu. When you hover over a given image,
a fly-out menu appears to the right of the image.
I want the fly-out to disappear when the user hovers off the initial image,
but not if they hover over the fly-out menu.
Is there a way to detect if one or the other element is being hovered?
ie if($(image).hover.is(true) || $(fly-out).hover.is(true)){do something}
(The above does not work)
I tried to set the hover on for the fly-out to show() the fly-out, but it
didn't override the hover out of the image which is calling the hide() for
the fly-out.
I am a bit of a n00b to jQuery and would aprieciate any help.
Cheers
--
View this message in context: http://www.nabble.com/Can-you-treat-hover-as-a-boolean--tp23046114s27240p23046114.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.