Det kunne gøres noget i stil med:
<script type="text/javascript">
if(!Array.prototype.shuffle){Array.prototype.shuffle=function(){var a,b,j,I=this,i=I.length;if(i==0)return I;while(--i){j=Math.floor(Math.random()*(i+1));a=I[i];b=I[j];I[i]=b;I[j]=a}}};
var aBans = [
"01.jpg", "02.jpg", "03.jpg", "04.jpg", "05.jpg", "06.jpg", "07.jpg", "08.jpg", "09.jpg", "10.jpg", "11.jpg", "12.jpg", "13.jpg"
];
var nBanCount = 0;
function rotateBanner() {
nBanCount = nBanCount>=4 ? 0 : ++nBanCount;
document.getElementById("banner").setAttribute("src", aBans[nBanCount]);
}
function initBanner() {
aBans.shuffle();
aBans = aBans.splice(0, 5);
aBans.sort();
setInterval("rotateBanner()", 2000);
if (window.removeEventListener) window.removeEventListener("load", initBanner, false);
else if (window.detachEvent) window.detachEvent("onload", initBanner);
}
if (window.addEventListener) window.addEventListener("load", initBanner, false);
else if (window.attachEvent) window.attachEvent("onload", initBanner);
</script>
<img src="trans.png" id="banner" alt="Banner rotator">