#1
  1. No Profile Picture
    jayuen
    Guest
    Devshed Newbie (0 - 499 posts)
    Here's my dilemma:

    I have an imagemap and when I mouseover a certain region, I want the image to change and a webpage to load in a different part of the frame. That I have done. However, I was wondering if its possible that when I click on the region, for the "mouseover-ed" image to remain there and not change?

    Just to clarify, I still want the on-off mouseover cycling ability - but when the image is clicked i want it to stay.

    Any hints?

    Jason Yuen
  2. #2
  3. No Profile Picture
    click_46
    Guest
    Devshed Newbie (0 - 499 posts)
    onClick method should do the trick. When the onClick fires, a function keeps the image in place.

    click_46
  4. #3
  5. No Profile Picture
    jayuen
    Guest
    Devshed Newbie (0 - 499 posts)
    but the imagemaps don't support onClick, do they?
  6. #4
  7. No Profile Picture
    dahamsta
    Guest
    Devshed Newbie (0 - 499 posts)
    Yes, an imagemap should support onClick. If they support onMouseover, they'll support onClick. But it won't work, because onMouseOut will trigger it to disappear again. You'll have to build a function that will set a state using onClick, and check that state before performing the onMousOut function. I'm not an expert on JavaScript, but I'll have a look around for you...

    adam

Similar Threads

  1. onMouseover Javascript in Imagemaps?
    By LakotaWolf in forum JavaScript Development
    Replies: 1
    Last Post: February 14th, 2004, 07:38 PM
  2. Multiple Imagemaps on non-visiable images?
    By jtenneson in forum HTML Programming
    Replies: 2
    Last Post: November 5th, 2003, 10:32 AM
  3. imagemaps, hotspots, and changing text
    By slm in forum HTML Programming
    Replies: 5
    Last Post: March 24th, 2003, 04:03 PM
  4. having trouble with changing images with imagemaps.
    By Boom in forum HTML Programming
    Replies: 1
    Last Post: January 1st, 2001, 02:29 PM
  5. 3rd image mouseover - how to include imagemaps
    By bolt in forum HTML Programming
    Replies: 0
    Last Post: August 11th, 1999, 07:28 AM

IMN logo majestic logo threadwatch logo seochat tools logo