[Ilugc] slide show using php

  • From: nahalingam@xxxxxxxxx (Nahalingam N. Kanakavel)
  • Date: Wed Jan 30 18:38:34 2008

Suresh,

According to my knowledge,
PHP will run in Server not at the browser(client),
So you cannot control the delay the display of images in browser using PHP
code.

You have to write some Javascript routine to hide and to show the
list of image objects one after another.

In the given code snippet here, you have tried to create list of
 <img src=".."></img> tag it seems. For this situation the code snippet
could be...
----
    $imagesArray = array (1,2,3,4);

    for ($i=0; $i<count($imagesArray); $i++) {
        echo "<img src='" . $imagesArray[$i] . ".png'></img>\n";
    }
----
Anyway this will list the images one by one only.

Please correct me, If any things wrong in it.

Regards,
Nahalingam.

On 30/01/2008, Suresh Kumar <suresh1876@xxxxxxxxx> wrote:


Hi friends
  need some help in making a slide show in php
   i have an array of images
   now i want to display this array of images as a slide show in php
   $imagesArray = "list of image urls "
   something like this...
  <img src=
<?
      for ($i; count($imagesArray);$i++)
   {
    echo $imagesArray[$i];
   }
?>
</img>

i also want to incorporate delay in between the display of images.

how can i implement this..?

--
with regards
J Suresh Kumar
99400 95614

Other related posts: