Skip to content Skip to sidebar Skip to footer

How To Collect All The Images From A Folder

In this fiddle when you click on next then new images are loaded.But the new images are loaded from internet. In my app all the images are located in img/image folder and the image

Solution 1:

Here an example that can help you, it's not optimal but works http://jsfiddle.net/PrVRq/ :

$('.images').on('loaded', function () {// load an image}

try to load the next image

img.load(function () {    
    $('.images').append(img);
    $('.images').trigger('loaded');
});

if the image is loaded trigger the loaded event to load another one.

Post a Comment for "How To Collect All The Images From A Folder"