Layers & Behaviours Tutorial

  1. Ensure that the 'Layers' and 'Behaviours' task panes are visible. 
    If not, go to the 'Task Panes' menu and enable
    layers and behaviours
  2. Insert a new layer.  Go to the 'Insert' menu, select 'HTML' then 'layer'
    inset menu
  3. Write a word into the layer (the word will act as a link and a mouse over button).  Repeat the process until you have created all the buttons you need. 
    * Layers are positioned absolutely: you may drag them to any position you like on the page.
    layer buttons
  4. Create a new layer and position it relative to the buttons.  Click to put the cursor inside the new layer.  Insert an image into the layer
    (insert menu > picture > from file > )
    image layer
  5. Select the layer containing the image the double click the layer id in the layers task pane.  Rename the layer.  Use a name that will help you remember the layer's contents.  Do not use spaces in id names, use underscores or dashes.
    remane layer
  6. Under the 'layer visibility' (eye) icon in the layers task pane, double click next to the image layer.  Click twice, until the image layer is hidden (a closed eye will be displayed)
    hide layer
  7. Select the layer you wish to act as a button.  Select the 'behaviours' task pane.  Click the 'insert' button and select 'change property'
    behaviours
  8. Select the radio button marked 'select element' then select the id of the layer containing the image.  Click the 'visibility button' and select 'visible'.  Tick the 'restore on mouseout event' checkbox.  
    change property
  9. The event you have just defined will now appear on the behaviours task pane.  Under event, select 'onmouseover' from the drop down list.
    change event
  10. Preview the page in a browser.  You will find that the image appears when you mouse over the word.
  11. Repeat the process for all the text labels, so that each displays a different image on mouseover.