Re: Gallery Script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Chubb wrote:
> Hi all,
> I have a working gallery script which reads a directory then shows all
> thumbnails, each linking to the full size image.
> I'm trying to change it so that the page shows an image (fullsize)
> then links to the previous/next images in the sequence & then all the
> thumbnails below (the bit that's working fine at the moment). The
> filenames are straight from the camera (eg DSC102834.jpg or something)
> so I know that I need to get all the filenames into an array then use
> the key indexing or something, but I'm not sure how to do it?
> Also I'm not sure if I should be using readdir or glob?
> 
> I've modified the code below so that it just displays the text of the
> filename rather than the actual image to speed up testing/reduce
> bandwidth.
> 
> If anyone could point me in the right direction I'd really appreciate it

If you don't mind relying on javascript then take a look at lightbox or
thickbox and similar soltuions.

These are solutions where you only need to generate a gallery page with
the thumbnails and it will do the rest for you complete with
previous/next links and even thumbnails...

Col

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux