开发者

jcarousel circular carousel issue

I am using jCarousel plugin for a slideshow. It is a circular carousel which initially contains 3 images. Please find the code section below. I am posting only the HTML structure and not the actual HTML which contains the image path and classes.

HTML

<ul id="adcarousel">
    <li>
        <img src="imagepath1" alt="1" />
    </li>
    <li>
        <img sr开发者_Python百科c="imagepath2" alt="2" />
    </li>
    <li>
        <img src="imagepath3" alt="3" />
    </li>
</ul>

jQuery

jQuery('#adcarousel').jcarousel({
    auto: 1,
    wrap: 'circular',
    scroll: 1,
    animation: "fast",
    buttonNextHTML: null,
    buttonPrevHTML: null,
});

What happens is that after each transition the number of li elements get increased. Is there any way by which this can be solved?

Thanks in advance

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜