Closed Doca closed 11 years ago
sorry for not responding quickly...i meant initialize the slideshow with slides passed from javascript like an array of image information or so
Hi Doca!
Try this (demo):
$('#slider').anythingSlider();
var t = '',
images = [
"http://placehold.it/300x200",
"http://placebear.com/300/200",
"http://lorempixel.com/300/200",
"http://placedog.com/300/200"
];
$.each(images, function(i){
t += '<li><img src="' + images[i] + '" /></li>';
});
$('#slider')
.append(t)
.anythingSlider(); // update slider
nice one!
Hi Doca!
Do you mean without using jQuery, or do you mean add slides after the slider has initialized?