Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Countdown timer

Asked Modified Viewed 4,261 times
L
lsainsbury
L
Best Regards,
Lee
  • Senior Member, joined since
  • Contributed 270 posts on the community forums.
  • Started 53 threads in the forums
  • Started this discussions
asked
Senior Member

Hi,

Anybody know of any countdown timer code that works with PHPFusion (I suppose in a panel) and is compatible with Firefox and IE?

Thanks!
Lee
0 replies

4 posts

G
Gatecrasher
G
  • Newbie, joined since
  • Contributed 5 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

I'm looking for the same thing, I've found a german one but it does not seem to be editable.
0 replies
L
lsainsbury
L
Best Regards,
Lee
  • Senior Member, joined since
  • Contributed 270 posts on the community forums.
  • Started 53 threads in the forums
  • Started this discussions
answered
Senior Member

Check the one on my website (top of the page) - if you want the code - PM me!
0 replies
J
J_Bear
J
J_Bear 10
Jelle.
------
For every 60 seconds of anger, you lose one minute of happiness
  • Member, joined since
  • Contributed 74 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

This works fine for me. Just a tekst-countdown.

<?php
// countdown function
// parameters: (year, month, day, hour, minute)
countdown(2010,1,1,0,0);

function countdown($year, $month, $day, $hour, $minute)
{
  // make a unix timestamp for the given date
  $the_countdown_date = mktime($hour, $minute, 0, $month, $day, $year, -1);

  // get current unix timestamp
  $today = time();

  $difference = $the_countdown_date - $today;
  if ($difference < 0) $difference = 0;

  $days_left = floor($difference/60/60/24);
  $hours_left = floor(($difference - $days_left*60*60*24)/60/60);
  $minutes_left = floor(($difference - $days_left*60*60*24 - $hours_left*60*60)/60);
 
  // OUTPUT
  echo "Today's date ".date("F j, Y, g:i a")."<br/>";
  echo "Countdown date ".date("F j, Y, g:i a",$the_countdown_date)."<br/>";
  echo "Countdown ".$days_left." days ".$hours_left." hours ".$minutes_left." minutes left";
}
?>

Just put it in a new panel.
Edited by J_Bear on 03-01-2007 18:57,
0 replies
D
DontLook
D
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 8 threads in the forums
answered
Junior Member

Anyone know a way of making a countdown timer like the one at www.ajpoker.com It includes time till tournament start and reveals the password when time expires to those who are logged in.

0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet