AJAX Photo Album

Use this script to create a simple photo album in your site. This photo album uses technologies like AJAX, XML, Javascript. It stores the names of the photos neatly in an external XML file and it can be easily customized. Take a look at this preview and see how I use it on my photos page to get a visual idea about how it works.

Features

Instructions - How to use it

AJAX Photo Album preview
  1. Download the zip package (370kB) and extract it to a desired folder. This contains the html and script files as well as some sample configuration and images to get you started.
  2. By opening the file photos.html the photo albums are displayed. The user can navigate between the albums by pressing the Next and Prev buttons. By clicking on a photo, the album is in photo mode and the navigation is now between the photos of the album. There is also the option for slideshow.
  3. Add the photos you want to display in the directory photos*. A recommended photo size would be length 500px. The photos should have the extension .jpg.
  4. Add the thumbnails of the photos to the directory thumbnails*. A recommended thumbnail size would be length 120px. The thumbnails should have the same name as the photo and have the prefix th_*. For example for a photo named me.jpg, the thumbnail should be th_me.jpg.
  5. Edit the photos-sample.xml* file by grouping your photos in albums and specifying a description for every album and every photo. Use the name attribute for the photo to specify the photo's file name (without the .jpg extension).

* These are configurable in the photos-sample-config.js file.

Labels:

posted by Rigas Parathyras @ Wednesday, June 06, 2007   Home   0 comments


0 Comments:

Post a Comment