PDA

View Full Version : How do I change HTML page properties (bgColor)?


bkrenzer
07-22-2004, 11:50 PM
I am trying to figure out how to change the bgColor of my HTML page from within my flash file. I am completely lost in the land of JavaScript and need first to know if it is even possible, and second what script to use.

thanks

Crismo
07-28-2004, 01:45 PM
Relative smal Javascript

<script language="javascript" type="text/javascript">

function ChangeColor(nColor)
{
document.body.bgColor = nColor;
}

</script>


use it like this :

ChangeColor('Black')
ChangeColor('#99CC33')