Results 1 to 2 of 2

Thread: Map a MouseOver image?

  1. #1
    Join Date
    Mar 2010

    Question Map a MouseOver image?

    I am trying to combine an image map with a mouseover effect.

    A large image of a clover appears on the home page with an invitation to enter by clicking on the clover. As the visitor mouses over the image, a "new image" appears with a smaller clover in the center of it.

    The code I have works, except that the entire "new image" is clickable rather than just the small clover in the middle. Can this be accomplished using HTML?

    Sorry I can't post the the URL, because its for an AF CoP.

    Thanks for your help!


  2. #2
    Join Date
    Mar 2010
    In the function that swaps the image, add a line that uses document.getElementById() to change the value of the usemap attribute of the <img> to the map name for the second image with the smaller clover.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center