I want to detect when the mouse is hovering over an element. Easy right? Wait, there's more
If I use, for an example, jQuery dialog, (have it up), and then exit the dialog with either enter
or esc
AND at the same time hover with the mouse over the element, (NOT MOVING THE MOUSE), that i want to detect hover on, it wont detect it, not untill i move the mouse.
How can you solve this?
Edit 1
Theres too much code too show but I will edit my question when i have more time.
What i basically have is a clickable div that shows color red when clicked. When a user clicks on that div the jquery dialog appears and the divs color change to red, note that i still have the div in red while the dialog is up. In my close event I remove the red color. BUT, If the user press ESC while hovering at that div location i dont want the red color to disappear..
So i want the divs color to disappear when the dialog is closed and IF the mouse isnt over that element. I also want the divs color to maintain that red color IF the mouse is over that hover element.
Atm when I hover over that element and when the dialog is up, and press ESC, the color disappears, which i dont want. If i then move my mouse slightly so that the mouseover event activates, the color changes...
Hope that calirfies what i want.. As I said ill edit with some code later..