Forum Moderators: open

Message Too Old, No Replies

photo gallery

         

peten

8:48 pm on Apr 9, 2011 (gmt 0)

10+ Year Member



Hi looking for a way to get a photo gallery to read a directory of image files and display them but without having to enter the name of each file as this is a gallery that will change on a regular basis .

I have looked around but am coming up dry

Pete .

rocknbil

4:14 pm on Apr 11, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You'll probably need some sort of server side programming to read the directory - PHP, Perl, ASP . . . you might look for "PHP static gallery" or something like that.

You won't likely be able to do it with Javascript as there are security limitations on what Javascript can do - reading the file system is among them.

peten

5:00 pm on Apr 11, 2011 (gmt 0)

10+ Year Member



OK ta i will have a look see

Pete .

looter

3:49 am on Apr 21, 2011 (gmt 0)

10+ Year Member



rocknbil +1
Alternatively (JavaScript)
You may list the files in the hidden iframe (href="image folder name") then get the innerhtml from iframe and manipulate by javascript.

peten

12:45 pm on May 8, 2011 (gmt 0)

10+ Year Member



right then well problem solved very easily in the long run

code: for f in stagepics/*jpg ; do echo "<a class=\"thumbnail\" href=\"#thumb\"><img
src=\"$f\" width=\"100px\" height=\"75px\" border=\"0\"><span><img
src=\"$f\"></span></a>" ; done > pics.html

works a treat in Linux i have no doubt it can be modded for use under wnders
HTH someone

Pete .

Hoople

6:55 pm on May 8, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Search 'Automatically Generate a Photo Gallery from a Directory of Images' and you will have plenty of choices.

peten

11:38 pm on May 8, 2011 (gmt 0)

10+ Year Member



Hi
i had found a few but for one reason or another they did not seem right (personal likes and dislikes i suppose) one hing i will say about the script if like me you like your cose to look tidy then it all needs to be on one line

KwikDrySystems

12:29 pm on Jun 2, 2011 (gmt 0)

10+ Year Member



[web-kreation.com...] - That website offers a few that I like. If you have any problems or need anything specific to your needs, feel free to contact me.

Robert Mitchell

[edited by: incrediBILL at 12:39 pm (utc) on Jun 2, 2011]
[edit reason] sigs removed [/edit]