[jQuery] Re: How do you delay for a few seconds

2007-07-16 Thread Andy Matthews
To: jquery-en@googlegroups.com Subject: [jQuery] Re: How do you delay for a few seconds Some folks are lobbying for a pause(ms) method, but it's not in the code yet. There's a plugin to do what you want though; if you dig around in the thread archives for animation pause plugin you can probably find

[jQuery] Re: How do you delay for a few seconds

2007-07-16 Thread Klaus Hartl
Andy Matthews wrote: I think a pause method would be of great use. I looked for this very thing time and time again. It would be nice to have it available. Here's a one liner: jQuery.fn.pause = function(ms) { return this.animate({ opacity: 1 }, ms); }; I know I know, it's still not in the

[jQuery] Re: How do you delay for a few seconds

2007-07-15 Thread jazzle
See http://www.learningjquery.com/2007/01/effect-delay-trick (it's not a stupid question btw) goofy166 wrote: I have mastered many of the incredible features of jquery today for the first time, but for the life of me I can't figure out how in the heck you can get a div to display for a

[jQuery] Re: How do you delay for a few seconds

2007-07-15 Thread Tane Piper
I agree, I was going to be looking for something like this. Would be nice to have a jQuery function, I'll check out that plugin On 7/15/07, jazzle [EMAIL PROTECTED] wrote: See http://www.learningjquery.com/2007/01/effect-delay-trick (it's not a stupid question btw) goofy166 wrote: I

[jQuery] Re: How do you delay for a few seconds

2007-07-15 Thread jazzle
it's not a plugin, much simpler than that. just a matter of including .animate({opacity: 1.0}, 3000) or similar in a chain. (the opacity is faded from 1 to 1 over 3 seconds, hence no visible change over that time) Tane Piper wrote: I agree, I was going to be looking for something like

[jQuery] Re: How do you delay for a few seconds

2007-07-14 Thread Josh Nathanson
Some folks are lobbying for a pause(ms) method, but it's not in the code yet. There's a plugin to do what you want though; if you dig around in the thread archives for animation pause plugin you can probably find the link for the plugin. -- Josh - Original Message - From:

[jQuery] Re: How do you delay for a few seconds

2007-07-14 Thread Erik Beeson
Maybe (untested): $('#myDiv').show(); setTimeout(function() { $('#myDiv').hide(); }, 5000); Where 5000 is the duration to show it for, in milliseconds (i.e., 1000 = 1 second). Hope it helps. --Erik On 7/14/07, goofy166 [EMAIL PROTECTED] wrote: I have mastered many of the incredible