PHP Code:
<?
//ignore this line %
$time = /*time*/; //use this to set the end date
//ex: you could use time()+(2*7*24*60*60)
//or specify using mktime(), etc
$rem = $time-time();
$sec = $time%(60);
$min = $time%(60*60);
$hr = $time%(60*60*24);
$days = round($time/(60*60*24));
//do whatever now, like echo;
?>
Something like that.
This counter will not be live, so if you need it to change on the page, you'll need to use PHP to give javascript a value (just echo the PHP results into the source in the middle of the javascript to set a variable), then you could do a continuous countdown that way.
Bookmarks