Developing Webs logo
Google
Web DW-Main DW-Photoshop
Visit the message board for solutions or post a question Check out the Classes offered for free at Developing Webs Voice Chat submit a tutorial, resources, article, font for publication consideration and earn a one way link back to your site Get more specifics about the Developing Webs Voice chat room and its room members View the current news at Developing Webs alternative sites which are resources for your d3evelopment needs Join Developing Webs Chat Link to us on your web page to help support this resource! Check out Developing Webs At yahoo groups! Developing Webs Home Adobe Photoshop Tutorials Macromedia Flash Tutorials Jasc Paint Shop Pro Tutorials Adobe Illustrator Animation basics Some Basic PHP tutorials Perl Tutorials HTML Tutorials Cascading Style Sheets javascript Front Page Tutorials Macromedia Dream Weaver Tutorials dreamweaver Publishing your site, FTP, ChMod, Promotions
RSS Newsfeed
for your site
DW News
Calendar
DW Forum
Right click on button and copy shortcut

Add to My Yahoo!

Reminder
Remember to book mark this site!



Request a Tutorial
Adding a 'Mouse Over Image' Menu to your Page

This tutorial walks you through adding a MouseOver Image Java Script Menu to your page. Mouseover java script is where you rollover the image with the mouse and it swaps the image for another.

EXAMPLE:

1. Create a folder on your hard drive.

2. Place your before rollover and on rollover images in this folder. For this example, the before rollover image is here. The on rollover image is here. Right click on the image and select save as. Save this in your new folder.

3. Open up a notepad document. Insert the following code that is the basic page layout

  • highlighting all of the text,
  • right click on it while highlighted
  • select copy
  • Plant your cursor in the notepad
  • click edit paste.

4.  Now open the mouse rollover generator page by clicking this link.

5. Type in the names of your images just as you saved them. Make button1.jpg your before image(#1) and button2.jpg your mouseover image (MOI). Put a link URL in the third box.  This completes the set for the first button. Additional buttons can be added by typing in additional blanks. If the URL is left blank, there will be no link created, just a mouseover.

6. At the bottom of the form click the button that says Done!

7. In the bottom box is your script. Copy the part that is intended for the head of your doc into the area on your notepad that says <!-- insert head part of code in space below -->

  • highlighting the text intended for the head of your HTML,
  • right click on it while highlighted
  • select copy
  • Plant your cursor in the notepad exactly where indicated
  • click edit paste.

8. Copy the part that is intended for the body of your doc and paste into your doc after where it says <!-- insert body part of code in space below -->

  • highlighting the text intended for the body of your document,
  • right click on it while highlighted
  • select copy
  • Plant your cursor in the notepad
  • click edit paste.

9. Save this notepad to the same folder with your images using Save As and call it rollover.html . Use the instructions to saving notepad information as html here if need be.

10. Open the folder when you saved the images and the HTML file. Double click the file called rollover.html and there is your working rollover.



"Building The Web Into a Nicer Place -- One Site At A Time"
Developing Webs Group Copyright © 2001-2026 All Rights Reserved
Privacy and Legal