På forhånd tak

Kode: Vælg alt
<script type="text/javascript">
adImages = new Array
("billede1", "billede2", "billede3")
imgCt = adImages.length
firstTime=true
function rotate(){
if (document.images){
if (firstTime){
firstTime = false
}
else{
thisAd++
if (thisAd== imgCt){
thisAd = 0
}
}
document.myPicture.src=adImages
[thisAd]
setTimeout("rotate()", 5000)
}
</script>