beautypg.com

Apply an appear/fade effect, Apply a blind up/blind down effect – Adobe Dreamweaver CS3 User Manual

Page 494

background image

DREAMWEAVER CS3

User Guide

487

Effects can alter an element’s opacity, scale, position, and styling properties such as background color. You can create
interesting visual effects by combining two or more properties.

Because these effects are Spry-based, when a user clicks on an object with an effect, only the object is dynamically
updated, without refreshing the entire HTML page.

Spry includes these effects:

Appear/Fade

Makes an element appear or fade away.

Highlight

Changes the background color of an element.

Blind Up/Down

Simulates a window blind that goes up or down to hide or reveal the element.

Slide

Moves the element up or down.

Grow/Shrink

Increases or reduces the size of the element.

Shake

Simulates shaking the element from left to right.

Squish

Makes the element disappear into the upper-left corner of the page.

Important: When you use an effect, various lines of code are added to your file in the Code view. One line identifies the
SpryEffects.js file, which is necessary to include the effects. Do not remove this line from your code or the effects will not work.

For a comprehensive overview of the Spry effects available in the Spry framework, visit

www.adobe.com/go/learn_dw_spryeffects

.

Apply an Appear/Fade effect

Note: You can use this effect with any HTML objects except applet, body, iframe, object, tr, tbody, or th.

1

(Optional) Select the content or layout object you want to apply the effect to.

2

In the Behaviors panel (Window > Behaviors), click the Plus (+) button and select Effects > Appear/Fade from the menu.

3

Select the object’s ID from the target element menu. If you already selected an object, choose .

4

In the Effect Duration box, define the time it takes for the effect to occur, in milliseconds.

5

Select the effect you want to apply: Fade or Appear.

6

In the Fade From box, define the percentage of opacity you want the effect to have when it appears.

7

In the Fade To box, define the percentage of opacity you want to fade to.

8

Select Toggle Effect if you want the effect to be reversible, going from fade to appear and back again with

successive clicks.

Apply a Blind up/Blind down effect

Note: You can only use this effect with these HTML objects: address, dd, div, dl, dt, form, h1, h2, h3, h4, h5, h6, p, ol, ul,
li, applet, center, dir, menu, or pre.

1

(Optional) Select the content or layout object you want to apply the effect to.

2

In the Behaviors panel (Window > Behaviors), click the Plus (+) button and select Effects > Blind from the menu.

3

Select the object’s ID from the target element menu. If you already selected object, choose .

4

In the Effect Duration box, define the time it takes for the effect to occur, in milliseconds.

5

Select the effect you want to apply: Blind Up or Blind Down.

September 4, 2007