Open bondweb opened 3 years ago
Hi there I add
$('.jcarousel').on('jcarousel:visiblein', 'li', function(event, carousel) { var caption = $(this).find("img").prop("alt"); $('.jcarousel-caption').text(caption);
in the jcarousel.basic.js to show alt text like an image caption
I also add
in the carousel html file
<h3 class="jcarousel-caption"></h3>
It's working, but jcarosel doesn't shows the first image caption after the page loading.
jcarousel shows the first image caption only after click the jcarousel-control-prev and jcarousel-control-next
There's anyone can help me to understand why?
Thanks in advance
Hi there I add
in the jcarousel.basic.js to show alt text like an image caption
I also add
in the carousel html file
<h3 class="jcarousel-caption"></h3>
It's working, but jcarosel doesn't shows the first image caption after the page loading.
jcarousel shows the first image caption only after click the jcarousel-control-prev and jcarousel-control-next
There's anyone can help me to understand why?
Thanks in advance