/*************************************************************************************** Copyright (C) 2008 Andreas Berger This script is made by and copyrighted to Andreas Berger - andreas_berger@bretteleben.de It may be used for free as long as this msg is intact! **************************************************************************************** Version 20080502 ***************************************************************************************/ //*****parameters to set***** //into this array insert the paths of your pics. //if there are only 2 images, set them two times i.e. 1/2/1/2 imges=new Array ('cubeSM.jpg', 'sphereSM.jpg', 'tri4SM.jpg', 'cubeSM.jpg', 'sphereSM.jpg'); picleft=0; //set this to the left position of your pics to be shown on the page pictop=0; //set thid to the top position of your pics to be shown on the page picwid=200; //set this to the width of your widest pic pichei=200; //... and this to the height of your highest pic backgr="#eeeeee"; //set this to the background color you want to use for the slide-area //(for example the body-background-color) if your pics are of different size sdur=3; //time to show a pic between fades in seconds fdur=1; //duration of the complete fade in seconds steps=20; //steps to fade from on pic to the next startwhen=1; // "startwhen" leave it at "null" to start the function by calling it from your page by link //(sample: slide) // or set it to 1 to start the slide automatically as soon as the page is loaded //*****nothing more to do, have fun :) //************************************************************************************** ftim=fdur*1000/steps;stim=sdur*1000;emax=imges.length; for(e = 1; e <= emax; e++) { theid="img"+e;thesrc=imges[e-1]; document.write("