Jump to content

10 Countries Run Countdown Timer


tiggrr1

Recommended Posts

I use a php script which codes the text onto an image. I post an image like normal but use the php page rather than the image itself.

I would host others but I think my bandwidth would suffer! I'll paste the script later for those who want it. Or do a google search for "Myspace countdown".

Link to comment
Share on other sites

KevinR wrote:
Peter, why is your countdown timer and the one at the top of the page showing several hours difference  ;)


I suspect he is intending to leave 11 hours before the rest of us to get a good headstart in his slow old Herald / Acclaim... :-)

Or is he running Pacific Central time???

Cheers

Colin

Link to comment
Share on other sites

  • 2 weeks later...

I forgot about this;

Code:
<?<br />$month = 9; <br />$day = 10; <br />$year = 2009;<br /><br />$target = mktime(0,0,0,$month,$day,$year);<br />$diff = $target - time();<br /><br />$days = ($diff - ($diff % 86400)) / 86400;<br />$diff = $diff - ($days * 86400);<br />$hours = ($diff - ($diff % 3600)) / 3600;<br />$diff = $diff - ($hours * 3600);<br />$minutes = ($diff - ($diff % 60)) / 60;<br />$diff = $diff - ($minutes * 60);<br />$seconds = ($diff - ($diff % 1)) / 1;<br /><br />header ("Content-type: image/png");<br />$imgname = "10cr.png";<br />$im = @imagecreatefrompng ($imgname);<br /><br /><br />imagestring ($im, 3, 65, 18,  "            $days days $hours hours $minutes minutes $seconds seconds", $blue);<br />imagepng ($im);<br />imagedestroy ($im);<br />?><br />


Upload a file called 10cr.png and it'll use that. It counts down to the day, not the time.

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...