Altering Object Properties

Timelines can modify the width, height, top, left, z-index, and visibility attributes of layers, but width and height changes work in Internet Explorer only (they are ignored by NN4 and Opera). Timelines can also modify the src attribute of images to create a slideshow. To change other image attributes, such as to animate its position, place the image within a layer (likewise for other HTML elements) and then alter the layer attributes.

Tip

Select a keyframe before modifying an object’s properties. You can modify one or more properties at each keyframe using the Property inspector (or by moving or resizing a layer in the Document window).

Table 17-1 explains how to set the attributes of layers and images. The src attribute applies to images only; the remaining properties apply to layers only.

Table 17-1. Setting properties of layers

Property

Select a keyframe and then change property

src

Change the Src field in the Property inspector (applies to images only).

visibility

Change the Vis field in the Property inspector. Layers appear on the page even after their animation terminates, unless the visibility is set to hidden. Also see the Show-Hide Layers behavior.

width

Change the W field in the Property inspector or use the resize handles to resize the layer in the Document window. (Supported by IE4+ only; has no effect in Netscape.)

height

Change the H field in the Property inspector or use the resize handles to resize the layer in the Document ...

Get Dreamweaver in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.