Just One said the following on 6/24/2007 9:08 AM:
> Hi,
>
> I'm trying to dynamically assign a div background the value of the document
> background with a code like this:
>
> var menuDiv = '<div style="visibility:hidden; ';
> menuDiv = menuDiv + 'background-color:';
> menuDiv = menuDiv + document.bgColor;
document.style.backgroundColor;
And then make sure it is defined as background-color in the CSS of the
body element.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/