
Dreamweaver makes is super easy for you to create nifty rollovers. A rollover uses two images. To do this project, get two images of the same dimensions. Basically we're going to use Dreamweaver's JavaScript to tell the browser to replace one image with the other when the user mouse or rolls over the image. If your images are not the same pixel size DW will resize the second image by using the size of the first image and distorting the second. Oh, by the way, you don't have to know a thing about JavaScript to create an Image Rollover. DW does it behind the scenes. If you do want to learn how it's done, open the Code Inspector or Show Code and Design Views of your Document Window as you work.
Preparing an Image Rollover



Choose the Rollover Image option. This will bring up the Insert Rollover Image Dialog Box. DW enters a default name for the image based on how many images you already have on your page. Keep the Preload Rollover Image checked.

Dreamweaver opens the Original Image window from which you can select your image.



Later in the course I'll show you how to do Disjointed Rollovers where you click on something in one place of your document screen and it affects the images in another area on your screen.
Let's quickly review the Image Dropdown menu on the Common Category of the Insert Panel again.

After you insert the Rollover Image, the icon for the Image in the Insert Panel will be a Rollover Image icon. DW assumes that you might do a series of Rollovers. Take a look at your Common Insert Bar now and see if the image of a tree is replaced with the image of a rollover image. Also, remember that you can use keyboard shortcuts or the Insert Menu to insert any of these objects onto your page.
![]()
* click the link below to continue with this lesson *
Image Maps