By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,949 Members | 2,043 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,949 IT Pros & Developers. It's quick & easy.

Image Coordinates

P: n/a
Hello all,

I have a html page with image. When i move mouse over image, i want to
get
XY Coordinate of my mouse move position, how can i get that XY
Coordinate ?

Thanks in advance.
Jan 7 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
pradeep schreef:
I have a html page with image. When i move mouse over image, i want to
get
XY Coordinate of my mouse move position, how can i get that XY
Coordinate ?
By using an image map:

http://en.wikipedia.org/wiki/Image_map
JW
Jan 7 '08 #2

P: n/a
On Jan 7, 3:11*am, Janwillem Borleffs <j...@jwscripts.comwrote:
pradeep schreef:
I have a html page with image. When i move mouse over image, i want to
get
XY Coordinate of my mouse move position, how can i get that XY
Coordinate ?

By using an image map:

http://en.wikipedia.org/wiki/Image_map
How is that going to help?

I believe the correct answer is in the FAQ (or FAQ notes.) If not,
searching the group for pageX and clientX should yield the answer.
Jan 7 '08 #3

P: n/a
pradeep wrote:
Hello all,

I have a html page with image. When i move mouse over image, i want to
get
XY Coordinate of my mouse move position, how can i get that XY
Coordinate ?

Thanks in advance.
Please DO NOT multi-post!
Cross post if you must but do not multi-post, it just wastes people's
time.
Jan 7 '08 #4

P: n/a
Janwillem Borleffs wrote:
pradeep schreef:
>I have a html page with image. When i move mouse over image, i want to
get XY Coordinate of my mouse move position, how can i get that XY
Coordinate ?

By using an image map:

http://en.wikipedia.org/wiki/Image_map
An image map will only serve this purpose when it is client-side and areas
have been defined previously that have event listeners assigned. The image
needs to be clicked if the image map is server-side. Either one is probably
not what the OP is looking for.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Jan 7 '08 #5

P: n/a
David Mark wrote:
I believe the correct answer is in the FAQ (or FAQ notes.) If not,
searching the group for pageX and clientX should yield the answer.
I recall a time (and some old browser) that would show the x/y
coordinates as your mouse moved over an imagemap, but it's been a long
time since I recall seeing it (and one of my pages that I use frequently
contains an imagemap, so I'd see it, if it were still around.)

Perhaps it was Netscape? it doesn't do it any more. It was probably
considered too distracting having those numbers perpetually changing.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Jan 8 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.