【问题标题】:Scroll jcarouselLite on W在 W 上滚动 jcarouselLite
【发布时间】:2025-12-09 04:25:01
【问题描述】:

在我购买的 WordPress 主题中,有一个滑块,我需要一些帮助。目前它不滚动,它只是有一个左右箭头来向前或向后滑动两个幻灯片。我需要的主要是让滑块自动滚动。

在主题支持论坛寻求帮助后,主题开发人员告诉我,我需要在主题的 .js 文件中编辑以下行。这是我被告知需要编辑的行。

jQuery(function() {
        jQuery("#latest-wrapper .latest").jCarouselLite({       
            btnNext: ".latest-next",        
            btnPrev: ".latest-prev",
            easing: "easeInOutExpo",
            speed: 700,
            visible: 5,
            scroll: 2       
        }); 
    });

我对此很陌生,但我发现我的学习曲线非常快。如果有人有任何建议,那将不胜感激。

P.S.滑块是页面顶部的第二个,也是两个中较大的一个。

【问题讨论】:

    标签: jcarousel jcarousellite


    【解决方案1】:
    jQuery(function() {
            jQuery("#latest-wrapper .latest").jCarouselLite({       
                btnNext: ".latest-next",        
                btnPrev: ".latest-prev",
                easing: "easeInOutExpo",
                auto: 3000,
                speed: 700,
                visible: 5,
                scroll: 2       
            }); 
        });
    
     * @option auto : number - default is null, meaning autoscroll is disabled by default
     * @example
     * $(".carousel").jCarouselLite({
     *      auto: 800,
     *      speed: 500
     * });
     * @desc You can make your carousel auto-navigate itself by specfying a millisecond value in this option.
     * The value you specify is the amount of time between 2 slides. The default is null, and that disables auto scrolling.
     * Specify this value and magically your carousel will start auto scrolling.
     *
    

    【讨论】: