Loading 10 images at a time via an XML using Jquery [closed]

sheron

New Member
i am using jquery to load images into a gallery on a website i am currently working on.I would like to load 10 images at a time and include a button that clears the innerhtml and loads the next 10.I am kinda still new to jquery so attempting to write the code so far i have this: \[code\]$.get('Gallery.xml', function (fill) { var i = 1 $(fill).find('picture').each(function () { var $picture = $(this); var alt = $picture.find('alt').text(); var imageurl = $picture.attr('imageurl'); var html = '<div id="box' + i + '" class="box">' + ' <img src='http://stackoverflow.com/questions/10932444/+ imageurl +' alt =' + alt + ' />' + ' </div>'; i += 1 $('div#Gallery_img').append($(html)); });\[/code\]///Edit Never mind should have looked harder has been addressed here Paginated jQuery results from XML file
 
Back
Top