2012-12-21 31 views
0

在我購買的WordPress主題中有一個滑塊,我需要一些幫助。目前它不滾動,它只是左右箭頭向前或向後進行兩張幻燈片。我需要的主要是滑塊自動滾動。在W上滾動jcarouselLite

在主題的支持論壇上尋求幫助後,主題開發人員告訴我,我需要在主題的.js文件中編輯以下行。以下是我被告知需要編輯的行。

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

我對此很新,但是我發現我的學習曲線非常快。如果有人有任何建議,那真的很感激。

附:滑塊是頁面頂部的第二個和更大的兩個。

回答

0
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. 
*