Perfecting the digital clock Illinois

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

Softweb Solutions
866-345-7638
5707 Breezeland Road
Chicago, IL
STL Technology Partners
(309) 699-6389
630 High Point Lane
East Peoria, IL
DMi Technology Group
(309) 828-4439
406 Kays Drive
Normal, IL
InterraIT
(630) 873-3525
Two Mid America Plaza
Oakbrook Terrace, IL
StrategicSytems International
+1.847.424.2497
820 Davis Street,
Evanston, IL
Quantum Design (Quantum Software Solutions)
815-885-1300
8400 E. Riverside Blvd
Rockford, IL
IT360, Inc.
(309) 283-2915
311 SW Water Street
Peoria, IL
Stellar Systems, Inc
(309) 677-7350
222 NE Monroe St. #902
Peoria, IL
Stellar Systems, Inc.
(309) 677-7350
222 NE Monroe St. #902
Peoria, IL
IFS
888-437-4968
300 Park Boulevard, Suite 555
Itasca, IL

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

Softweb Solutions

IT Consultant Company offers custom software development services, Flex, ROR, Web application development services

866-345-7638
5707 Breezeland Road
Chicago, IL
http://www.SoftwebSolutions.com

Softweb Solutions is a prominent name in providing exclusive software development services for SMEs, specializing in custom application development, website development, system integration and software testing and quality assurance, with industry-specific software expertise in High-Technology, Software, Automotive, Financial Services and Entertainment sectors.

Custom Software Development and IT Consultant

Regional Articles
- Perfecting the digital clock Addison IL
- Perfecting the digital clock Algonquin IL
- Perfecting the digital clock Alsip IL
- Perfecting the digital clock Alton IL
- Perfecting the digital clock Arlington Heights IL
- Perfecting the digital clock Aurora IL
- Perfecting the digital clock Barrington IL
- Perfecting the digital clock Bartlett IL
- Perfecting the digital clock Batavia IL
- Perfecting the digital clock Belleville IL
- Perfecting the digital clock Bellwood IL
- Perfecting the digital clock Belvidere IL
- Perfecting the digital clock Bensenville IL
- Perfecting the digital clock Berwyn IL
- Perfecting the digital clock Bloomingdale IL
- Perfecting the digital clock Bloomington IL
- Perfecting the digital clock Blue Island IL
- Perfecting the digital clock Bolingbrook IL
- Perfecting the digital clock Bourbonnais IL
- Perfecting the digital clock Bridgeview IL
- Perfecting the digital clock Buffalo Grove IL
- Perfecting the digital clock Calumet City IL
- Perfecting the digital clock Carbondale IL
- Perfecting the digital clock Carol Stream IL
- Perfecting the digital clock Carpentersville IL
- Perfecting the digital clock Champaign IL
- Perfecting the digital clock Chicago Heights IL
- Perfecting the digital clock Chicago IL
- Perfecting the digital clock Cicero IL
- Perfecting the digital clock Clarendon Hills IL
- Perfecting the digital clock Collinsville IL
- Perfecting the digital clock Country Club Hills IL
- Perfecting the digital clock Crete IL
- Perfecting the digital clock Crystal Lake IL
- Perfecting the digital clock Danville IL
- Perfecting the digital clock Decatur IL
- Perfecting the digital clock Deerfield IL
- Perfecting the digital clock Dekalb IL
- Perfecting the digital clock Des Plaines IL
- Perfecting the digital clock Dolton IL
- Perfecting the digital clock Downers Grove IL
- Perfecting the digital clock East Moline IL
- Perfecting the digital clock East Peoria IL
- Perfecting the digital clock East Saint Louis IL
- Perfecting the digital clock Edwardsville IL
- Perfecting the digital clock Effingham IL
- Perfecting the digital clock Elgin IL
- Perfecting the digital clock Elk Grove Village IL
- Perfecting the digital clock Elmhurst IL
- Perfecting the digital clock Elmwood Park IL
- Perfecting the digital clock Evanston IL
- Perfecting the digital clock Evergreen Park IL
- Perfecting the digital clock Fairview Heights IL
- Perfecting the digital clock Franklin Park IL
- Perfecting the digital clock Freeport IL
- Perfecting the digital clock Galesburg IL
- Perfecting the digital clock Glen Ellyn IL
- Perfecting the digital clock Glendale Heights IL
- Perfecting the digital clock Glenview IL
- Perfecting the digital clock Godfrey IL
- Perfecting the digital clock Granite City IL
- Perfecting the digital clock Grayslake IL
- Perfecting the digital clock Gurnee IL
- Perfecting the digital clock Harvey IL
- Perfecting the digital clock Harwood Heights IL
- Perfecting the digital clock Hazel Crest IL
- Perfecting the digital clock Highland Park IL
- Perfecting the digital clock Hinsdale IL
- Perfecting the digital clock Homewood IL
- Perfecting the digital clock Jacksonville IL
- Perfecting the digital clock Joliet IL
- Perfecting the digital clock Kankakee IL
- Perfecting the digital clock Kewanee IL
- Perfecting the digital clock La Grange IL
- Perfecting the digital clock Lake Bluff IL
- Perfecting the digital clock Lake Villa IL
- Perfecting the digital clock Lake Zurich IL
- Perfecting the digital clock Lansing IL
- Perfecting the digital clock Lemont IL
- Perfecting the digital clock Libertyville IL
- Perfecting the digital clock Lisle IL
- Perfecting the digital clock Lockport IL
- Perfecting the digital clock Lombard IL
- Perfecting the digital clock Loves Park IL
- Perfecting the digital clock Machesney Park IL
- Perfecting the digital clock Matteson IL
- Perfecting the digital clock Mattoon IL
- Perfecting the digital clock Maywood IL
- Perfecting the digital clock Mchenry IL
- Perfecting the digital clock Melrose Park IL
- Perfecting the digital clock Midlothian IL
- Perfecting the digital clock Mokena IL
- Perfecting the digital clock Moline IL
- Perfecting the digital clock Morris IL
- Perfecting the digital clock Morton Grove IL
- Perfecting the digital clock Morton IL
- Perfecting the digital clock Mount Prospect IL
- Perfecting the digital clock Mundelein IL
- Perfecting the digital clock Murphysboro IL
- Perfecting the digital clock Naperville IL
- Perfecting the digital clock New Lenox IL
- Perfecting the digital clock Niles IL
- Perfecting the digital clock Normal IL
- Perfecting the digital clock North Chicago IL
- Perfecting the digital clock Northbrook IL
- Perfecting the digital clock O Fallon IL
- Perfecting the digital clock Oak Forest IL
- Perfecting the digital clock Oak Lawn IL
- Perfecting the digital clock Oak Park IL
- Perfecting the digital clock Orland Park IL
- Perfecting the digital clock Palatine IL
- Perfecting the digital clock Palos Hills IL
- Perfecting the digital clock Park Forest IL
- Perfecting the digital clock Park Ridge IL
- Perfecting the digital clock Pekin IL
- Perfecting the digital clock Peoria IL
- Perfecting the digital clock Plainfield IL
- Perfecting the digital clock Prospect Heights IL
- Perfecting the digital clock Quincy IL
- Perfecting the digital clock Riverdale IL
- Perfecting the digital clock Rochelle IL
- Perfecting the digital clock Rock Falls IL
- Perfecting the digital clock Rock Island IL
- Perfecting the digital clock Rockford IL
- Perfecting the digital clock Rolling Meadows IL
- Perfecting the digital clock Romeoville IL
- Perfecting the digital clock Roscoe IL
- Perfecting the digital clock Roselle IL
- Perfecting the digital clock Round Lake IL
- Perfecting the digital clock Saint Charles IL
- Perfecting the digital clock Schaumburg IL
- Perfecting the digital clock Skokie IL
- Perfecting the digital clock South Elgin IL
- Perfecting the digital clock South Holland IL
- Perfecting the digital clock Springfield IL
- Perfecting the digital clock Streamwood IL
- Perfecting the digital clock Streator IL
- Perfecting the digital clock Sycamore IL
- Perfecting the digital clock Taylorville IL
- Perfecting the digital clock Tinley Park IL
- Perfecting the digital clock Urbana IL
- Perfecting the digital clock Vernon Hills IL
- Perfecting the digital clock Villa Park IL
- Perfecting the digital clock Waukegan IL
- Perfecting the digital clock West Chicago IL
- Perfecting the digital clock Westchester IL
- Perfecting the digital clock Westmont IL
- Perfecting the digital clock Wheaton IL
- Perfecting the digital clock Wheeling IL
- Perfecting the digital clock Wilmette IL
- Perfecting the digital clock Wood Dale IL
- Perfecting the digital clock Woodridge IL
- Perfecting the digital clock Woodstock IL
- Perfecting the digital clock Zion IL
Related Local Events
Virtualization / Consolidation Strategies - Implementation Strategies
Dates: 12/10/2009 - 12/10/2009
Location: The Donald E. Stephens Convention Center
Rosemont, IL
View Details

BIO - International Convention and Exhibition for Biotechnology
Dates: 5/2/2010 - 5/5/2010
Location: McCormick Place
Chicago, IL
View Details

PTXi - Process Technology Expo International
Dates: 5/4/2010 - 5/6/2010
Location: Donald E. Stephens Convention Center
Rosemont, IL
View Details

The CIO Agenda - 2010 and Beyond
Dates: 11/5/2009 - 11/5/2009
Location: The Donald E. Stephens Convention Center
Rosemont, IL
View Details

SuperComm
Dates: 10/21/2009 - 10/23/2009
Location: McCormick Place, Chicago
Chicago, IL
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