![]() |
Countdown timer with php
I have not worked a lot with javascript in the past. What I am trying to is make it count down live with javascript and php. The php statement is
PHP Code:
|
Quote:
Have a look at these JavaScript object methods: http://www.w3schools.com/jsref/met_win_setinterval.asp And this one: http://www.w3schools.com/jsref/met_loc_reload.asp You should be able to figure it out now :) Or are you using AJAX with a framework to call a PHP file somewhere and in that is the code that renders the "counter" and when that counter reaches zero it should reload ? |
I have a countdown demo at http://sidisinsane.com/playground/css-countdown/ that uses only PHP. There's a link at the bottom to view the code.
|
The jQuery Countdown plugin by Keith Wood is by far my favorite countdown script. I've used it on many sites and it's always been easily adaptable to suit my needs.
|
| All times are GMT. The time now is 01:24 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0