Al's TAFE Certificate IV I.T. (Website Design) Exercises

Client Side Script 4

DOM Issues

Showing and Hiding Layers

Showing or Hiding Layers uses JavaScript and is not the same as assigning the layers initial visibility using HTML in the Layers Panel in Dreamweaver. But you can use both together to get some special effects such as a loading screen containing the word "Loading" that is visible as the page loads but disappears when the page is fully loaded (onLoad).

 

Activity One

To test your skills in a new example: Now create a cascading menu using the same layers and code principles just used, but you will need to make a vertical “main” layer using the images in the images folder for the three names.

Show-Hide Layers

The Set Text of Layer behaviour

Firstly, this will only work in IE4+, Netscape 4.x and 6.x, but not in Opera 5-6.

Behaviours / Set Text / Set Text of Layer

Activity Two

Activity Three