Unit 3: Advanced Dreamweaver Features
Image Rollovers
A rollover is an
image that changes when the pointer moves across it. A rollover actually
consists of two images: the primary image (the image displayed when
the page first loads) and the rollover image (the image that appears
when the pointer moves over the primary image). Both images in a rollover
should be the same size; if the images are not the same size, Dreamweaver
automatically resizes the second image to match the properties of the
first image. Here is an example of a simple rollover:
 To Create a Rollover:
- In the Document window, place the insertion point where you want
the rollover to appear.
- Insert the rollover by doing one of the
following:
- In the Objects panel's Common category, click the Insert Rollover
Image icon.

- Or, choose Insert > Interactive Images >Rollover Image.
The Insert Rollover Image dialog box appears.
- In the Image Name field, type a
name for the rollover image (don't use special characters).
- In
the Original Image field, click Browse and select the image or type
the path of the image you want displayed when the
page loads.
- In the Rollover Image field, click Browse and select
the image
or type the path of the image you want displayed when the
pointer rolls over the original image.
- If you want the images preloaded
in the browser's cache so they load faster, select the Preload Images
option.
-
In the "When Clicked Go to URL" field, click
Browse and select the file, or type the path to the
file you want to
open when a user clicks the rollover image.
Note: If you don't set a link for the image,
Dreamweaver inserts a null link (#) in the HTML source
code to which the rollover behavior is attached.
If you remove the null link, the rollover image will
no longer work.
-
Click OK to close the Insert Rollover Image dialog box.
{back to top}
contact the site admin: Anita Warfford
(aawarffo@uncg.edu)
last updated: 11/21/03 |