How to load parts of a huge gallery photos, on visitor's action?

Faith_Akira

New Member
In a data.js file, I have the paths of my gallery photos like below.\[code\]var PMalbum = [ { src: "images/moleskineh.jpg", caption: "'moleskineh' - By Amir K (childofwar @ flickr)" }, { src: "images/888.jpg", caption: "'888' - By doug.siefken (siefken @ flickr)" }];\[/code\]I have hundreds of photos and the gallery loads too slow. I thought of just showing a x number of photos by default, and if the visitor click on a "Show more" or he is at the bottom of the page, then the script will show more photos.I had a case like this befor but with a XML file, and I solve it. The problem is how can I do it with this js file? What are my choices?
 
Back
Top