Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Thanked 0 Times in 0 Posts

    Special Timer Function

    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,

  2. #2
    New Coder
    Join Date
    May 2008
    Thanked 2 Times in 2 Posts
    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts