jquery delay
snippet in javascript

jquery delay

user1321

$( "#foo" ).slideUp( 300 ).delay( 800 ).fadeIn( 400 );

jquery delay

user2590

setTimeout(
  function() 
  {
    //do something special
  }, 5000);