1var isIE = false; 2 3if (document.all) { 4 isIE = true; 5} 6 7var fotos = new Array(); 8var changeTime = 50; 9var fotopos = 0; 10 11function neu(url, text, slide) { 12 var Neu = fotos.length; 13 fotos[Neu] = new Array(); 14 fotos[Neu].text = text; 15 fotos[Neu].slide = slide; 16 fotos[Neu].pic = new Image(); 17 fotos[Neu].pic.src = url; 18} 19 20function transport(){ 21 window.location = fotos[fotopos].slide; 22} 23 24var wechsel = function(){ 25 if (changeTime === null) { 26 changeTime = 50; 27 } 28 fotopos = Math.floor(Math.random() * (fotos.length - 1)); 29 document.bild.src = fotos[fotopos].pic.src; 30 setTimeout(wechsel, changeTime * 1000); 31}; 32 33