PHP and slide show

From: Date: Thu, 19 Oct 2000 23:28:17 +0000
Subject: PHP and slide show
Groups: php.windows 
Request: Send a blank email to php-windows+get-3390@lists.php.net to get a copy of this message
This is a script for simple slide show. It works on PC perfect but on Mac/Netscape stops after second or third or forth image. Does anybody know what's wrong? Thanx. Afan ------------------------------------------------------------ <html> <head> <title></title> </head> <body marginwidth="50" marginheight="0" topmargin="0" leftmargin="50" bgcolor="white" alink="#5B7AA1"> <?php if(!$i) $i = 1; if(!$timing) $timing = 5; if($prev) $i--; if($next) $i++; if($submit) $timing = $slideshow; if($stop) $timing = 180; echo"<img src=\"images/photo" . $i . "v2.jpg\" width=\"200\" hspace=\"0\" vspace=\"0\" border=\"0\" alt=\"\">"; ?> <form action="gallery-new-2.php" method="post"> Start slide-show by choosing delay-time:<br> <select name="slideshow" size="1"> <option SELECTED>Select delay </option> <option value="1">1 sec</option> <option value="5">5 sec</option> <option value="10">10 sec</option> <option value="15">15 sec</option> </select> <input type="Submit" name="submit" value="start"><br><br> </form><br> <?php echo"<font size=\"2\"><a href=\"gallery-new-2.php?stop=y&i=$i\">stop slide-show</a></font>"; // this file has same name: gallery-new-2.php ?> <? $i++; if($i == 9) $i = 1; // there is only 8 images. after last one start first one again. echo"<meta http-equiv=\"Refresh\" content=\"$timing; URL=gallery-new-2.php?i=$i&timing=$timing\">"; ?> </body> </html>

« previous php.windows (#3390) next »