Simple script for rotating banners. This rotates the banners by each refresh of the page.
You can place this in the advertisement area.
I agree with Videx.
Rotating every 5 seconds isn't wise to do.
HTML Code:
<script language="JavaScript">
images = new Array(4);
images[0] = "<a href = 'http://www.LinkToBannersWebsite.com target=_new><img src='http://www.PlaceWhereTheBannerIsStored.gif' alt='Hover text'></a>";
images[1] = "<a href = 'http://www.LinkToBannersWebsite.com target=_new><img src='http://www.PlaceWhereTheBannerIsStored.gif' alt='Hover text'></a>";
images[2] = "<a href = 'http://www.LinkToBannersWebsite.com target=_new><img src='http://www.PlaceWhereTheBannerIsStored.gif' alt='Hover text'></a>";
images[3] = "<a href = 'http://www.LinkToBannersWebsite.com target=_new><img src='http://www.PlaceWhereTheBannerIsStored.gif' alt='Hover text'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>