The tipsy plugin seems to remove the title
attribute and assign its value to a custom attribute called original-title
to avoid the default browser tooltip from showing. Maybe in your case, this happens too late: The mouse hovers over the element, this initiates the native browser tooltip. Then, tipsy()
is executed on the element and switches the attribute name, but that is too late because the timeout for the native tooltip has already started.
You should probably prevent the default action of the event, for example:
$('#new_div').bind('mousover', function (e) {
tipsy(this);
e.preventDefault();
});
EDIT: As this does not seem to have the desired effect, please call tipsy($('#new_div'))
right after the div is created and remove the mouseover
handler. What you have been doing might be a bit problematic anyway: The tipsy plugin probably uses the mouseover
event, and you call .tipsy( { gravity: 'w' } )
in an onmouseover
event handler. Repeatedly, if you mouseout and then mousover again. That's a lot of unnecessary event assignments.