Português
<html> <head> <script language="JavaScript"> //de downcodes.com function point_it(event){ pos_x = event.offsetX?(event.offsetX):event.pageX-document.getElementById("pointer_div") .offsetLeft; pos_y = event.offsetY?(event.offsetY):event.pageY-document.getElementById("pointer_div").offsetTop; document.getElementById("cruz").style.left = (pos_x-1) ; document.getElementById("cruz").style.top = (pos_y-15) ; document.getElementById("cruz").style.visibility = "visível"; documento.pointform.form_x.value = pos_x; documento.pointform.form_y.value = pos_y; } </script> </head> <body> <form name="pointform" method="post"> <div id="pointer_div" onclick="point_it(event)" style = "background-image:url(' ');largura:500px;altura:333px;"> <img src="/images/logo.gif" id="cross" style="posição:relativa;visibilidade:oculto;z-index:2;">< /div> Você apontou x = <input type="text" name="form_x" size="4" /> - y = <input type="text" name="form_y" size="4" /> < /form> </body> </html>