获取图像的鼠标坐标值 [英] Get the mouse coordinate values for image

查看:89
本文介绍了获取图像的鼠标坐标值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用图像按钮获取asp.net中的坐标.我正在使用onclick事件获取坐标值.......

但我需要其他帮助..........
当我在图像上移动鼠标光标时,将显示坐标值

I am using image button to get the coordinates in asp.net.i am using onclick event to get the coordinates value.......

but i need another help..........
when i move my mouse cursor on image it''s display the coordinates value

推荐答案

通过此链接进行搜索
http://stackoverflow.com/questions/570582/move-a-picturebox-with-mouse [^ ]

http://www.java2s.com/Code/CSharp/Event/HandleMouseclickeventonanImage.htm [ ^ ]

谢谢
--RA
go through this links
http://stackoverflow.com/questions/570582/move-a-picturebox-with-mouse[^]

http://www.java2s.com/Code/CSharp/Event/HandleMouseclickeventonanImage.htm[^]

Thanks
--RA


参阅此内容,可能会对您有所帮助
http://www.geekpedia.com/tutorial146_Get-screen-cursor-coordinates.html [ ^ ]
See this, might help you
http://www.geekpedia.com/tutorial146_Get-screen-cursor-coordinates.html[^]


请使用属性clientX, clientY或作为事件onmousemove的事件处理程序的参数传递的事件对象.

供参考: http://msdn.microsoft.com/zh-cn/library/ie/ms536947%28v = vs.85%29.aspx [
Please use the properties clientX, clientY or the event object passed as a parameter of the event handler of the event onmousemove.

For a reference: http://msdn.microsoft.com/en-us/library/ie/ms536947%28v=vs.85%29.aspx[^].

—SA


这篇关于获取图像的鼠标坐标值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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