• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Rollover Images

Another way to add interactivity to your Web page—this time without using the Flash engine—is to use what Dreamweaver calls Rollover Images. (Other folks call them image rollovers.) In these cases, when the user mouses over a button or other image file, that image is replaced by another of the same size. What actually happens is that when the user triggers the rollover, the src attribute of the image file changes and requests that another image in the same site be displayed in its place.

For these gadgets, Dreamweaver uses a couple of JavaScript behaviors to change an image when the user mouses over it. We’ll show you the quick way to add them here. For the nitty-gritty on behaviors and how to edit them, see Chapter 13, JavaScript & Dreamweaver Behaviors.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint