Perfecting the digital clock New York

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

Roth Controls
(585) 872-0220
841 Holt Rd
Rochester, NY
CompareTechProviders.com
518-207-3445
5 Washington Place
Troy, NY
American Micro, Inc.
(716) 861-1412
1659 North Forest Rd.
Buffalo, NY
Software Solutions Group
(716) 568-2040
6465 Transit Rd.
East Amherst, NY
IT HealthTrack, Inc.
(716) 630-0063
6500 Main St., Ste. 3
Williamsville, NY
COMAND Solutions
(800) 598-0869 ext. 88
110 Elmwood Ave.
Buffalo, NY
Globalquest Solutions, Inc.
(716) 601-3524
435 Lawrence Bell Dr., Ste. 7
Williamsville, NY
Viewpoint Software Solutions Inc
(585) 475-9555
800 W Metro Park
Rochester, NY
KIC Chemicals Inc.
(845) 883-5306 ext. 301
87 South Ohioville Road
New Paltz, NY
Angus MacDonald
(845) 527-9792
27D Colonial Drive
New Paltz, NY

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

Roth Controls

(585) 872-0220
841 Holt Rd
Rochester, NY
http://www.leojroth.com

Regional Articles
- Perfecting the digital clock Albany NY
- Perfecting the digital clock Amityville NY
- Perfecting the digital clock Amsterdam NY
- Perfecting the digital clock Arverne NY
- Perfecting the digital clock Astoria NY
- Perfecting the digital clock Auburn NY
- Perfecting the digital clock Babylon NY
- Perfecting the digital clock Baldwin NY
- Perfecting the digital clock Baldwinsville NY
- Perfecting the digital clock Ballston Spa NY
- Perfecting the digital clock Bay Shore NY
- Perfecting the digital clock Bayside NY
- Perfecting the digital clock Beacon NY
- Perfecting the digital clock Bellerose NY
- Perfecting the digital clock Bellmore NY
- Perfecting the digital clock Bethpage NY
- Perfecting the digital clock Binghamton NY
- Perfecting the digital clock Brentwood NY
- Perfecting the digital clock Brewster NY
- Perfecting the digital clock Brockport NY
- Perfecting the digital clock Bronx NY
- Perfecting the digital clock Bronxville NY
- Perfecting the digital clock Brooklyn NY
- Perfecting the digital clock Buffalo NY
- Perfecting the digital clock Cambria Heights NY
- Perfecting the digital clock Camillus NY
- Perfecting the digital clock Canandaigua NY
- Perfecting the digital clock Centereach NY
- Perfecting the digital clock Central Islip NY
- Perfecting the digital clock Clifton Park NY
- Perfecting the digital clock Cohoes NY
- Perfecting the digital clock College Point NY
- Perfecting the digital clock Commack NY
- Perfecting the digital clock Copiague NY
- Perfecting the digital clock Coram NY
- Perfecting the digital clock Corning NY
- Perfecting the digital clock Corona NY
- Perfecting the digital clock Cortland NY
- Perfecting the digital clock Cortlandt Manor NY
- Perfecting the digital clock Deer Park NY
- Perfecting the digital clock Delmar NY
- Perfecting the digital clock Depew NY
- Perfecting the digital clock Dunkirk NY
- Perfecting the digital clock East Amherst NY
- Perfecting the digital clock East Aurora NY
- Perfecting the digital clock East Elmhurst NY
- Perfecting the digital clock East Islip NY
- Perfecting the digital clock East Meadow NY
- Perfecting the digital clock East Northport NY
- Perfecting the digital clock East Setauket NY
- Perfecting the digital clock East Syracuse NY
- Perfecting the digital clock Elmhurst NY
- Perfecting the digital clock Elmira NY
- Perfecting the digital clock Elmont NY
- Perfecting the digital clock Endicott NY
- Perfecting the digital clock Fairport NY
- Perfecting the digital clock Far Rockaway NY
- Perfecting the digital clock Farmingdale NY
- Perfecting the digital clock Farmingville NY
- Perfecting the digital clock Floral Park NY
- Perfecting the digital clock Flushing NY
- Perfecting the digital clock Forest Hills NY
- Perfecting the digital clock Franklin Square NY
- Perfecting the digital clock Fredonia NY
- Perfecting the digital clock Freeport NY
- Perfecting the digital clock Fresh Meadows NY
- Perfecting the digital clock Fulton NY
- Perfecting the digital clock Garden City NY
- Perfecting the digital clock Glen Cove NY
- Perfecting the digital clock Glen Oaks NY
- Perfecting the digital clock Glens Falls NY
- Perfecting the digital clock Gloversville NY
- Perfecting the digital clock Great Neck NY
- Perfecting the digital clock Hamburg NY
- Perfecting the digital clock Hauppauge NY
- Perfecting the digital clock Hempstead NY
- Perfecting the digital clock Hicksville NY
- Perfecting the digital clock Hilton NY
- Perfecting the digital clock Holbrook NY
- Perfecting the digital clock Hollis NY
- Perfecting the digital clock Hopewell Junction NY
- Perfecting the digital clock Horseheads NY
- Perfecting the digital clock Howard Beach NY
- Perfecting the digital clock Huntington NY
- Perfecting the digital clock Huntington Station NY
- Perfecting the digital clock Islip NY
- Perfecting the digital clock Ithaca NY
- Perfecting the digital clock Jackson Heights NY
- Perfecting the digital clock Jamaica NY
- Perfecting the digital clock Jamestown NY
- Perfecting the digital clock Kew Gardens NY
- Perfecting the digital clock Kings Park NY
- Perfecting the digital clock Kingston NY
- Perfecting the digital clock Lancaster NY
- Perfecting the digital clock Larchmont NY
- Perfecting the digital clock Latham NY
- Perfecting the digital clock Levittown NY
- Perfecting the digital clock Lindenhurst NY
- Perfecting the digital clock Little Neck NY
- Perfecting the digital clock Liverpool NY
- Perfecting the digital clock Lockport NY
- Perfecting the digital clock Long Beach NY
- Perfecting the digital clock Long Island City NY
- Perfecting the digital clock Lynbrook NY
- Perfecting the digital clock Mahopac NY
- Perfecting the digital clock Malone NY
- Perfecting the digital clock Mamaroneck NY
- Perfecting the digital clock Manhasset NY
- Perfecting the digital clock Manlius NY
- Perfecting the digital clock Maspeth NY
- Perfecting the digital clock Massapequa NY
- Perfecting the digital clock Massapequa Park NY
- Perfecting the digital clock Massena NY
- Perfecting the digital clock Mastic NY
- Perfecting the digital clock Melville NY
- Perfecting the digital clock Merrick NY
- Perfecting the digital clock Middle Village NY
- Perfecting the digital clock Middletown NY
- Perfecting the digital clock Mineola NY
- Perfecting the digital clock Monroe NY
- Perfecting the digital clock Monsey NY
- Perfecting the digital clock Mount Kisco NY
- Perfecting the digital clock Mount Vernon NY
- Perfecting the digital clock Nanuet NY
- Perfecting the digital clock New City NY
- Perfecting the digital clock New Hartford NY
- Perfecting the digital clock New Hyde Park NY
- Perfecting the digital clock New Paltz NY
- Perfecting the digital clock New Rochelle NY
- Perfecting the digital clock New Windsor NY
- Perfecting the digital clock New York NY
- Perfecting the digital clock Newburgh NY
- Perfecting the digital clock Niagara Falls NY
- Perfecting the digital clock North Babylon NY
- Perfecting the digital clock North Tonawanda NY
- Perfecting the digital clock Nyack NY
- Perfecting the digital clock Oakland Gardens NY
- Perfecting the digital clock Oceanside NY
- Perfecting the digital clock Ogdensburg NY
- Perfecting the digital clock Olean NY
- Perfecting the digital clock Oneonta NY
- Perfecting the digital clock Orchard Park NY
- Perfecting the digital clock Ossining NY
- Perfecting the digital clock Oswego NY
- Perfecting the digital clock Ozone Park NY
- Perfecting the digital clock Patchogue NY
- Perfecting the digital clock Pearl River NY
- Perfecting the digital clock Peekskill NY
- Perfecting the digital clock Penfield NY
- Perfecting the digital clock Pittsford NY
- Perfecting the digital clock Plainview NY
- Perfecting the digital clock Plattsburgh NY
- Perfecting the digital clock Port Chester NY
- Perfecting the digital clock Port Jefferson Station NY
- Perfecting the digital clock Port Washington NY
- Perfecting the digital clock Potsdam NY
- Perfecting the digital clock Poughkeepsie NY
- Perfecting the digital clock Queens Village NY
- Perfecting the digital clock Queensbury NY
- Perfecting the digital clock Rego Park NY
- Perfecting the digital clock Rensselaer NY
- Perfecting the digital clock Richmond Hill NY
- Perfecting the digital clock Ridgewood NY
- Perfecting the digital clock Riverhead NY
- Perfecting the digital clock Rochester NY
- Perfecting the digital clock Rockaway Park NY
- Perfecting the digital clock Rockville Centre NY
- Perfecting the digital clock Rome NY
- Perfecting the digital clock Ronkonkoma NY
- Perfecting the digital clock Roosevelt NY
- Perfecting the digital clock Rosedale NY
- Perfecting the digital clock Rye NY
- Perfecting the digital clock Saint Albans NY
- Perfecting the digital clock Saint James NY
- Perfecting the digital clock Saratoga Springs NY
- Perfecting the digital clock Saugerties NY
- Perfecting the digital clock Sayville NY
- Perfecting the digital clock Scarsdale NY
- Perfecting the digital clock Schenectady NY
- Perfecting the digital clock Selden NY
- Perfecting the digital clock Shirley NY
- Perfecting the digital clock Smithtown NY
- Perfecting the digital clock South Ozone Park NY
- Perfecting the digital clock South Richmond Hill NY
- Perfecting the digital clock Spencerport NY
- Perfecting the digital clock Spring Valley NY
- Perfecting the digital clock Springfield Gardens NY
- Perfecting the digital clock Staten Island NY
- Perfecting the digital clock Stony Brook NY
- Perfecting the digital clock Suffern NY
- Perfecting the digital clock Sunnyside NY
- Perfecting the digital clock Syosset NY
- Perfecting the digital clock Syracuse NY
- Perfecting the digital clock Tarrytown NY
- Perfecting the digital clock Tonawanda NY
- Perfecting the digital clock Troy NY
- Perfecting the digital clock Uniondale NY
- Perfecting the digital clock Utica NY
- Perfecting the digital clock Valley Stream NY
- Perfecting the digital clock Vestal NY
- Perfecting the digital clock Wantagh NY
- Perfecting the digital clock Wappingers Falls NY
- Perfecting the digital clock Watertown NY
- Perfecting the digital clock Watervliet NY
- Perfecting the digital clock Webster NY
- Perfecting the digital clock West Babylon NY
- Perfecting the digital clock West Hempstead NY
- Perfecting the digital clock West Islip NY
- Perfecting the digital clock Westbury NY
- Perfecting the digital clock White Plains NY
- Perfecting the digital clock Whitestone NY
- Perfecting the digital clock Woodhaven NY
- Perfecting the digital clock Woodside NY
- Perfecting the digital clock Wyandanch NY
- Perfecting the digital clock Yonkers NY
- Perfecting the digital clock Yorktown Heights NY
Related Local Events
I.T. Committee Meeting
Dates: 12/17/2009 - 12/17/2009
Location: Queens Chamber Board Room
Jackson Heights, NY
View Details

BIO CEO & INVESTOR CONFERENCE 2010
Dates: 2/8/2010 - 2/8/2010
Location: Waldorf-Astoria
New York, NY
View Details

TradeTech USA
Dates: 3/1/2010 - 3/3/2010
Location: Marriott Marquis New York
New York, NY
View Details

Biotechnica America
Dates: 4/20/2010 - 4/22/2010
Location: Jacob K. Javits Convention Center
New York, NY
View Details

I.T. Committee Meeting
Dates: 11/19/2009 - 11/19/2009
Location: Queens Chamber Board Room
Jackson Heights, NY
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