Previous Example-|-Next Example-|-Return to Chapter Listing
Example 14.4:
Moving Layers With offset() and moveTo()
[This example works with Netscape Navigator 4. It won't work with Netscape Navigator 2 or 3, or Internet Explorer 3.]
Use the buttons to move the layers. The first button moves the layer left 100 pixels and to the right 100 pixels. The second button moves it to a position 300 pixels from the top of the window and at the left edge.
This text is in layer 1.
This text is in layer 1A.
Here are our layers:
This text is in layer 1.
This text is in layer 1A.
And this is how we moved them:
Previous Example-|-Next Example-|-Return to Chapter Listing