Simple gallery
- Started
- Last post
- 3 Responses
- ifos
I need to make a gallery which I can update weekly with new batches of images. Its for a club website so they will need to be put into weekly/monthly pages. I've looked at doing it through an automated gallery via photoshop then editing the html to fit in with the site, but this will be very tedious week in week out. Any ideas greatly received.
Cheers
Rik
- jox0
There are a lot of free scripts out there for that, I'm surprised you haven't found anything...
- ifos0
Have seen a few, wondering if anyone had any recomendations?
- dc0
i've done quite a few of these.
i'd recommend using javascript ("the web developers friend").
all you need to do is have a function that draws out your gallery, and accepts two arguments - the number of images in the gallery, and the path to the gallery.
this function is written in an external js file, and included on every page that you want a gallery to be displayed. this way, you only have to write it once!
say you have a folder called "christmas" whihc has 27 images. on your christmas.html page you call the function:
drawGallery("christmas",27)
in your external js file, you have your function which says something like:
function drawGallery(path,num){
for(i=0;i<num;i++){
document.write('');
}}
and volia, this writes out the 27 images in the folder /images/christmas/.
obviously you can change it around so that it writes it out in a table, has a link to open the image up, etc, etc. its simple, and you only need to touch it once.