View Single Post
Old 08-17-2012, 09:39 PM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
Code:
var running = false;
$(function() {
    $('#test').click(function() {
        if (running == true) return;
        running = true;
        $('#test2').fadeIn(1000).delay(1000).fadeOut(1000, function () {
            running = false;
        });
    });

});
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote