Space Cowboy Posted June 14, 2006 Share Posted June 14, 2006 OK, im trying to get working a countdown clock for a kind of game im doing.Basically I need the clock to have only minutes and seconds, and it counts down from say 10 minutes from whenever the user enters the site.I understand this may need to be java script as I want people to actually see the minutes and seconds tick away.When the time is up, I need the page to be re-directed to a new page which will state that their time is up- game over etcAs this game spans over 48 web pages, the clock obviously needs to carry forward its time (minutes remaining) over to each page.Ideally I would like the 'clock/timer' to float at the top of each screen (perhaps with CSS?).Can anyone help with this? Quote Link to comment https://forums.phpfreaks.com/topic/11967-code-needed-for-clock-countdown-script/ Share on other sites More sharing options...
trq Posted June 14, 2006 Share Posted June 14, 2006 Yes, this is a javascript question and there is an entire forum dedicated to javascript questions. Quote Link to comment https://forums.phpfreaks.com/topic/11967-code-needed-for-clock-countdown-script/#findComment-45459 Share on other sites More sharing options...
Space Cowboy Posted June 14, 2006 Author Share Posted June 14, 2006 but this will obviouly still use php to do the things I asked? Quote Link to comment https://forums.phpfreaks.com/topic/11967-code-needed-for-clock-countdown-script/#findComment-45466 Share on other sites More sharing options...
trq Posted June 14, 2006 Share Posted June 14, 2006 I cant see where any of that would use php. Quote Link to comment https://forums.phpfreaks.com/topic/11967-code-needed-for-clock-countdown-script/#findComment-45467 Share on other sites More sharing options...
wildteen88 Posted June 14, 2006 Share Posted June 14, 2006 Yes you can javascript for all of what you want to do. But to keep the clock counting down you'll probably want to have a frameset so one frame has the counter and the other has the game.Or just have the game in an iframe. Quote Link to comment https://forums.phpfreaks.com/topic/11967-code-needed-for-clock-countdown-script/#findComment-45596 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.