I am using the following code to generate a tooltip box. When a user hovers over a specified span the box toggles. The propblem is I have 20 or 30 of these on the page, so if a user runs their mouse down the list I get all 30 appearing and dissapearing in sequence. Is there any way I can stop the effect running if there’s another tooltip either currently visible or in the process of being animated?
$('td.aO .tTCont').hover( function(){
$(this).siblings('div.toolTip').delay(100).fadeToggle('200');})
You can stop the current animation with
.stop()and remove all queued/pending animations with.clearQueue().Calling (one of) them for the respective selector before you que another animation will do the trick.
You will probably have to play around with them to find a configuration that looks alright. 🙂