<class home>  <Jscript>   <back   next>

Changing Text in a Layer

You can set text in a layer with behaviors even if the layer is invisible.

advantages:
1. You can change layer content on different handlers, for ex. onMouseOver


Changing Text in a Layer

1. Create a layer.

2. Name your layer in the properties panel name field.

3. In the Behaviors panel, select a browser (4.0 and later).

4. In the Document window, select an object (a, body, img, select)

5. In the Behaviors panel, add the action Set Text> Set Text of Layer.

6. In the dialog box, select the layer name.

7. In the dialog box, either type in or paste in the frame content to be put in (in html).
ex.
<center>
Here is the text
</center>

8. Click o.k.

9. In the Behaviors panel, select the event that you want to trigger the changing of the text (ex. onLoad, OnMouseOver)

*note: this may break in Netscape 6. Test in a later version.