<script>
function displayImageSrc(element, event) {
var imageSrc = element.id;
var xp = event.clientX; // Get the horizontal coordinate of the mouse pointer
var yp = event.clientY; // Get the vertical coordinate of the mouse pointer
var x = element.getBoundingClientRect().left; // Get the horizontal coordinate of the mouse pointer
var y = element.getBoundingClientRect().top; // Get the vertical coordinate of the mouse pointer
//var w=element.getBoundingClientRect().width;
var clickedImageSrcElement = document.getElementById('clickedImageSrc');
if (clickedImageSrcElement) {
// clickedImageSrcElement.value = "Image ID: " + imageSrc + ", X: " + x + ", Y: " + y ;
clickedImageSrcElement.value = imageSrc + "," + x + "," + y + "," + xp + "," + yp ;
//alert('web source: ' + clickedImageSrcElement.value);
}
}
</script>
<title>Image Click Event</title>
<script>
function imageClicked(imageId) {
// Call the VBA function to switch focus to another form
//window.external.form_frmdragimg_detail_mousemove(1,0,xp, yp);
}
</script>