429
Using Behaviors 12
To use the Highlight effect, follow these steps:
1. Make sure that the element you want to affect is contained within a tag with an ID on your page.
2. Select the object to trigger the effect.
3. From the Behaviors panel, click the Add (+) button and select Effect ??? Highlight.
4. In the Highlight dialog box (Figure 12-25), select the tag with an ID you want to highlight.
FIGURE 12-25
Assign the Highlight effect to the body tag??™s onLoad effect to add an initial burst of color to
a page area that quickly disappears.
5. Enter the length of the effect (in milliseconds) in the Effect Duration field (1000 milliseconds
equals one second).
6. Choose the initial background color from the Start Color swatch.
7. Choose the background color the initial color fades to from the End Color swatch.
8. Choose the background color displayed after the fade is completed from the Color After Effect
swatch.
9. If you??™d like the reverse effect to occur the next time the trigger is selected, click the Toggle Effect
checkbox.
10. Click OK when you??™re done.
Shake
If you??™ve ever mistyped your password on the login screen on Mac OS X, you??™ve experienced the Shake
effect. Shake moves the targeted element back-and-forth several times in a side-to-side manner.
Pages:
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834