hi, i have an image on my aspx page. i wantto see the coordinates of that image while roaming on the image dynamically. and when i mouseover i want to change the cursor. so, i could achieved this. but when i want to mouseout from the image, anywhere on the page, i dont want to see coordinates anymore and set the cursor default.
what should i do to do that when mouse is out of image. here is my code:
function show() {
var x=0
var y=0
x=event.clientX+document.body.scrollLeft
y=event.clientY+document.body.scrollTop
window.status=x + " " + y
document.body.style.cursor='crosshair'
document.onmousemove=show;
return true
}
what to do for onmouse. i tried to add
document.onmouseout=....; with a function but it is working just outside the window
thanks
what should i do to do that when mouse is out of image. here is my code:
function show() {
var x=0
var y=0
x=event.clientX+document.body.scrollLeft
y=event.clientY+document.body.scrollTop
window.status=x + " " + y
document.body.style.cursor='crosshair'
document.onmousemove=show;
return true
}
what to do for onmouse. i tried to add
document.onmouseout=....; with a function but it is working just outside the window
thanks