I have a script that adds full images dynamically over thumbnails when you hover over them. I\'ve also given the full images a CSS :hover style to make them expand to a larger w
Most browsers update their hover
states only when the cursor moves over an element by at least one pixel. When the cursor enters the thumbnail's img
it gets hover
applied and runs your mouseenter
handler. If you keep your cursor still until the full-sized image loads, your old img
(the thumbnail) will keep the hover
state and the new one won't get it.
To get it working in these browsers, move the hover
pseudo-class to a common parent element in the CSS; for example, enclose both imgs in a span.