Home :: About Me :: Digital Works :: Favorite Links :: God :: My Family
Our Dogs :: Personal Downloads :: Photo Gallery :: Resume :: Travels :: Web Design

     Someone on a email list I am subscribed to asked about how to create a type of image gallery effect where you mouse over an image and a larger version of that image shows in another part of that same page. The example the person used was here: Stubbs Photos : Seniors

DW-mx.gif 2.73 KB (120 x 151) spacer.gif 0.41 KB (300 x 250)

In Dreamweaver MX, this is how you create that effect:

  1. First, you need to create a blank page and save it, for example: disjointed-roll.html
  2. Next, you need to insert an image and then single-click it with your mouse
  3. Now you need to "Name" it, that is give it a kind of "nickname" that the necessary Javascript code can know which image[s] to act on.

    dwmx-naming.jpg 17.64 KB (500 x 112)
  4. Insert a spacer or permanent state image. That is the image that is loaded when the HTML page first loads.
    - On that photo site, the picture of the guy in the brown shirt.
  5. You also need to "Name" the separate image that will actually change when the other one is named.

    naming-images.jpg 26.78 KB (519 x 167)
  6. Single-click on the image that when "moused-over" will change something else to select it
  7. Then, go into the "Behaviors" palette and select the "+" button
  8. Select "Swap Image" from the drop down list
  9. See the two images we "named"??
  10. Select the "spacer" image
  11. Then click the "Browse" button to select the image you want to appear in place of the Spacer.jpg image when you mouseover the DWMX.jpg image.

    swap-image-dialog.jpg 22.28 KB (484 x 274)

You're done!!


Date Last Modified: December 2, 2004 22:25

Webmaster :: Nicholas J. Coday

© 2006 All images and content

[Foood's Icons http://www.foood.net] Home.jpg 1.39 KB (50 x 50 pixels)
"Stop judging others, and you will not be judged. Stop criticizing others, or it will all come back on you. If you forgive others, you will be forgiven."
Luke 6:37, NLT
KLOVE Encouraging Word
[Credits]