Click to See Complete Forum and Search --> : help with timers??


m_and_ms10
05-26-2004, 05:14 AM
hey everybody! i was wondering if any of you knew how to fix the timer that i have on my website, i website is a quiz for children and it asks a series of prompt questions, the problem is that the timer only starts after the questions have been asked. I would like the timer to start as soon as the page is loaded! The timer is situated in my status bar and i dont know if this is the problem?
my code is:
var gTimer1 = null;
var gTimer1Count = 0;

function Timer1()
{
gTimer1Count++;
window.status = "Timer1 Running - " + gTimer1Count;
gTimer1 = window.setTimeout("Timer1()",1000);
}
Timer1();

can anybody help? please???

Kor
05-26-2004, 05:55 AM
var gTimer1 = null;
var gTimer1Count = 0;

function Timer1()
{
gTimer1Count++;
window.status = "Timer1 Running - " + gTimer1Count;
gTimer1 = window.setTimeout("Timer1()",1000);
}
window.onload=Timer1;

m_and_ms10
06-01-2004, 06:23 AM
hey, sorry but i am new to this forum experience, the code you said didnt really work, the timer still only starts after the questions have been asked, i will post the page so that u can have a look, cheers

allan xox