...

View Full Version : World clock



bigginge
10-20-2006, 12:39 PM
I'm using the script for the World Clock (http://www.javascriptkit.com/script/script2/dropworldclock.shtml), but can't figure out how to change the colour of the font on the time read out to white. Any ideas please?

radnor
10-20-2006, 06:17 PM
Bigginge;

I would make just a few MINOR changes....

1st, I would add in the head section or external style sheet the following:


<style>
.clock {
font-size:14px;
color:red;
font-family: arial;
}
</style>

Then, I would change this line:

document.write('<span id="worldclock" style="font:bold 16px Arial;"></span><br>')

to this:

document.write('<span id="worldclock" class="clock"></span><br>')

The info you are looking for is here (original code):

document.write('<span id="worldclock" style="font:bold 16px Arial;"></span><br>')

What I am suggesting is assign it to a CLASS and in your style sheet you can "adjust" it (font, color, size, etc.) however you want.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum