Return to Snippet

Revision: 9730
at November 19, 2008 05:36 by jamesming


Initial Code
// Wait for #link to be clicked...
$("#link").click(function(){

  // Delay 1 second...
  $(this).delay(1000,function(){

    // Then display #hello
    $("#hello").css("display","block");

    // Then delay another 3 seconds...
    $(this).delay(3000,function(){

      // Change text color to blue
      $("#hello").css("color","blue");

    });
  });
});

Initial URL
http://www.evanbot.com/article/jquery-delay-plugin/4

Initial Description

                                

Initial Title
jQuery Delay Plugin

Initial Tags
jquery

Initial Language
JavaScript