I'm trying to create a tooltip that comes up 700ms after the mouse rolls onto a button. When the mouse rolls off, the tip should disappear. Currently I have the following code that brings the tip up on mouseover and takes it away on mouseleave:
onmouseover:function(editor,url) {
$('#mlinc_tip').show();
},
onmouseleave:function(editor,url) {
$('#mlinc_tip').hide();
}
This works fine, but no delay.
If I change the onmouseover function to:
onmouseover:function(editor,url) {
setTimeout(function() {
$('#mlinc_tip').show(0);},700);
},
I get the 700ms delay on mouseover but when I roll the mouse off of the button, there's chatter that generates a couple of mouseover's before the mouse is completely off, and those start the timeout again and 700ms later the tip is back.
Thanks for any ideas.