[jQuery] Re: Help with fadeIn / fadeOut

2008-04-22 Thread ripple
You have to use a callback: $("a").click(function () {$("div").fadeIn(3000, function () { $("div").fadeOut(100);});return false; }); Look it up in the jQuery documentation. It's quite simple to use. http://2whoa.com/dominate/

[jQuery] Re: Help with fadeIn / fadeOut

2008-04-22 Thread Donald J Organ IV
This should do it. function swapDivs(oldDivId, newDivId) { $("#" + oldDivId).fadeOut("slow", function() { $("#" + newDivId).fadeIn("slow"); } // swapDivs ); [EMAIL PROTECTED] wrote: > Hi, > > If you look at this page >

[jQuery] Re: Help with fadeIn / fadeOut

2008-04-22 Thread Jörn Zaefferer
[EMAIL PROTECTED] schrieb: Hi, If you look at this page http://elearningrd.info/jrl/policies.php and click on each of the links next to the arrow graphics, you'll see the center text switches out. However, it is choppy. It seems that as one div is fading out, the other is fading in at the s