I've got the carousel (I think it made of bootstrap) which I derived from the template from themeforest. It works well until I want to make it autoplay. I tried set interval:1000
but it still not work. Here is the script:
function InitPropertyCarousel() {
if ($('.carousel.property .content li img').length !== 0) {
$('.carousel.property .content li img').on({
click: function(e) {
var src = $(this).attr('src');
var img = $(this).closest('.carousel.property').find('.preview img');
img.attr('src', src);
$('.carousel.property .content li').each(function() {
$(this).removeClass('active');
});
$(this).closest('li').addClass('active');
}
});
}
}
This is the example link : http://preview.byaviators.com/template/realia/detail.html. (I tried put this code on jsfiddle but it's not working.)