Just wanted to let you know that the tooltip in the example at
isn't really functional. If you highlight a div and quickly hover off, it actually inverts the functionality of the tooltip to show when not selected. This can be easily fixed. In the timeout's callback under the
" // wait half a second, then show tooltip" comment,
add a line anywhere in the function with the statement
waitingToShow = false
A corollary to that which would make the example much more clear would be to put the statement
// while waiting to show tooltip, don't let other
// mousemoves try to show tooltip too.
waitingToShow = true;
above the setTimeout call.
Could save a lot of headache for somebody trying to get a very common functionality in their app.
Robert Concepcion III