MadMac Tips and Tricks
Web CompsOptimizing GIFs Efficient Rollovers Web Typography CSS Vector Web Graphics
Image Rollovers Text Rollovers Remote Rollovers CSS Rollovers

Efficient Rollovers

In Macromedia DreamWeaver

Unless you have a specific JavaScript array already developed, DreamWeaver is the cleanest, most efficient method of creating rollovers. Image editors such as Adobe Photoshop and Macromedia Fireworks allow you to develop web pages with complex rollovers, but the code is bloated compared to what DreamWeaver outputs.

Image-swap Rollovers

There is very little reason to use rollovers for anything except navigation. And if your rollover is plain text, then consider using CSS to style your rollovers—you can still style buttons with borders or background images. Click here to see how. But if your rollover images are ready, then:

Default Image
Suppose this is your default image (mouse "up-state.)

Rollover Image
And this is what appears when your mouse "rolls over" the image.

Putting them together is as simple as choosing "Insert— Image Objects— Rollover Image..." After filling a dialogue box, you will have the rollover linked and a slew of JavaScript in the document head (view the "SCRIPT" tag in this page's source code:)

Back to Tips

Remote image swaps are useful for providing more information than the low-resolution browser window will permit. These are accomplished through a combination of JavaScript and CSS.


©2004 MadMac Creations
All recommendations are to be used at the reader's discretion, and is subject to change without notice. While a best effort is made to test software and techniques provided, the reader is advised to test thoroughly prior to implementation. MadMac Creations takes no responsibility for any losses accrued, unless Tony MacFarlane has been contracted.

Valid XHTML 1.0! Valid CSS 2.0!