我只是喜欢 jcarousel 脚本,我正在尝试将它集成到我的网站 www.careylist.com 中。
对于我的生活,我根本无法让它正常工作。一方面,我需要能够调整脚本的宽度和高度,但是每次我尝试通过在线自助来做到这一点时,它都会失败。此时,所有图像都被列为无序列表,如下所示。

这是使用的脚本:
<script type="text/javascript">
function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });
    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });
    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};
/**
 * Overwrite for having a carousel with dynamic width.
 */
.jcarousel-skin-tango .jcarousel-container-horizontal {
    width: 85%;
}
.jcarousel-skin-tango .jcarousel-clip-horizontal {
    width: 100%;
    height:300px;
}
jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto: 2800,
    visible:5,
    circular: true,
    speed: 1100,
    scroll: +1,
    vertical: false,
    circular: true,
        initCallback: mycarousel_initCallback
    });
});
</script>
如果我删除上面脚本中处理宽度和高度的部分,它可以工作,但它具有默认宽度和高度。
我究竟做错了什么?