title: jQuery: simultaneously fadeIn and fadeOut
body: <p>the following code which is called periodically by setInterval performs the following sequence:<br>
  1. fade in an image for 750 msec<br>
  2. diplay it for 6 secs<br>
  3. fade out the image for 750 msec<br>
  4. randomly select another image (function randomPic)<br>
  5. fade in for 750 msec and so on:  </p>
  
  <pre><code>$("#_fadee_").fadeIn(750, function() {
      $("#_fadee_").delay(6000).fadeOut(750, randomPic);
  });
  </code></pre>
  
  <p>You can see the effect <a href="http://moodle.hsbkob.de" rel="nofollow">here</a>. How can I get the fadeOut of the old image and the fadeIn of the new one to run simultaneously? </p>
  
  <p>Thanks, Ralf</p>