Fabri wrote:
> I wonder if it is possible to rotate these images in this way:
>
>
>
> <img name="one" src="one.gif">
> <img name="two" src="two.gif">
> <img name="three" src="three.gif">
>
> I would like every 3 (or 4, 5...) seconds to appear 3 gif another way:
>
> first loop:
>
> 1-2-3
>
> second loop:
>
> 1-3-2
>
> third loop:
>
> 2-1-3
>
> fourth loop:
>
> 2-3-1
>
> and so on...
>
> Any help much appreciated.
>
> Best regards.
>
>
hi,
Make a callbackfunction using setTimeout("somefunction", time).
You set a function and the time that should elapse.
(Look it up.)
Then let that function end with another setTimeout().
You can change the src of an image like:
document.images["one"].src="somethingelse.gif";
Good luck.
Regards,
Erwin Moller
|