countdown display

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alm2009
Forum Newbie
Posts: 7
Joined: Tue Dec 01, 2009 12:30 pm

countdown display

Post by alm2009 »

Hi,
I need to display 10 digit countdown display on the web page
D H M S mS
21 15 59 55 99

When starting with the least significant digit (Right digit) and going to the left
First two digits: 100th of a second
Second two digits: second
Third two digits: minutes
Fourth two digits: hours
Fifth two digits: days

1. How would I display the running numbers without refreshing the page?
So once you load the page with initial values, the numbers will run all the time.
Is it possible to do with PHP or I must use javascript?

2. Same but different. I have analog clock program that creates png image every second. I would like to replace (update) the analog clock every second, again without refreshing the all web page.

Thanks in advance.
User avatar
Grizzzzzzzzzz
Forum Contributor
Posts: 125
Joined: Wed Sep 02, 2009 8:51 am

Re: countdown display

Post by Grizzzzzzzzzz »

alm2009 wrote: Is it possible to do with PHP or I must use javascript?
Javascript
hostingon
Forum Newbie
Posts: 6
Joined: Fri Dec 04, 2009 5:00 pm
Location: USA

Re: countdown display

Post by hostingon »

Here is exmaple with javascript:

http://www.ricocheting.com/js/digiclock.html
Post Reply