Page 1 of 1

Javascript real time count down clock

Posted: Tue May 20, 2003 3:35 am
by Skittlewidth
I'm currently looking at a a few scripts which I hope to adapt that could make this possible, but I'm a Javascript novice with limited time, so I was wondering if anyone coud give me a few pointers.
I've got a project where I have to create an online multiple choice test. Each "page" (its actually one page that calls the questions form a database after each submit) contains 1 question out of the total 40 and the user has 60 minutes to do the test in.

I want to create a timer that will count down and be visible to the user on each page.
I figured it might be possible to do it in Javascript as I've seen this kind of script before. On SUBMIT I want the current time on the clock to be recorded to a variable and passed to the next page where the timer can then resume countdown.

Trouble is I don't even know where to begin this kind of thing in Javascript. :?
I'm not asking anyone to write the script for me, because I honestly enjoy the challenge, but some tips and pointers to get me started would really help!

Right I'm off to Hotscripts for a look there
Thanks!