[jQuery] Re: Anyway to kill a bunch of queued up mouse events

2007-07-30 Thread Dan G. Switzer, II
Mitchell, Does anyone know if there is a way a way to kill any queued up mouse events after the user does a mouse out? There currently isn't a native way to clear an event queue in jQuery. However, check out the hoverIntent() plug-in. The plug-in is designed to minimize the problem you're

[jQuery] Re: Anyway to kill a bunch of queued up mouse events

2007-07-30 Thread Mitchell Waite
Dear Dan Thanks so much for that plugin tip, I will try it today. I did find that the while the built in hover function in jQuery works for buttons, the pure css approach using the background-image position approach works just as well and uses no JS. Plus the code is so much shorter. But there

[jQuery] Re: Anyway to kill a bunch of queued up mouse events

2007-07-30 Thread Terry B
the logic should be something like: var timeInSecs = 0.8; var mouseEventCaller; onHoverFunctionInit () { clearTimeout(mouseEventCaller); var timeout = Math.ceil(timeInSecs*1000); mouseEventCaller = setTimeout(onHoverFunctionExec(), timeout); } onHoverFunctionExec() {

[jQuery] Re: Anyway to kill a bunch of queued up mouse events

2007-07-30 Thread Mitchell Waite
Dan Do you have any impression of the CPU drag that comes with using hoverIntent? I am using the css approach and its 0 MIPS. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Monday, July 30, 2007 6:08 AM To:

[jQuery] Re: Anyway to kill a bunch of queued up mouse events

2007-07-30 Thread Brian Cherne
I haven't followed this thread, so I apologize if my input is out-of-context. The CSS approach will likely be the fastest assuming you've cased for IE6's background flicker issue. If you haven't, or you can't, then a JavaScript approach will appear faster. hoverIntent only tracks mouse movement

[jQuery] Re: Anyway to kill a bunch of queued up mouse events

2007-07-28 Thread Stephan Beal
On Jul 28, 1:30 am, Mitchell Waite [EMAIL PROTECTED] wrote: I have this small script that shows and hides a button when you mouse over a Mitchell, please, for the second time, DO NOT HIJACK THREADS!!! This is at least the 3rd time i've seen you do it in the past few days! When you have a

[jQuery] Re: Anyway to kill a bunch of queued up mouse events

2007-07-28 Thread Mitchell Waite
I started this thread myself, how is that hijacking? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephan Beal Sent: Saturday, July 28, 2007 8:17 AM To: jQuery (English) Subject: [jQuery] Re: Anyway to kill a bunch of queued up mouse events

[jQuery] Re: Anyway to kill a bunch of queued up mouse events

2007-07-28 Thread Stephan Beal
On Jul 28, 5:59 pm, Mitchell Waite [EMAIL PROTECTED] wrote: I started this thread myself, how is that hijacking? The top post of this thread was from Nicolas Hoizey and is about a completely different topic: From: Nicolas Hoizey [EMAIL PROTECTED] Date: Thu, 26 Jul 2007 23:12:51 +0200 Local:

[jQuery] Re: Anyway to kill a bunch of queued up mouse events

2007-07-28 Thread Mitchell Waite
I have no idea how that happened, but I will be more careful. BTW I try to snip out chunks of text but I am not perfect, and so are a lot of other people here. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephan Beal Sent: Saturday, July 28,

[jQuery] Re: Anyway to kill a bunch of queued up mouse events

2007-07-28 Thread Stephan Beal
On Jul 28, 7:54 pm, Stephan Beal [EMAIL PROTECTED] wrote: can find. The New Topic button is unfortunately not available when reading a post (it's only visible from the list-of-posts view). i lied - it does show up as a normal link in the top/right of the page. When in the list-of-posts view it

[jQuery] Re: Anyway to kill a bunch of queued up mouse events

2007-07-27 Thread Mitchell Waite
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)