How To

How to Create a Mouse-Over Effect With Dreamweaver

Contributor
By eHow Contributing Writer
(17 Ratings)

A "mouse-over" effect occurs when a user moves the mouse pointer
onto an image. When the pointer rests on the image, it changes to something else. This is especially useful for navigation buttons. Dreamweaver 3.0 has mouse-over commands ready for you to set up!

Difficulty: Moderate
Instructions

Things You'll Need:

  1. Step 1

    Start Dreamweaver and open the page the mouse-over effect will be located on.

  2. Step 2

    Open the Insert menu and select Rollover Image. A dialog box will appear.

  3. Step 3

    Type the name of the image to be rolled over in the first box. For example, you might call a Home Page button Home Rollover.

  4. Step 4

    In the next box, type the location of the image that will appear on the page. Click Browse to choose an image from your hard disk.

  5. Step 5

    In the Rollover Image box, type the location of the image that will be appear when the mouse hovers over the image. Click Browse to choose an image from your hard disk.

  6. Step 6

    If the image is clickable (linked), type the Web address in the next box. Click OK.

  7. Step 7

    Save the page when finished.

  8. Step 8

    Test the mouse-over by choosing Preview in Browser from the File menu. Hover your mouse over the image to see the new image take its place.

Tips & Warnings
  • Make sure the Preload Rollover Image box is checked. This ensure the images used in the mouse-over are loaded into the Web site before the user has a chance to hover over the base image, reducing the chance of errors.
  • Both images must be the same size.
  • A mouse-over is part of a group of actions called "behaviors" in Dreamweaver. Behaviors, which are events (such as positioning the mouse) that trigger actions (such as displaying a new image), are made up of small pieces of JavaScript code that tell the browser to perform a function. For more on JavaScript, see "How to Learn About JavaScript" and "How to Add JavaScript to a Web Page with Dreamweaver," under Related eHows.
  • Mouse-overs, like most other JavaScripts, may not work in older browsers. Users will only see the original image.

Comments  

Flag This Comment

on 5/15/2009 Wow cheers for this little blurb I have wondered how webmasters done rollover buttons etc like this, have bookmarked your page for future reference :).http://www.nzcreativewebdesign.com

Post a Comment

Post a Comment

Have you done this? Click here to let us know.

I Did This

Related Ads

Internet
Virginia DeBolt,

Meet Virginia DeBolt eHow’s Internet Expert.

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US

Demand Media
eHow_eHow Technology and Electronics