I am trying to create a menu panel in jquery, all is complete except for one problem. When I hover over a link, it shows a black panel, i want to be able to hide that panel only when mouse is out of that black panel area. Currently it fades out even if i am inside that black box.
Here is the script you can see the preview of by clicking the Preview link there and edit it there too:
It should be a very simple for experienced JQuery coders, I have not played with this as much, that's why unable to figure out.
Thanks
When you supply only one parameter to hover it uses it for mouse enter and mouse leave.
You should use hover instead of the mouseout event.
On your first call to hover supply a blank option as the second parameter.
On your second call to hover supply a blank function as the first parameter.
This prevents causing multiple calls to the same function.
I would say to use the mouseenter and mouseleave events to prevent the extra parameters but for some reason jsbin doesn't think it is a function.
http://jsbin.com/adofe/6/edit