I wanted to detect whether the mouse was over an element when the web page was loaded. It appears this is not possible with jQuery - mouseover, hover etc. require a mouse mo
My solution: add a new CSS value with the hover pseudoselector, then test for that. This seems to only work sometimes, however.
CSS:
#el:hover {background-color: transparent; }
jQuery:
if ($('#el').css('background-color') == 'transparent')