Sounds like a good idea, but according to the Plugin page, "this
plugin tracks the user's mouse onMouseOver and waits until it slows
down before calling the onMouseOver function." That probably won't be
useful here: What I need is for stop() to only affect the hover
functions.
As a work-around, I
did you try using the hoverIntent plugin ? I find that it makes hover events
much easier to work with.
http://plugins.jquery.com/project/hoverIntent
LAb[au] _ *lab*oratory for *a*rchitecture and *u*rbanism
Alexandre Plennevaux
Lakensestraat 104 Rue de Laeken
Brussel 1000 Bruxelles
Belgiƫ _ Be
Good call, I didn't know about stop().
I have one more problem though: stop() stops all animations, so the
next action (hide all of these boxes if any is clicked) gets halted. I
tried using unbind(), but it looks like it's either not working or
(more likely) is being terminated by the hover() met
Stop all previous animations before starting a new one:
$(".block img").hover(function() {
$(this).stop().animate({
width: '120px',
height: '120px',
marginTop: '5px',
}, "normal")
},function(){
4 matches
Mail list logo