Does anyone know of any script that is basically a looping stopwatch that continues to run server side even if you close the web page & go back? Been googling around but all i can find are ones that you load page up, click start & if you refresh page its reset & I need a continuous running timer that counts down to 0 & then starts counting down again.
Anyone got any idea's where I can find one?
You would use a cookie to store the information in to client side.
You would need to store a reference to when the stopwatch / timer was started, a reference to the time when the page was closed and a reference to when the timer is to be considered lapsed and or ended.
So each load of the page would result in the cookie being loaded, the existing data deleted (as in delete the cookie) then on page close set a new cookie with the above information.
All you need to do is google setting and deleting and reading cookies, how to run a function on web page close and your timer / stop watch.
Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
I laughed that hard I burst my colostomy bag... (\\.\ May03)
Life for some is like a car accident... Mine is like a motorway pile up...
Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)