#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 1999
    Location
    St.JOhn's, Newfoundland, Canada
    Posts
    7
    Rep Power
    0
    Can anyone please tell me if it is possible for when the mouse paases over an area in an image map, another image pops up.

    If so please do tell me how if not, please let me no either way.

    Tim
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Posts
    84
    Rep Power
    16
    Here is an example:

    <HTML>
    <HEAD>
    <TITLE>Simple Image Rollover</TITLE>
    <SCRIPT LANGUAGE="javascript">
    <!--//
    /* Author: Spookster
    * Email: ts_spook@hotmail.com
    * Description: This script will preload
    * your images and allow you to produce a
    * dynamic rollover effect.
    */

    // This statement detects if the browser supports the image object
    if (document.images) {

    //This section instantiates or creates the image objects
    //You can also add the width and height of the images inside the parentheses seperated by a comma
    image1 = new Image();
    image2 = new Image();

    //This section specifies the location or url of the images to be used
    image1.src = "image1.jpg"
    image2.src = "image2.jpg"
    }
    //-->
    </SCRIPT>
    </HEAD>
    <BODY>
    <IMG src="yourimage.jpg" border="0" usemap="#imagemap1">
    <MAP name="imagemap1">
    <AREA shape="circle" coords="115,267,27" href="somewhere.html" onMouseover="document.rollover1.src=image2.src" onMouseout="document.rollover1.src=image1.src">
    </MAP>
    <BR>
    <IMG src="image1.jpg" name="rollover1">
    </BODY>
    </HTML>

    Spookster

Similar Threads

  1. Finding Images in HTML
    By beardo in forum PHP Development
    Replies: 14
    Last Post: March 28th, 2004, 07:29 AM
  2. Replies: 8
    Last Post: February 7th, 2004, 02:20 PM
  3. Image hover on top of image map?
    By dhodyic in forum HTML Programming
    Replies: 12
    Last Post: December 6th, 2003, 01:26 PM
  4. image map position problem
    By kerriD in forum HTML Programming
    Replies: 0
    Last Post: October 31st, 2003, 02:18 PM
  5. anyway to change content of table with image map rollover?
    By skrapyard in forum HTML Programming
    Replies: 0
    Last Post: February 9th, 2001, 01:29 AM

IMN logo majestic logo threadwatch logo seochat tools logo