// image file names go in these arrays randImgObj.set1 = new Array("contact/..", "contact/wow_maureen.jpg", "contact/."); randImgObj.set2 = new Array("gastenboek/ja.jpg", "gastenboek/.", "gastenboek/samen.jpg"); // If all the images you wish to display are in the same location, you can specify the path here randImgObj.imagesPath = "media/rechtsboven/"; // No need to edit code below this line ///////////////////////////////////////////////////////////////////// Array.prototype.shuffle = function() { var i, temp, i1, i2; for (i=0; i 0)? --ctr: ++ctr; this.ctr = ctr; if ( typeof this.imgObj.filters != "undefined" ) { this.imgObj.style.filter = 'blendTrans(duration=1)'; if (this.imgObj.filters.blendTrans) this.imgObj.filters.blendTrans.Apply(); } this.imgObj.src = this.imgObj.imgs[this.ctr].src; if ( typeof this.imgObj.filters != "undefined" && this.imgObj.filters.blendTrans ) this.imgObj.filters.blendTrans.Play(); } } // sets up rotation for all defined randImgObjs randImgObj.start = function() { for (var i=0; i'; document.write(imgStr); } function initRandRotation() { for (var i=0; randImgObjs[i]; i++) { var rotator = randImgObjs[i]; rotator.imgObj = document.images["img" + i]; // get reference to the image object rotator.addImages(rotator.imgAr); rotator.rotate(); } randImgObj.start(); } window.onload = initRandRotation;