[Javascript] Img posiition?

FRANCESC ESCOFET fescofet at datadec.es
Tue Jul 17 04:38:48 CDT 2001


  Sorry folks 
  anybody knows how I can get the position (top and left) of a img?

  this dont work---

  <script>
   alert (document.all['my_img'],style.pixelTop);  // this alert return 0
   alert (document.all['my_img'],style.pixelLeft); // this alert return 0
  </script>

  <img id="my_img" src="my_img.gif">





More information about the Javascript mailing list