Jump to content

Getting the coordinates of a mouseclick over an image


martin_g

Recommended Posts

Hi all,

 

I have an image which I want to use as a link from one page to another, passing the coordinates of where the user clicks on the image to the 2nd page.

 

Anybody got any ideas about the best way to do this?  I have already tried using the ISMAP method, but found that this was incompatible with Opera (or at least the version I have installed)

 

Many thanks in advance.

 

martin_g

Link to comment
Share on other sites

Hi,

 

I can't remember what the exact code was as I changed it immediately after I noticed the compatibility issue but it was using the ISMAP parameter to get the ?=156,234 data after the URL.  Using the XHTML 1.1 doc type:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"

"http://www.w3.org/TR/2001/REC-xhtml11-20010531/DTD/xhtml11-flat.dtd">

 

It was Opera 9.0 that did not work.  Basically when clicking on the image, Opera did nothing.  It could be a bug in opera rather than a compatibility issue, I suppose as I would have thought that at the very least it would have ignored the ISMAP and gone to the landing page.  Difficult to say now, as my last version save was way before this change, so I have no record of the code.

 

Some people might just say - sod opera, but as far as I am concerned, being a bit obsessive, if it doesn't work in one of the browsers, it's not done right.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.