Click here to Skip to main content
15,907,497 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 31-Jan-12 23:04pm
v2
Comments
Sergey Alexandrovich Kryukov 1-Feb-12 5:13am    
Why do you think there is a difference?
--SA

 
Share this answer
 
Comments
thatraja 1-Feb-12 11:53am    
5!
Rajesh Anuhya 2-Feb-12 1:13am    
Thanks again Raja
--RA
 
Share this answer
 
Comments
thatraja 1-Feb-12 11:53am    
5!
Anuja Pawar Indore 2-Feb-12 1:09am    
Thanks Raja :)
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
 
Share this answer
 
v2
Comments
thatraja 1-Feb-12 11:53am    
5!
Sergey Alexandrovich Kryukov 1-Feb-12 12:01pm    
Thank you, Raja.
--SA
see this examlpe

C#
window.onload = function loadw() {

            var b = 0;
            var e = document.getElementById('Image1');
            alert("ok");
            e.onmousemove = function movemouse() {

                b++;
                alert(b);
                if (b == 10)
                    element.onmousemove = null;
            }
        }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900