Countdown timer attached to a button


#1

Hello, this is my first post, I’m creating a Online RPG for my tech class at school and I am trying to design a visible count down timer that will greyout a button and make it unusable for a certain amount of time. So far I have absolutely nothing, anyone shed some light on how I would go about doing this or post some code for me? Thanks!

Jon


#2

Considering that you would need to “Submit” each time you want to update your timer, I don’t believe PHP is the choice you want. Instead you probably want to look at Javascript. A quick google search turned up http://www.javascript-page.com/timer.html Which is a timer. You could then have a “Button” enabled based on what time is displayed.