[thelist] Why is NS6 DHTML so SLOOOOOOOOOWWWWWWW?!

jeff jeff at members.evolt.org
Wed May 9 13:09:41 CDT 2001


ppk,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Peter-Paul Koch
:
: >getStyle('mylayer').background-color: "red"
:
: Correct syntax:
:
: getStyle('mylayer').background-color = "red"
:
: but it probably won't work in Netscape 4. Should
: work in the other browsers, though.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

actually, that's not the correct syntax as property names cannot contain a
hyphen.  the proper way to refer to background-color via script is
backgroundColor.

getStyle('mylayer').backgroundColor = 'red';

thanks,

.jeff

name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:jeff at members.evolt.org





More information about the thelist mailing list