Creative Commons License
This work is licensed under a Creative Commons License.

Javascript Photo Gallery

Extra Features

In addition to the features show on the other pages this has some visible and not-so-visible customizations:

  • Thumbnail page navigation has the "ALL" link available.
  • Images are both landscape and portrait: using the addImg90 variant the default width and height are swapped. (Note: some images' thumbnails appear distorted because the files are actually all the same dimensions: thus forcing them into portrait versus landscape for this demonstration distorts the thumbnail grid)
  • Date field is used on some images
  • A Callback-Function uses data stored in one of the four Extra image fields. When the image changes the function sets background color of a table cell according to value in Extra1.
  • The normal Previous/Next links have been replaced with the Titles of the images: the Previous/Next links show the name of the previous/next image. This, too, is handled in the Callback-Function (same function as above).
  • The order of the arguments to addImg has been changed.
  • Default values are set and then reset while images are being added. Width, Height, and Title are "locked" for a group of phots, then changed for the next set.
  • Some images explicity choose to accept default values by passing null as a value to addImg.
  • Favorites features, a pseudo-plug-in, is enabled (see below).

Add to Favorites  |   View Next  |   Start Slideshow  |   Stop Slideshow  |   Clear Favorites List

  |     |  

click for next photo

Page:

 

Script from PizzaByTheSlice.com. Visit the Javascript tips for instructions and latest version.