View Full Version : Special Timer Function

05-07-2008, 02:57 PM
Hello all :)

I'm looking for a particular script or function, either freely available or might need some customising, for a timer to fit in with a PHP project I'm doing (I do PHP, not JavaScript).

I basically am after a timer which will count up from 0 to 2 minutes (In 0:00 format) and stop when it reaches 2 minutes, and then beep. It will need a start, pause and reset button. It will also need to be able to pick up the start time from a parameter I will define (It needs to keep counting through page refreshes and i'll be passing it the current time each time the page loads etc)

I have no idea how complicated this is or if its even possible, so any help would be appreciated, or even just a link to an existing script I might be able to play with would help.

Thanks in advance,

05-07-2008, 04:23 PM
It is certainly possible. And not too difficult either. I would write it for you just for fun if I had more time.

I googled 'JavaScript timer' and I found this within about 30 seconds: http://www.javascript-page.com/timer.html. Pretty close to what you want. I imagine you could tailor it if you wanted. You might have to learn a little JavaScript but I imagine it would be helpful to know anyway ;).

Hope this helps :)