| |
Javascript Clock
The clock above is driven by JavaScript functions which load images of the digits 0 through 9 based on the local time. The images are pre-loaded into cache using the Image function assigning each image file name to an array. The image file names end with a digit equal to the digit to be displayed. This makes keeping track of the file names simpler. |
Buy Now
Download Now
[ 67.7KB ]
Screen
Shot
Requirement: Windows98 Me NT 2000 XP,
32M RAM, DVDRW, 1G free HD. |
Award:
 |
Javascript Clock Features :
- There are three functions which return the hours, minutes, and seconds given a time value. Another function extracts individual digits for a given value of hours, minutes, or seconds. These digits correspond to the image file name array indexes.
- TThe IMG tags for the clock digits are named so that they can be referred to symbolically. Every 0.2 seconds (using the setTimeout function) each of the digits required to display the time is checked to see if the digit has changed. If it has, the new image is loaded.
- TThe image style selection is a FORM with INPUT RADIO buttons all named the same so that only one can be selected. The Submit button calls a JavaScript subroutine which determines the index of the button selected. This is the same as the index of the image name array. When this index is used for the image name array, the new images are loaded.
The code for the page is extensively annotated. Please help yourself, but if you use it, we would like you to give WebSorcerer credit somehow and let us know where your site is so that we can appreciate your work.
Website Authoring Top10 Download :
Javascript Tools Related DVD software:
- JavaScript FadeNews - JavaScript-producing design tool for creating scrolling text with fade effect on Web pages.
- JavaScript PopUpMenu Builder 2006 - JavaScript-producing design tool for creating menu system on web pages.
- JavaScript DropDown Menu Builder - It is a powerful JavaScript-producing design tool for creating menu system on Web pages.
- JS PopUpWindow Builder - It is a tool to make PopUp Web Browser Window without any JavaScript coding knowledge.
- Javascript ContextMenu - It is a powerful Javascript-producing design tool for creating context menu on web pages.
- Javascript TitleTimer - It is a Javascript-producing design tool for displaying current time on the title bar of the web browser.
- Javascript Clock - The clock above is driven by JavaScript functions which load images of the digits 0 through 9 based on the local time.
- Javascript Plus - JavaScript Plus! Is an advanced javascript editor for windows.
- Javascript Menu Builder Titanium - avaScript-producing design tool for creating menus on web pages. The menu script can be customized highly and easily.
- Javascript Newsflash - it is a powerful JavaScript producing design tool that can be used to announce the messages on the web pages without any programming work.
- Javascript Glide Navigation - it Create JavaScript navigation system on web pages without any programming work
|
|