1. Tech

Your suggestion is on its way!

An email with a link to:


was emailed to:

Thanks for sharing About.com with others!

Cycling Banner

1. Introduction and Sample

One method of creating an animated image is to create it as an animated gif file. This is all very well for simple images but what happens if you want to include photos or other complex images in your animation sequence?

The answer is to use a Javascript function to replace the image at regular intervals, that way you can use whatever images that you like in the sequence as long as all of the images are the same size. Since this effect is often used to replace ad banners, it is usually referred to as a rotating banner script but as you will see, the effect can be used for whatever images you like as long as they are all the same size.

Here is an example of the cycling banner script in action.

Cycling banner images

If this is the effect that you want to add to your page then the next step is to obtain the script.

©2016 About.com. All rights reserved.