Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How do I change the Background color of a page from a JavaScript function?

0 views
Skip to first unread message

Tony Olsen

unread,
Nov 15, 2001, 5:09:16 PM11/15/01
to
I tried:

document.Body.bgcolor = "#FF00FF";
document.Body.bgcolor = "FF00FF";
document.TitleText.style.color = RGBString;
document.TitleText.style.color = "red";
BodyDiv.bgcolor.value = "red";
BodyDiv.backgroundcolor = "#" + RGBString;
Body.bgcolor = "darkgreen";
document.bgcolor = "red";
document.Body.style = "color : red";

and many other combinations, but nothing works. In fact, some combinations
managed to make my IE 6.0 crash.

Does anyone know how to do this? More specifically, has anyone succesfully
done this before?

Thanks in advance,

Tony Olsen
Fer...@Myself.Com


SV

unread,
Nov 16, 2001, 7:40:31 AM11/16/01
to
I"m not sure I can even come CLOSE to helping, but we'll see..

Are you trying, within a page, to make the entire page's background change color at certain points? LIke, if certain events
occur or something? Let me know more about what you're trying to do overall, and I might be able to come up with an idea or two...

Shane
SVarnadoDoYouLik...@LoradMedical.Com
Remove 'DoYouLikeGreenEggsAndSpam' to reply to me.

Tony Olsen <Tony....@worldnet.att.net> wrote in message news:g2XI7.187470$W8.68...@bgtnsc04-news.ops.worldnet.att.net...

0 new messages