August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.background
The background property of the Layer object refers to the BACKGROUND attribute of the <layer> tag. The background images for the layer object can be changed by setting the background.src property.
Listing 7.320 shows an example of how to change the layer background image. Two layers are created and when the Change Background button is clicked, the change() function is called. The change() function sets the background property of layer1 to water.gif.
<html> <head> <title> Using the background property of the Layer object</title> </head> <body> <script language="JavaScript"> <!-- Hide function change(){ ... |
Read now
Unlock full access