Main Page.'; $AbsPath="../subdirectoryofthisfile/"; // directory this file is in $FileName="slideshow.php"; // filename of this file $ImgDir="../relativedirectorywithimages/"; // relative path to image files $StylePath="../style/"; // relative path to stylesheet $maxpicnum = 9; // image array starting at zero $maxpicnumtext = "ten"; // text word for number of images // ============================= $speed = $_REQUEST['speed']; $slide = $_REQUEST['slide']; $stop = $_REQUEST['stop']; if(!isset($speed)){$speed=0;} if(!isset($slide)){$slide=0;} if($stop=='Stop'){$speed=0;} // your image file names in order of display - use your own filenames // the .jpg extension will automatically be appended $SlideName=array( "pic01", "pic02", "pic03", "pic04", "pic05", "pic06", "pic07", "pic08", "pic09", "pic10", ); // add image captions in same order as image files $CaptionName=array( "Caption for 01", "Caption for 02", "Caption for 03", "Caption for 04", "Caption for 05", "Caption for 06", "Caption for 07", "Caption for 08", "Caption for 09", "Caption for 10", ); // End of Variables for this slide show // Rest of page remains unchanged for any slideshow you create // ==================================== $CaptionNum=$slide+1; $Text=ucfirst($SlideName[$slide]); $Size=getimagesize($ImgDir.$SlideName[$slide].'.jpg'); //$Margin=((265-$Size[1])/2); $Margin=10; // Next line ($Showslide) is normal operation. Comment out this line and UNcomment // second $Showslide line if you want the image to be clickable and open // in a new window. $Showslide=''.$Text.'
'.$CaptionNum.'.   '.$CaptionName[$slide]; // If you desire that visitor could click on image and open a copy // in a new window, use the following line instead. Note that if // slide show is running, it will continue to run in the background. //$Showslide=''.$Text.'
'.$CaptionNum.'.   '.$CaptionName[$slide]; // End choice of operation if($slide==0){$PreviousImage=$maxpicnum;$NextImage=1;}else{$PreviousImage=$slide-1;$NextImage=$slide+1;} if($slide==$maxpicnum){$NextImage=0;} //ob_start("ob_gzhandler"); header("Author: brucie"); header("Copyright: 2004"); header("Content-Language: en"); header("Cache-Control: public"); header('Last-Modified:'.$DateLastMod); header("Content-Type: text/html; charset=iso-8859-1"); if($speed!=0){header('Refresh: '.$speed.'; url='.$AbsPath.$FileName.'?speed='.$speed.'&slide='.$NextImage);} echo ''."\r\n\r\n"; echo ''."\r\n\r\n"; echo ''.$title.$CaptionName[$slide].''."\r\n\r\n".'
'."\r\n"; //echo '

'.$Text.'

'."\r\n\r\n"; echo '
'.$Showslide.'
'."\r\n\r\n"; echo '

'."\r\n"; echo 'Previous Image ·'."\r\n"; echo 'Next Image'."\r\n"; echo '

'."\r\n".'
'."\r\n\r\n"; echo '
'."\r\n"; echo '

There are '.$maxpicnumtext.' slides.
'."\r\n"; echo ''."\r\n"; echo ''."\r\n"; echo '

'."\r\n".'
'."\r\n\r\n"; echo ''; ?>