vorhandene slideshow verändern...

vorhandene slideshow verändern...

Hallo, ich habe mir bereits eine Slideshow für einen Bilderwechsel angelegt, welche einen festen Zyklus hat, soll heißen, die Bilder wechseln immer von Bild 1 bis bild X. Nun möchte ich diese Slideshow etwas ändern: 1. soll das erste Bild zufällig ausgewählt werden und nicht immer mit Bild 1 anfangen 2. soll die reihenfolge zufällig gewählt werden und nicht immer von Bild bis Bild X laufen. geht mein vorhaben überhaupt oder ist es mit js nicht möglich? würde mich über antworten freuen, hier der code: Code: var SlideShowSpeed =20000; var CrossFadeDuration =50; var Picture =new Array(); // don't change this var Caption =new Array(); // don't change this Picture[1]  ='img/TOP2.jpg'; Picture[2]  ='img/TOP3.jpg'; Picture[3]  ='img/TOP5.jpg'; Picture[4]  ='img/TOP6.jpg'; Picture[5]  ='img/TOP7.jpg'; Picture[6]  ='img/TOP8.jpg'; Caption[1]  =""; Caption[2]  =""; Caption[3]  =""; Caption[4]  =""; Caption[5]  =""; Caption[6]  =""; var tss; var iss; var jss =1; var pss =Picture.length-1; var preLoad =new Array(); for (iss =1; iss < pss+1; iss++){ preLoad[iss] =new Image(); preLoad[iss].src =Picture[iss];} function runSlideShow(){ if (document.all){ document.images.PictureBox.style.filter="blendTrans(duration=2)"; document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)"; document.images.PictureBox.filters.blendTrans.Apply();} document.images.PictureBox.src =preLoad[jss].src; if (document.getElementById) document.getElementById("CaptionBox").innerHTML=Caption[jss]; if (document.all) document.images.PictureBox.filters.blendTrans.Play(); jss =jss + 1; if (jss > (pss)) jss=1; tss =setTimeout('runSlideShow()', SlideShowSpeed); }