[Webinar] Learn how to a build a cloud-first strategyRegister Now


Countdown Graphic

Posted on 2006-04-20
Medium Priority
Last Modified: 2013-11-19
How can I put a graphic showing a daily countdown of days with the amount of days left showing on the page?  Example;  if there were twenty days left until the event a large 20 would appear  and the next day a large 19 and so on with the announcemment only "XX" more days left until (the event).  Such as there are only 20 more shopping days till Christmas!
Question by:charliebcc

Accepted Solution

Ben McNelly earned 1000 total points
ID: 16504754
It depends on what you need, but a flash movie might do the trick. You can open it using Adobe/Macromedia Flash and edit the actionscript to have it count down to your exact event.

here is a good example...
-> http://www.kirupa.com/developer/mx/countdown.htm
(download zip) -> http://www.kirupa.com/developer/mx/code/countdown.zip

you can do this with say javascript as well, but yah... not exactly pretty, but you could get it to work I suppose.
-> http://www.jracademy.com/~jtucek/count.html

Depending on your usage, it may work to have a simple system of the days each as an image, and through code tell the browser what image to display on any given day. This of course depends on weather you use php, asp or whatever... so you have a folder (lets call it "/countdown_days/" and you have some php (or whatever) thats hits the server (or javascript could even use thier system time) and bam it says get "day_20" from "/countdown_days/"....

If you need help with that kind of a thing let us know!

- Ben

LVL 38

Expert Comment

ID: 16516348
Another way to do this would be with Javascript - you would make images of set of numbers from 0-9, and then your script would calculate the number of days remaining, and display the appropriate images.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.
Not only does Prezi allow you to create non-linear presentations, it also makes it easy to apply transition animations between your frames. Learn how to apply a fade-in transition to select items and entire frames in this tutorial Select "Edit Path"…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question