var current = 0; function imageArray() { this.length = imageArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = imageArray.arguments[i]; } } // All images MUST BE OF THE SAME SIZE, since // the dimensions of the first image will be // used for all subsequent images. // All the images for your slide show need to // be stored in a single directory within // Filemanager, so you may have to do some // rearranging. You can use any group and any // number of images. Place your images within // each set of quotation marks below. var imgz = new imageArray("0.gif","1.gif","2.gif","3.gif","4.gif","5.gif","6.gif","7.gif","8.gif","9.gif"); document.write(''); function getPosition(val) { var goodnum = current+val; if (goodnum < 0) // This message is displayed if your visitor // tries to click back past your first image. // Place your message within the quotation // marks below. alert("You can't go any farther back!"); else if (goodnum > imgz.length-1) // This message is displayed if your visitor // tries to click past your last image. Place // your message within the quotation marks // below. alert("You can't go any farther forward!"); else document.myImages.src = imgz[goodnum]; current = goodnum; } //-->
Make your own free website on Tripod.com