我如何获取图像控件上的(x,y)坐标 [英] How I Get (x,y) Co-ordinates on the Image Control

查看:70
本文介绍了我如何获取图像控件上的(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[^]


这篇关于我如何获取图像控件上的(x,y)坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆