August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.bgColor
The bgColor property of the Layer object represents the BGCOLOR attribute of the <layer> tag. The background color for the Layer object can be changed by setting the bgColor.src property. The color can only be changed if the background property is not set.
Listing 7.322 shows how the bgColor property is used to change the background colors of the layer's objects.
<html>
<head>
<title> Using the bgColor property of the Layer object</title>
</head>
<body>
<script language="JavaScript">
<!-- Hide
// function changes the color of layer1
function change1(){
document.layer1.bgColor = "#FF00FA";
}
// function changes ... |
Read now
Unlock full access