This is a discussion on "request for help in countdown timer" within the Classic ASP section. This forum, and the thread "request for help in countdown timer are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
request for help in countdown timer
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
request for help in countdown timer
hi all, i am currently dtg a quiz module that has only 1 qns per page. the user make his choice then submit the page and the page reloads wit hnext qns. at teh end of the 10 qns, the score will be shown. may i ask if anyone noes how to do a countdown timer from the first page till , eg 10mins. to finish the quiz else the quiz will just end at 10mins?
thanks |
|
|
|
|||
|
would this not work? ive adapted it slightly from this website. i was thinking you could have this script in a small frame at the top, and adapt it so that in a form box it has the remaining time, instead of the status bar, then after the time it redirects you to the page at the end of the quiz, carrying in the query strings the name or id of the person doing the quiz?
|
|
|||
|
reply to help given(query)
hi benbramz, i wanna say thanks for helping me in solving this issue.
at the moment, i call <body onLoad="InitializeTimer()"> to start the timer. however, there is an issue. as i had set only 1 qns in say "quiz.asp", then wen the first qns is answered, it will reload the page for the next qns. eg to "quizasp?qid=1&userAns=0" and the 2nd qns is then shown. however, the timer always starts at teh time in sec we had set in the new loaded page. cld there be a way to just let the timer run and not be set back to the predefined time we set in all the pages reloaded? eg, i set the timer to 60s, it cld hav run to 55s wen the user ans the first qns, when the page reload to teh next qns, the timer is then set again to 60 s instead of continuing from 55s? thanks!! |
|
|||
|
yeah i know what u mean, you would have to either have:
A: the timer in a seperate frame at the top of the page, or B:could you adapt the timer to carry the remaining time in a query string and then start a fresh timer with the new time.... |
![]() |
| Tags |
| request, help, countdown, timer |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Timer won't work | gleb | JavaScript Forum | 1 | Sep 12th, 2007 08:43 |
| 1st timer hosting questions | jimbaines | Hosting & Domains | 16 | Jun 21st, 2007 11:27 |
| 1st Timer Here, Back in the game | allrightythen | Introduce Yourself | 7 | Jun 19th, 2007 01:17 |
| Javascript Timer | spinal007 | JavaScript Forum | 0 | Apr 1st, 2007 15:02 |
| Self Updating Timer. | Amin | PHP Forum | 4 | Jun 24th, 2005 18:37 |