August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.moveAbove(layername)
The moveAbove() method of the Layer object is used to move the current layer above another specified layer. The parameter, layername, is the layer object that gets moved to the back.
Listing 7.334 an example of how the moveAbove() method is used. When the button is clicked, the onClick event handler handles the CLICK event and moves Layer1 above Layer2.
<html> <head> <title> Using the moveAbove method of the Layer object</title> </head> <body> <layer id="layer1" width=200 height=200 color= bgcolor="yellow" TOP=170 LEFT=150 VISIBILITY="show"> <center>Layer 1</center> </layer> <layer id="layer2" ... |
Read now
Unlock full access