home
|
![]() |
...maksim's year2k countdown
This JavaScript displays the time remaining until the year 2000 (according to your systems time settings). It works in Netscape 3+ and MS InternetExplorer 4+. On older browsers it will display nothing at all. You may use this script for free on your homepage as long as you provide a link back to my site: http://www.tigress.com/Maksim/.
how to use the script First you have to fire an event to invoke the script. This is done by placing an 'onload' in the body tag: <body onload="CountDown('days','count');"> As you can see the CountDown Function takes two parameters. The first one tells it what to display:
The second parameter is the base name of your image IDs. I suggest you do not change it unless needed. With the onload event in the body tag the script is called for the first time. Since we want the display to be updated continously you also have to change the settings a second time in the last line of the function: window.setTimeout("CountDown('days','count');", 100); That's it! | ||||||||||||||||
©1998 maksim@maksim.com |