Using _javascript_, this example will rotate the three gifs at 1 second
intervals:

<SCRIPT LANGUAGE=_javascript_ TYPE="TEXT/_javascript_">
var adImages = new Array("image01.gif","image02.gif","image03.gif")
var thisAd = 0

function cycle() {
        if (document.images) {
                if (document.adBanner.complete) {
                        thisAd++
                        if (thisAd == 3) {
                                thisAd = 0
                        }
                        document.adBanner.src="">                 }
                setTimeout("cycle()", 1000)
        }
}
</SCRIPT>
<IMG SRC="" border=0 height=40 width=40  NAME="adBanner">

> -----Original Message-----
> From: Bailey, Neal [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 23, 2004 4:18 PM
> To: CF-Talk
> Subject: rotate images..
>
> Hey Guys...
>
>
> What's the easiest way to rotate a set of images on a site? I have a
> testimonial section that has an image with a few words and I want it to
> rotate through the images either by page load or by session...
>
>
> Is there an udf out there for this or a little script? I Google but could
> not find anything that I could use.
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to