View Single Post
Old 11-17-2006, 06:01 PM  
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
I'm just doing this off-the-cuff without testing, so..... *shrug*

Code:
<script type="text/JavaScript">
function rotateBanner()
{
   var target = document.images["targetbanner"];
   var banners = array("banner1.gif","banner2.gif","banner3.gif");
   target.src = Math.floor ( Math.random ( ) * banners.length );
}
</script>
<html>
 <body onload="rotateBanner()">
  <img src="clearpix.gif" name="targetBanner"/>
</body>
</html>
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote