you can use javascript to rotate banners
this will go in the <head></head> tags
HTML Code:
<script language="Javascript" type="text/javascript">
<!-- Hide script from old browsers
adImages = new Array("image1.jpg","image2.jpg","image3.jpg")
adURL = new Array("link1.com","link2.com","link3.com")
thisAd = 0
imgCt = adImages.length
function rotate() {
if (document.images) {
thisAd++
if (thisAd == imgCt) {
thisAd = 0
}
document.adBanner.src=adImages[thisAd]
setTimeout("rotate()", 3 * 1000)
}
}
function newLocation() {
targetWindow = window.open("http://" + adURL[thisAd],"","");
}
// End hiding script from old browsers -->
</script>
then have this in the body section
HTML Code:
<body onload="rotate()">
<a href="javascript:newLocation()">
<img src="image1.jpg" width="173" height="230" name="adBanner" alt="Ad Banner" border="0" /></a>
just substitue the image... with the name of you image and link... with the hyperlink for where you want the image to take the user
also you can easily use more images by adding a comma (,) then putting the nex images name in quotes ("") before the end parenthesis ()). i.e. ..."image3.jpg", "image4.jpg") and then you can do the same with the links
hope this helps
Last edited by goldingh99; 04-20-2006 at 01:15 PM..
|