Results 1 to 1 of 1

Thread: Dynamic Blending Image Slideshow Script?

  1. #1
    Join Date
    Feb 2008
    Posts
    137
    Thanks
    18
    Thanked 2 Times in 2 Posts

    Question Dynamic Blending Image Slideshow Script?

    Script: Blending Image Slideshow Script
    http://www.dynamicdrive.com/dynamicindex14/image4.htm

    How make it dynamic?

    Attempted;
    Code:
    var slideimages=new Array("getpics.php")
    PHP Code:
    //getpics.php...

    function returnimages($dirname="path/to/images") {
       
    $pattern="\.(jpg|jpeg|png|gif|bmp)$";
       
    $files = array();
       
    $i 0;
       if(
    $handle opendir($dirname)) {
           while(
    false !== ($file readdir($handle))){
                   if(
    eregi($pattern$file)){
                     echo(
    "'$dirname/$file',\n");
                     
    $i++;
                   }
           }

           
    closedir($handle);
       }
       return(
    $files);
    }
    returnimages(); 
    Any help here would be great!

    Edit: Ok, cool fixed!
    echo("$dirname/$file,");
    Last edited by student101; 12-05-2009 at 02:52 PM.
    ASCII stupid question, get a stupid ANSI!
    Beta is Latin for still doesn’t work.
    Mac users swear by their Mac, PC users swear at their PC.
    Keyboard not found...Press any key to continue.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •