Thread
:
How To Change The Style/Class Of An Object?
View Single Post
May 23rd, 2006, 7:20 PM
#
3
DaWei
Resident Grouch
Join Date: Jun 2005
Posts: 6,453
Rep Power:
10
You can set the style, too, but script uses different terminology. You would use:
myObject.style.backgroundColor = "#000000";
In the general case, you remove the hyphen and capitalize the word following.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner:
Grumpy on C++ Exceptions
DaWei on Pointers
DaWei
View Public Profile
Visit DaWei's homepage!
Find More Posts by DaWei