Roll over Images

 

To insert a rollover image, you must have two images: the primary image and  the secondary 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.

 

Swap Image

The Swap Image action swaps one image for another by changing the src attribute of the img tag. Use this action to create button rollovers and other image effects (including swapping more than one image at a time). Inserting a rollover image automatically adds a Swap Image behavior to your page.

Note: Because only the src attribute is affected by this action, you should swap in an image that has the same dimensions (height and width) as the original. Otherwise, the image you swap in appears compacted or expanded to fit the original image’s dimensions.

To use the Swap Image action:

  1. Select Insert > Image or click the Image button on the Insert bar to insert an image.
  2. In the Property inspector, enter a name for the image in the leftmost text box.

The Swap Image action still works if you do not name your images; it names unnamed images automatically when you attach the behavior to an object. However, it is easier to distinguish images in the Swap Image dialog box if all of the images are named beforehand.

  1. Repeat steps 1 and 2 to insert additional images.
  2. Select an object (generally the image you’re going to swap) and open the Behaviors panel.
  3. Click the Plus (+) button and select Swap Image from the Actions pop-up menu.
  4. From the Images list, select the image whose source you want to change.
  5. Click Browse to select the new image file, or enter the path and filename of the new image in the Set Source To text box.
  6. Repeat steps 6 and 7 for any additional images you want to change. Use the same Swap Image action for all the images you want to change at once; otherwise, the corresponding Swap Image Restore action won’t restore all of them.
  7. Select the Preload Images option to load the new images into the browser’s cache when the page is loaded.

This prevents delays caused by downloading when it is time for the images to appear.

  1. Click OK.
  2. Check that the default event is the one you want.

If it isn’t, select another event from the pop-up menu. If the events you want are not listed, change the target browser in the Show Events For pop-up menu.

Linking Roll Over Image

To insert a link for a roll over image would be no different from linking a regular image.

Inserting Link

  1. Select the image (primary) that you want to link.
  2. In the Property inspector find the link box (located under Src box)
  3. In the link box insert the address desired (example http://www.google.com)

OR

1.      Right click on the selected image and choose the make link option.

2.      Locate the URL box at the bottom of the window and insert the adress desired.

Script for this website HTTP://www.tqnyc.org/NYC051229
 
<META http-equiv="Page-Enter" 
CONTENT="RevealTrans(Duration=4,Transition=3)">