March 12, 2000 - Setting the Background Color
March 12, 2000 Setting the Background Color Tips: March 2000
Yehuda Shiran, Ph.D.
|
backgroundColor
while Netscape Navigator uses bgColor
:
function docjslib_setElementBgColor(id, elementColor) {
if (NS4) eval(id).bgColor = elementColor
else eval(id).style.backgroundColor = elementColor;
}
Learn more about DOCJSLIB 4.0 in Column 33, DOCJSLIB Version 4.0: Scrollers, Watermarks, and Games.