Menu
var pic = document.getElementById(“myimage”);
var box = document.getElementById(“comment”);
var ix = pic.offsetLeft;
var iy = pic.offsetTop;
box.style.position = “absolute”;
box.style.top = iy+clickY;
box.style.left = ix+clickX;
why is it that when I try to document.write(ix); that I dont get anything…. Iam looking to get the X and Y position of the top left corner of image. var pic points to that image…. iam so confused.