Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: World clock

  1. #1
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    World clock

    I'm using the script for the World Clock, but can't figure out how to change the colour of the font on the time read out to white. Any ideas please?

  • #2
    New Coder
    Join Date
    Oct 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Bigginge;

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

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

    Code:
    <style>
    .clock {
    	font-size:14px;
    	color:red;
    	font-family: arial;
    }
    </style>
    Then, I would change this line:
    Code:
    document.write('<span id="worldclock" style="font:bold 16px Arial;"></span><br>')
    to this:
    Code:
    document.write('<span id="worldclock" class="clock"></span><br>')
    The info you are looking for is here (original code):
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •