我如何获取图像控件上的(x,y)坐标
问题描述:
当鼠标指向图像上的特定点时,我需要获取图像上的x,y坐标.
有机会写出mouseover事件吗?
请帮帮我
在此先感谢
I need to get the x,y co-ordinates on the image when mouse pointing to the specific point on the image.
Is there any chance to write mouseover event?
Please help me
Thanks in Advance
答
在Google中使用:window.event
...window.event.srcElement
...
Use/Google for:window.event
...window.event.srcElement
...
Google是您的朋友.我搜索了这个短语:
"c#asp.net鼠标悬停事件"
这是超过166,000个结果中的第一个:
http://msdn.microsoft.com/en-us/library/7ytf5t7k.aspx [ ^ ]
Google is your friend. I searched on this phrase:
"c# asp.net mouseover events"
and this was the first of over 166,000 results:
http://msdn.microsoft.com/en-us/library/7ytf5t7k.aspx[^]