I\'d like to add a timeout to this tooltip code so it only displays if the mouse hovers over it after a while rather than immediately... I tried adding the setTimeout()
setTimeout()
As you're using animation, you can use .delay() to defer the appearance of your tooltip:
$(mcTooltip).text(mcHoverText).delay(1000).show('fast');
In your mouseout function, use .stop to cancel any existing delays or animations, and then hide the tooltip:
mouseout
$(mcTooltip).stop(true).hide('fast');