It is called an animated gif. No, no JavaScript or any other script is required.
You will either need a graphics program capable of creating an animated gif though, or aquire the rights to use an existing image. Do a search for gif animator or animated gif respectively.