[Javascript] Img posiition?
FRANCESC ESCOFET
fescofet at datadec.es
Tue Jul 17 11:05:44 CDT 2001
yes i know , this was a writing mistake.. with period it doesnt work too
> -----Mensaje original-----
> De: Jeff Walters [SMTP:jeff at cybermill.com]
> Enviado el: martes 17 de julio de 2001 18:05
> Para: FRANCESC ESCOFET; ANTONIO PEREZ; ANTONIO TORTOLA
> Asunto: Re: [Javascript] Img posiition?
>
> >
> > 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">
> >
>
> You have a comma where there should be a period.
> alert (document.all['my_img'].style.pixelTop); // this alert return 0
> alert (document.all['my_img'].style.pixelLeft); // this alert return 0
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Jeff Walters (314) 962-4024
>
> Cybermill Communications
> 8616 Joseph Ave
> St. Louis, MO 63144
> Jeff at cybermill.com
> http://www.cybermill.com/
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list