var isIE = false; if (document.all) { isIE = true; } var fotos = new Array(); var changeTime = 50; var fotopos = 0; function neu(url, text, slide) { var Neu = fotos.length; fotos[Neu] = new Array(); fotos[Neu].text = text; fotos[Neu].slide = slide; fotos[Neu].pic = new Image(); fotos[Neu].pic.src = url; } function transport(){ window.location = fotos[fotopos].slide; } var wechsel = function(){ if (changeTime === null) { changeTime = 50; } fotopos = Math.floor(Math.random() * (fotos.length - 1)); document.bild.src = fotos[fotopos].pic.src; setTimeout(wechsel, changeTime * 1000); };