If I understood your question correctly, you added the hover
event using jQuery, and you want to fire this event manually, regardless of the mouse.
If I understood correctly, you want to call mouseenter
to trigger the mouseenter
event.
If I misunderstood, and you actually have a CSS :hover
rule that you would like to run using Javascript, this is not possible.
Instead, you should add the class name to the rule (for example, something:hover, something.FakeHover { ... }
) and add this class name using jQuery. (e.g. $(...).addClass('FakeHover')
).
SLaks Dec 31 '09 at 0:03 2009-12-31 00:03
source share