ภาษาไทย
<html> <head> <script language="JavaScript"> //from downcodes.com function point_it(event){ pos_x = event.offsetX?(event.offsetX):event.pageX-document.getElementById("pointer_div") .offsetซ้าย; pos_y = event.offsetY?(event.offsetY):event.pageY-document.getElementById("pointer_div").offsetTop; document.getElementById("cross").style.left = (pos_x-1) ; document.getElementById("cross").style.top = (pos_y-15) ; document.getElementById("cross").style.visibility = "มองเห็นได้" ; document.pointform.form_x.value = pos_x; document.pointform.form_y.value = pos_y; } </script> </head> <body> <form name="pointform" method="post"> <div id="pointer_div" onclick="point_it(event)" style = "พื้นหลัง-ภาพ:url(' ');width:500px;height:333px;"> <img src="/images/logo.gif" id="cross" style="position:relative;visibility:hidden;z-index:2;">< /div> คุณชี้ไปที่ x = <input type="text" name="form_x" size="4" /> - y = <input type="text" name="form_y" size="4" /> < /รูปแบบ> </ร่างกาย> </html>