PDA

View Full Version : Countdown clock with graphics



lostsoulchetti
September 15th, 2008, 12:33 PM
Is there a way, in php, to include a graphic or use graphics in a countdown clock script. What I am trying to do is create a countdown clock for finals week to be displayed on my university's learning center website. What I have so far is just a line that says "90 days until Finals". I was able to change the background and text color, you can look at it here:

http://www.hbg.psu.edu/LearningCenter/index2.php

But it doesn't stand out. I'd like to either put it on a graphic (like use an image as the background) and format the text to be bigger and bolder so it stands out. Or make the output look like a digital clock or something, using images. Is this possible? Can anyone point me to a tutorial?

Thanks so much. :sen:

eirche
September 16th, 2008, 01:04 AM
not php, use javascript

Templarian
September 16th, 2008, 01:20 AM
http://alistapart.com/articles/sprites

Use this with boxes floated right and give it a width and a height.

Then simply with javascript set document.getElementById('position1').className = 'num_2';

Simple idea and will use 1 image and the JavaScript you already have for the most part.