This is a multi-display clock with local time, UTC time, local/UTC decimal time, UMT, hex time, Swatch Internet Time, New Earth Time, and a countdown clock.
We have tested the code in IE6.0, Firefox1.5.0.4, Opera9.0, Netscape8.1 and AOL Explorer1.2. This script worked in IE, Opera9.0 and AOL Explorer1.2 only. All other platforms tested you will see the effect attempting to load (by seeing the word "Loading" eleven (11) times for the eleven different functions) but you will "Not" see the effect. It degrades well and you will not get any error messages.
Depending on your knowledge of HTML and java scripts, this is an easy, three (3) part copy and paste code with minimal reconfigurations.
I f you need a little refresher on howto add the onload event handler directly into the <BODY> tag, see the below examples:
Default Complete <BODY> Tag ~ No onload event handler
<body bgcolor="#000000" text="#ba55dc" link="#fff8dc" alink="#fff8dc" vlink="#fff8dc">
Reconfigured Complete <BODY> Tag ~ onload Event Handler Inserted
<body onLoad="clock()" bgcolor="#000000" text="#ba55dc" link="#fff8dc" alink="#fff8dc" vlink="#fff8dc">
The below <HEAD> section has for all intensive purposes two (2) separate parts.
<!---- <HEAD> Section - Part I ---->
<style type="text/css"> |
Define Reconfigurations For CSS Style Sheet
|
<!---- Partial <HEAD> Section Part II - Set Countdown Timer ---->
//CountdownDefine Above Areas Of Reconfiguration
If this is a little unclear, see if this makes more sense. The day and date you want to countdown to is February, 7, 2007. This is Consigliere's Birthday. He will be turning 58 years young in the year 2007. You would reconfigure it to look like the below.
//Countdown
Little Extra Not Included In The Script: If you noticed on our example, we had links to each of the different types of time. This is not part of the script. We added it as a convenience for people who are curious (like us) and didnot know what all the different types of time were. These links are just an explanation of the different times set forth within this effect. If you would like to include this in the effect, just grab the below link and copy and paste "Our" <BODY> section that has the code and all the links set up just like our example.
[ <BODY> Section Of Code ]
The reason we have this effect open in a new window is quite simple. Since it is rather large, instead of taking up all the space on the main page, we just used a javascript link to call it from a page with just the effect on it. If you would like to use the same type of effect to open the effect, it is quite simple.
For your Information: In reference to the above reconfigurations. The zero (0) denotes that attribute will not be seen and a one (1) means the attribute will be seen. The width and height are the size in pixels (px) the window will open.
Note Of Professionalism: In reference to the level your site attains. It elevates your site's level of professionalism by adding the little "Close Window" button or link on the linked-to page. It may not seem like much but little things such as this stick in people's minds as a little convenience not required but done anyway. Below are the codes for the form button, text, and a linkto another page for the effect of closing the page by clicking on a graphic. These effects are placed anywhere in the <BODY> section of your document you want it to appear. "Do Not Overdo" the use of these little buttons. We just add them into our pages when we have as we do here Pop up windows that need to open in a new window to keep focus on the main page.
<------ Close Window Form Button ------> <form> |
<------ Close Window Text Link ------> <a href="javascript:window.close();">Close Window</a> |
We hope our tutorial was easy to follow and we covered everything in detail. If you would like to add this effect into your pages, grab the respective below link and you are there. If you have any problems with this or anything else, feel free to consult our [ FAQ ] and if you can't find the answer there, [ contact us ].
[ Get Code Here ]
[ Rate This Page ]