Step Two: Set up the Layers

This technique takes advantage of three different layer properties: absolute positioning, visibility, and clipping. The idea is to have a just a portion of a hidden layer display during a mouseOver event. So first, we need two layers -- one for each of our images.

Follow these steps to establish the initial layers:

  1. Choose Insert>Layer or select the Insert Layer button from the Object Palette to create the "onLayer." If you use the menu option instead of drawing out the layer, it will create it as a standard size and you won't have to spend as much time adjusting the layer sizes later.
  2. Make sure the cursor is in the layer and choose Insert>Image or select the Insert Image button from the Object Palette and load your "on" graphic. If the layer is small than the image it will automatically expand.
  3. Repeat step 1 to create the "offLayer." Be sure to give it a unique name.
  4. Repeat step 2 and insert the "off" graphic.
  5. If necessary, open the Layers Palette and make sure that:




Next -->

Step One: Create Two Images

Step Two: Set up the Layers

Step Three: Attach the Behavior

Step Four: Make the Image Maps

Step Five: Complete the Code