title: setInverval and delay
body: <p>I am trying to make a div bounce every 4 seconds and after 15 seconds fadeOut. The code bellow makes the div disappear and the bounce doesn't happen.</p>
  
  <pre><code>$(document).ready(function(){
      function salta() {
          $('.recomenda').effect("bounce",{ times:4 },300);
      }
      setInterval(salta, 4000);
      $('.recomenda').delay(15000).fadeout('slow');
  });
  </code></pre>
  
  <p>This isn't doing the job, any hint you can give me?</p>
  
  <p>Kind regards.</p>
  
  <p>With the help of Matt i figured how to do it:</p>
  
  <pre><code>function salta() {
      $('.recomenda').effect("bounce",{ times:4 },300);
  }
      var interval = setInterval(salta, 3500);
  
  setTimeout(function (){ 
      clearInterval(interval);
      $('.recomenda').fadeOut('slow');
      }, 15000);
  </code></pre>