2012-12-21 3 views
0

내가 구입 한 WordPress 테마에는 도움이 필요한 슬라이더가 있습니다. 현재 스크롤하지 않고 두 슬라이드를 앞으로 또는 뒤로 진행하기위한 왼쪽 및 오른쪽 화살표가 있습니다. 필요한 것은 슬라이더가 자동으로 스크롤하는 것입니다.스크롤 jcarouselLite on W

테마 지원 포럼에서 도움을 요청한 후 테마 개발자는 테마 .js 파일에서 다음 줄을 편집해야한다고 말했습니다. 여기 내가 편집해야 할 필요가 있다고 말한 선들이 있습니다.

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

나는 이것에 상당히 익숙하지 만, 나는 이것에 대한 나의 학습 곡선이 엄청나게 빠름을 발견했다. 누구든지 제안이 있다면, 정말 감사 할 것입니다.

P. 슬라이더는 두 번째 페이지의 맨 위에있는 두 번째 페이지입니다.

답변

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