Layer.moveBelow()

JavaScript 1.2+ Nav4+ Syntax

							layer.moveBelow(layername)

Description

The moveBelow() method of the Layer object is used to move a layer object below another specified layer. The function takes a single parameter, layername, representing the layer object that gets moved to the front.

Example

Listing 7.335 shows how the moveBelow() method is used to move Layer2 below Layer1.

Listing 7.335 Example of the moveBelow() Method
 <html> <head> <title> Using the moveBelow 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" width=150 height=160 color= bgcolor="green" TOP=100 ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.