A jQuery plugin to test if an element is currently hovered.
jquery-ishovered.js (729 bytes)
Dual licensed under the MIT and GPL licenses.
Test if an element is hovered using:
$(selector).isHovered();
Or:
$.isHovered(selector);
Is Link 1 hovered? N
Is Span 2 hovered? N
Is any A element hovered? N
Is any SPAN or A element in Example 1 hovered? N
Are any of the examples hovered? N
Is Example 2 hovered? N
Is Example 3 hovered? N
I will fade out in 3 seconds if the mouse doesn't move and you are hovering me.
I will fade out in 2 seconds if the mouse doesn't move and you are not hovering me.
© 2010 Mktg Dept