Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create a Rotating Banner?

ASP 101

How to create a Rotating Banner?

by  CDN  Posted    (Edited  )
[tt][color blue]
<script LANGUAGE="JavaScript">
<!--Hide

var numImages = 3
var allImages = new Array(numImages)
var i = 0
allImages[0] = new Image()
allImages[0].src = "newlogo1.gif"
allImages[1] = new Image()
allImages[1].src = "newlogo2.gif"
allImages[2] = new Image()
allImages[2].src = "newlogo3.gif"
allImages[3] = new Image()
allImages[3].src = "newlogo4.gif"
allImages[4] = new Image()
allImages[4].src = "newlogo5.gif"


function nextImage() {
document.images[0].src = allImages.src
i = i + 1
if (i>=numImages)
{
i = 0
}
setTimeout("nextImage()", 4000)
}
setTimeout("nextImage()", 4000)
//Stop Hiding-->
</script>
[/tt][/color]
[flowerface]
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top