If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Senior Member
    Join Date
    Oct 2007
    Member #
    Hi, I want to make a menu which will have several buttons in the same graphic format. All I want is when mouse is over a button, that button will change to another image. I found this code on w3schools website. However I want more than one button. Many buttons actually. So each button will have different two image pairs like below (one for mouseover and one for mouseout). What is the best way to write the code below for more than one button (again each button will have two pairs of images different than any other button) animated as done below? (So that I can make a menu)

    <script type="text/javascript">
    function mouseOver()
    document.b1.src ="b_blue.gif";
    function mouseOut()
    document.b1.src ="b_pink.gif";

    <a href="" target="_blank">
    <img border="0" alt="Visit W3Schools!" src="b_pink.gif" name="b1" width="26" height="26" onmouseover="mouseOver()" onmouseout="mouseOut()" /></a>


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 03:07 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: