For example,
if you want an entire submenu to change when a user rolls over a particular option, you can use a single
Swap Image action to switch all the submenu button images.
422
Adding Advanced Design Features Part III
FIGURE 12-19
The Swap Image action is used primarily for handling button rollovers.
If the Restore Images onMouseOut option was selected in the Swap Image parameter dialog
box, Dreamweaver adds two lines to the Behaviors panel: Swap Image and Swap Image
Restore.
If you choose not to enable the Restore Images onMouseOut option, which changes the image back to the
original, you attach the Swap Image Restore action to another event. The Swap Image Restore action can be
used only after a Swap Image action. No parameter dialog box exists for the Swap Image Restore action??”
just a dialog box confirming your selection.
If the swapped-in image has different dimensions than the image it replaces, the swapped-in
image is resized to the height and width of the first image.
To use the Swap Image action, follow these steps:
1. Select the object to trigger the action.
2. From the Behaviors panel, click the Add (+) button and select Swap Image.
3. In the Swap Image parameter dialog box, choose an available image from the Images list.
4.
Pages:
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823