Dynamic Image Gallery - Create a thumbs page.
In many cases, when we have many pictures to show, it is a good idea to save those pictures in different folders, according to the subject.
For example, you may want to save the "Trip-to-Alaska" in 2
folders, such as
When you now want to show the images, a thumbs page may come very handy: You create a page with thumbs, and each thumb represents the content of each folder. When you click on such thumb it will call the Dynamic Image Gallery and display the content of that specific folder.
There are many ways to create a thumbs page, How ever, if you have many folders and you intent to have many thumbs on your page, you are facing a hard work task that takes long time.
The good news is that the Dynamic Image Gallery is offering you a little trick to create thumbs pages with many thumbs in a fairly short amount of time and little effort.
The assumption is that you are using Font Page or similar program.
Lets say that you need to display the content of 12 subfolders with the Dynamic Image Gallery.
To do so, you want to create 1 thumbs page with 12 thumbs on it, each represent the content of each folder.
Follow the steps below:
How it works:
The Cursor of the image is set to "hand" so when mouse move over it it looks like a link.
The onClick event of the image calls the openGallery() function and pass the image's object to it.
The openGallery function open the Dynamic Image Gallery and pass to it the source of the image, that is full path and the image name.
The Dynamic Image Gallery detect that entire location of an image was passed to it, and extract the folder location out of it.
It then go to the folder, figure out which files are saved there, and create the Dynamic Image Gallery accordingly.