Perfecting the digital clock Louisiana

We're in the home stretch with the digital clock script. All we need to do now is set the minutes and seconds.

Local Companies

Quasar Software Inc
504-485-5606
710 Weiblen Pl
New Orleans, LA
Electronic Evidence Retrival LLC
504-483-0201
718 N Alexander St
New Orleans, LA
VanillaSoft, Inc.
866-763-8826
1820 St. Charles Ave.
New Orleans, LA
Ecad Inc
504-818-3091
824 Elmwood Park Blvd
New Orleans, LA
CMA Technology Solutions
225-927-9200
8180 YMCA Plaza DR
Baton Rouge, LA
Creative Computer Solutions
225-925-3210
1651 Thibodeaux Ave
Baton Rouge, LA
Custom Accounting Solutions Inc
225-935-2202
2974 Fritchie Dr
Baton Rouge, LA
Network Solution Providers
225-709-2591
5515 Superior Dr
Baton Rouge, LA
Bits Technical Corp
225-752-8899
14141 Airline Hwy
Baton Rouge, LA
Cyrious Software
225-752-2867
12627 Jefferson Hwy
Baton Rouge, LA

provided by: 
Originally published at Internet.com


Tips... We're in the home stretch. We've grabbed the time, set the returns into numbers we can play with and used those numbers to post the AM/PM image and the two hour images. Now we'll set the minutes and seconds.

Here's the code

Here's the code we're interested in:

if(min < 10) { document["tensMin"].src=d[0].src; } if(min > 9) { document["tensMin"].src=d[parseInt(min/10,10)].src; } document["Min"].src=d[min%10].src; if(sec < 10) { document["tensSec"].src=d[0].src; } if(sec > 9) { document["tensSec"].src=d[parseInt(sec/10,10)].src; } document["Sec"].src=d[sec%10].src; document["amPM"].src=amPM; setTimeout("clock();",100);

The script plays with the minutes and seconds in the same way it did the hours, through "if" statements.

If the minute return is less than "tensMIN" (the first minute image), it is set to d0.src. If you look back up the script, you'll see that is the dgt0.gif.

If the minute is more than nine, then we need to get the correct 10 number in the "tensMin" position. We already know that the minute return is 10 or above so we need either 1, 2, 3, 4, or 5. The little math equation parseInt(min/10,10) does the trick...

Read article at Internet.com site

Featured Local Company

Quasar Software Inc

504-485-5606
710 Weiblen Pl
New Orleans, LA

Related Articles
- Image Proportion Script Louisiana
Enter height and width of an image to resize. Then enter a new height; the script figures the new width, keeping the same proportions the image original had.
- So, You Want to Layer, Huh? Part II Louisiana
- More work on the digital clock code! Louisiana
- Create the Clock Louisiana
- The zones of the time zone clock Louisiana
- Working with a Timer in C# Louisiana
- Get It To The Text Box Louisiana
Regional Articles
- Perfecting the digital clock Abbeville LA
- Perfecting the digital clock Alexandria LA
- Perfecting the digital clock Baker LA
- Perfecting the digital clock Bastrop LA
- Perfecting the digital clock Baton Rouge LA
- Perfecting the digital clock Bogalusa LA
- Perfecting the digital clock Bossier City LA
- Perfecting the digital clock Breaux Bridge LA
- Perfecting the digital clock Carencro LA
- Perfecting the digital clock Chalmette LA
- Perfecting the digital clock Covington LA
- Perfecting the digital clock Crowley LA
- Perfecting the digital clock Denham Springs LA
- Perfecting the digital clock Deridder LA
- Perfecting the digital clock Eunice LA
- Perfecting the digital clock Franklinton LA
- Perfecting the digital clock Gonzales LA
- Perfecting the digital clock Gretna LA
- Perfecting the digital clock Hammond LA
- Perfecting the digital clock Harvey LA
- Perfecting the digital clock Haughton LA
- Perfecting the digital clock Houma LA
- Perfecting the digital clock Jennings LA
- Perfecting the digital clock Kenner LA
- Perfecting the digital clock La Place LA
- Perfecting the digital clock Lafayette LA
- Perfecting the digital clock Lake Charles LA
- Perfecting the digital clock Leesville LA
- Perfecting the digital clock Mandeville LA
- Perfecting the digital clock Marrero LA
- Perfecting the digital clock Metairie LA
- Perfecting the digital clock Minden LA
- Perfecting the digital clock Monroe LA
- Perfecting the digital clock Morgan City LA
- Perfecting the digital clock Natchitoches LA
- Perfecting the digital clock New Iberia LA
- Perfecting the digital clock New Orleans LA
- Perfecting the digital clock Opelousas LA
- Perfecting the digital clock Pineville LA
- Perfecting the digital clock Plaquemine LA
- Perfecting the digital clock Ponchatoula LA
- Perfecting the digital clock Prairieville LA
- Perfecting the digital clock Rayne LA
- Perfecting the digital clock Ruston LA
- Perfecting the digital clock Saint Martinville LA
- Perfecting the digital clock Shreveport LA
- Perfecting the digital clock Slidell LA
- Perfecting the digital clock Sulphur LA
- Perfecting the digital clock Thibodaux LA
- Perfecting the digital clock Ville Platte LA
- Perfecting the digital clock Walker LA
- Perfecting the digital clock West Monroe LA
- Perfecting the digital clock Westwego LA
- Perfecting the digital clock Zachary LA
Related Local Event
Annual Technical Conference & Exhibition (ATCE 2009)
Dates: 10/4/2009 - 10/7/2009
Location: Ernest N Morial Convention Center, New Orleans
New Orleans, LA
View Details

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML