Previous Example-|-Next Example-|-Return to Chapter Listing
Example 14.2:
Working With the Z-INDEX
This is Layer1
With a little text.
This is Layer2
With a little text.
[This example works with Netscape Navigator 4. It won't work with Netscape Navigator 2 or 3, or Internet Explorer 3.]
Layer1 appears on top, though normally it would be below because it appears first in the HTML source document. We used the Z-INDEX to position these layers. You can use the buttons (which work with the moveAbove() method) to shift the layer positions.
This is how we created the layers:
This is Layer1
With a little text.
This is Layer2
With a little text.
These are the buttons:
Previous Example-|-Next Example-|-Return to Chapter Listing