/ Published in: JavaScript
URL: http://www.evanbot.com/article/jquery-delay-plugin/4
Expand |
Embed | Plain Text
// 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"); }); }); });
Comments
Subscribe to comments
You need to login to post a comment.

Thanks for posting my script!