I would suggest checking if the user is above the image on the onload event of the image, but there seems to be no way to check the state of the mouse over the image (at least in jQuery). So you can try to use the jQuery live event with mouseover and mouseout . I have doubts that this will cost the problem, but it's worth it:
jQuery(function(){ $('img.has_tooltip').live('mouseover', function(){ $(this).showTooltip(); }); $('img.has_tooltip').live('mouseout', function(){ $(this).hideTooltip(); }); });
If this does not work, perhaps you can use the mousemove event:
jQuery(function(){ $('img.has_tooltip').mousemove(function(){ $(this).showTooltip(); }); $('img.has_tooltip').live('mouseout', function(){ $(this).hideTooltip(); }); });
This should work as soon as the user moves his mouse, instead of the user having to move his mouse away from the image. Not perfect, but it will work for everyone except user pauses.
Of course, with both of these examples, switch the xxxTooltip methods with the correct one from the qtip plugin.
donut source share