Hi guys,
I have this banner rotator code and i was wondering if it's posible to make it rotate randomly those banners still with the posibility to set a time for each.
I'd really like to work this way! 
Thanks!
I have this banner rotator code and i was wondering if it's posible to make it rotate randomly those banners still with the posibility to set a time for each.
Code:
<script type="text/javascript">
var imgs1 = new Array("http://banner1","http://banner2","http://banner3");
var lnks1 = new Array("http://www.link1","http://link2","http://link3");
var alt1 = new Array("alt1","alt2","alt3");
var currentAd1 = 0;
var imgCt1 = 3;
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0;
}
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
banner1.src=imgs1[currentAd1]
banner1.alt=alt1[currentAd1]
document.getElementById('adLink1').href=lnks1[currentAd1]
currentAd1++;
}
window.setInterval("cycle1()",5000);
</script>
<a href=""http://www.link1"" id="adLink1" target="_blank">
<img src="http://banner1" id="adBanner1" border="0" width="468" height="60"></a>

Thanks!