[thelist] Javascript: altering BG color of multiple divs with one click - solved

Park Jin CIV ANG/LG Jin.Park at ang.af.mil
Tue Nov 11 14:56:36 CST 2003


You might have wanted i==0 instead?

-----Original Message-----
From: Dunstan Orchard [mailto:dunstan at 1976design.com] 
Sent: Tuesday, November 11, 2003 3:11 PM
To: evolt list
Subject: RE: [thelist] Javascript: altering BG color of multiple divs with
one click - solved


On Tue, 11 Nov 2003 14:44:11 -0500, Hershel Robinson wrote
> Not sure why you find this odd. Most languages require the keyword if 
> before an if/else statement.

Doh!

Sorry, typos galore!
I meant:

if (i = 0)

crashed my browsers, while this:

if (i != 0)

doesn't. So I had to swap the logic around a little bit.

_That_ I find odd :o)



More information about the thelist mailing list