Swap Image and Swap Image Restore
Button rollovers are one of the most frequently used techniques in Web design today. In a typical button
rollover, a user??™s pointer moves over one image, and the graphic appears to change in some way, seeming to
glow or change color. Actually, the onMouseOver event triggers the almost instantaneous swapping of one
image for another. Dreamweaver automates this difficult coding task with the Swap Image action and its
companion, the Swap Image Restore action.
In recognition of how rollovers commonly work in the real world, Dreamweaver makes it possible to combine
Swap Image and Swap Image Restore in one easy operation??”as well as to preload all the images.
Moreover, you can use a link in one frame to trigger a rollover in another frame without having to tweak the
code as you did in earlier Dreamweaver versions.
When the dialog box for the Swap Image action opens (see Figure 12-19), it automatically loads a list of all
the image names it finds in the current Web page. You select the image you want to change??”which could
be the same image to which you are attaching the behavior??”and specify the image file you want to replace
with the rolled-over image. You can swap more than one image with each Swap Image action.
Pages:
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822