Countdown Graphic

Posted on 2006-04-20
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
    LVL 8

    Accepted Solution

    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...
    (download zip) ->

    you can do this with say javascript as well, but yah... not exactly pretty, but you could get it to work I suppose.

    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

    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

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
    Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
    In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
    In addition to being a great web-based presentation tool, Prezi also makes it easy to save your presentation as a PDF to share with others as well. Learn how in this tutorial. Select the share icon from the top menu in your Prezi editor: Select "D…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now