O'Reilly logo

Absolute Beginner's Guide to Microsoft® Office FrontPage® 2003 by Kate J. Chase, Jennifer Ackerman Kettell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Behaviors to Control Layers

The final piece of the puzzle is to make layers interactive. Layers are usually invisible by default, and in order to make them useful, you need to make them visible at some point. Using FrontPage behaviors, you can control the visibility and even the position of a layer in response to an event.

Like other elements such as rollover buttons, you need to make your layers respond to events, such as mouse clicks, to trigger an action. But because layers are typically not displayed by default, you must use an event on another object, such as an image, to make the layer visible using either the onmouseover or onmousedown event.

To hide the layer again, you can close it either by assigning an onmouseout event to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required