Forum Moderators: open

Message Too Old, No Replies

timed disable button

really need some help with timed disable button

         

tarairvine

10:20 am on Aug 2, 2010 (gmt 0)

10+ Year Member



I have this slideshow and it's working really well but I need to disable the next and previous buttons for 5 seconds after they are clicked. If a user clicks too many times they break the slideshow completely.

Since I have no idea how to do this apart from jQuery and i'm unsure of syntax issues.



setTimeout(function() { ENABLE A HREF #NEXT }, 5000);


Any help will be greatly appreciated!

Tara

coopster

10:48 pm on Aug 2, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Tara.

If you are using jQuery >= 1.4 you can use the delay() [api.jquery.com] function.