Mitch

 

One way to fix it is to reduce the mouse out fadeTo time from 500 to 100 so
it happens almost immediately:

 

      $("#trigmask").hover(function() {

            $("#nest").fadeTo(500,1.0)

            $("#But1frm").show();

      }, function() {

            $("#nest").fadeTo(100, .35)

          $("#But1frm").hide()

      });

 

Now if  you move the mouse quickly it won't be so funky.

 

http://www.whatbird.com/wwwroot/3statebutton_framed_4.html 

 

But I am sure there is a better way. 

 

I was thinking I might use one() to unbind the event handler but I am not
smart enough to see how to do that.

 

Mitch

 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mitchell Waite
Sent: Friday, July 27, 2007 4:31 PM
To: [email protected]
Subject: [jQuery] Anyway to kill a bunch of queued up mouse events

 

 

I have this small script that shows and hides a button when you mouse over a

graphic. I added a fadeTo inside it so my button graphic would fade in and

out nicely. However when you move the mouse in and out fast it queues up the

fadeTo events and acts poortly.

 

http://www.whatbird.com/wwwroot/3statebutton_framed_4.html

 

 

Reply via email to