Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Image Input 2


Message #1 by "Ismail" <ismail82sg@y...> on Mon, 17 Feb 2003 12:39:09
First, the image's position has to be declared as absolute (with 
respect to
browser) :

document.images["img_name"].style.position =3D "absolute"

Then, the image's x-y coordinates are related to
document.images["img_name"].style.left
document.images["img_name"].style.top

HTH

> -----Message d'origine-----
> De : Ismail [mailto:ismail82sg@y...]
> Envoy=C3=A9 : lundi 17 f=C3=A9vrier 2003 15:29
> =C3=80 : javascript
> Objet : [javascript] RE: Image Input 2
>
>
> Yes, i really do need to really change image position. Do u
> know how? Can
> help me? Thanks!
>
> > 	Do you need to really change image position, or you just need to
> swap images so as to appear as a position change ?
>
> 	To swap, ie to replace, an image by another, it's more
> or less like
> this :
>
> <img name=3D3Di1 src=3D3D"image1.gif">
> ...
> <img name=3D3Di4 src=3D3D"image4.gif">
> ....
> <script ...>
> document.images["i4"].src =3D3D document.images["i1"].src
> </script>
>

  Return to Index