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

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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.