Created
October 19, 2011 23:26
-
-
Save matharchod/1299985 to your computer and use it in GitHub Desktop.
A jQuery function that creates a "busy" message for 10 seconds by switching CSS classes on multiple elements simultaneously.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//BUSY MESSAGE | |
function busy() { | |
var x = $('#header a, #portfolio a');//ALL ELEMENTS TO BE AFFECTED | |
$(x).addClass('busy'); | |
setTimeout(function(){ | |
$(x).removeClass('busy').addClass('ready'); | |
}, 10000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment