Move mouse over layer to change color. Changes back with onMouseOut.

Script is in HEAD. Location affects the way we refer to the layer!
This script is inside the HEAD tags.

<script language=javascript1.2>
function changeColor(c)
{document.layers['layer1'].document.bgColor=c}
</script>

 

Change my color!

See Change bgcolor from Layer for other method.
© 1997-2002 Jan Smith   <jegs1@jegsworks.com>