The ISMAP attribute is used with server-side image maps. When the ISMAP attribute is included with a linked image and the user clicks the image, the image coordinates clicked are sent to the server, from which a location can be returned.
<SCRIPT LANGUAGE="JavaScript">
function getAbsLeft(e){var l=e.offsetLeft; while(e=e.offsetParent) l += e.offsetLeft; return l;}
function getAbsTop(e) {var t=e.offsetTop; while(e=e.offsetParent) t += e.offsetTop; return t;}
//上面这两个函数是取得控件在页面里的绝对位置
function mz(e)
{
alert("你鼠标点击的坐标:\r\nx="+ window.event.clientX +" y="+ window.event.clientY);
var top = getAbsTop(e);
var left= getAbsLeft(e);
document.myform.action = "test.asp\?x="+ left +"&y="+ top;
}
</SCRIPT>