> convert -delay 40 -loop 1 tree*.png trees.gif
This will generate an animated GIF file with 40ms delay between images that will play once (
-loop 1). You can use
-loop 0 value to loop indefinitely. Here is the image that was generated:
If you do not see any animation and see the grass, it means that the animation is already over (as it loops only once).
this refers to the object that the
onlick event is triggered for (the a tag in this case) and its
href attribute is modified with a random query parameter (which is ignored by the browser in this case).