473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Image Coordinates

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
5 5089
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Csaba2000 | last post by:
I want to be able to programatically click on the center of an <INPUT type=image ...> element (I only care about IE 5.5+). This should work regardless of whether IE has focus. Normally you would...
15
by: Tony Gahlinger | last post by:
I'm using my browser (Mozilla/5.0 Linux i686 Gecko/20031007 Firebird/0.7) to do some client-side image processing. I want to capture the sequence of coordinates a user clicks on in xxx.jpg in the...
1
by: Asaf Dan | last post by:
Hi, I'm using a panel to show an image. The Image could be bigger or smaller than the panel. I want to show the pixel coordinates of the image on a label next to the panel. I'm using an event...
3
by: Tom | last post by:
I have a picturebox on my VB.NET form. The picturebox size mode is set to stretched. I then load an image into that form and display it. As the user moves the mouse over the form, I want to get and...
4
by: Tomasz Bak | last post by:
Hello, I have a simple problem: mark a list of defects on an image. I think the best way to do it is to select a single deffect, then take two coordinates of coursor form an image on a web...
3
by: jackiepatti | last post by:
QUESTION: I have a web page containing a form that contains an image instead of a submit button, e.g. <form name='myform' action='get' method='otherpage.asp'> <input type='image'...
2
by: Noctiluca | last post by:
Hi folks, Very much a learner when it comes to programming so excuse me if this is a silly question... I'm trying to generate a map of the positions of moth records in a mysql database using PHP...
1
by: BryanM | last post by:
I have an asp.net site that uses a dropdown listbox to select 1 of 6 different images to be displayed at one time. Changing the image is working fine. But I need to define and use a different set of...
3
by: Andrzej | last post by:
I have a picturebox on my C# .NET form. The picturebox size mode is set to zoom. I then load an image into that form and display it. As the user moves the mouse over the form, I want to get and...
2
by: nvinhphu | last post by:
Dear all, I would like to generate images like the ones in the right column at this link http://www.micthemodel.org/pages/examples.html (Sorry but I can not post attachment). These images...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.