homepage Welcome to WebmasterWorld Guest from 23.22.173.58
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
photo gallery
peten



 
Msg#: 4294766 posted 8:48 pm on Apr 9, 2011 (gmt 0)

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

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4294766 posted 4:14 pm on Apr 11, 2011 (gmt 0)

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



 
Msg#: 4294766 posted 5:00 pm on Apr 11, 2011 (gmt 0)

OK ta i will have a look see

Pete .

looter



 
Msg#: 4294766 posted 3:49 am on Apr 21, 2011 (gmt 0)

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



 
Msg#: 4294766 posted 12:45 pm on May 8, 2011 (gmt 0)

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

10+ Year Member



 
Msg#: 4294766 posted 6:55 pm on May 8, 2011 (gmt 0)

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

peten



 
Msg#: 4294766 posted 11:38 pm on May 8, 2011 (gmt 0)

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



 
Msg#: 4294766 posted 12:29 pm on Jun 2, 2011 (gmt 0)

[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]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved