자동 재생이요~
본문
협력사 배너 만들고 있는데요
배너가 다 보여지면 정지 되는데 다시 처음으로 돌아가서 슬라이드 될려면 무얼 수정하면 되나요?
function ex_slideCheck(_i) {
slideCur = _i;
$('.pr_tab').find('> li').eq(_i).addClass('active').siblings().removeClass('active');
$('.pr_slide_wrap').find('> div').eq(_i).show().siblings().hide();
ex_slidePageCheck(_i);
}
function ex_slidePageCheck(_i) {
var SW = $(window).width();
var slideNum = 5;
var slideMargin = 30
if (SW <= 1920) slideNum = 5;
if (SW <= 1366) slideNum = 5;
if (SW <= 900) slideNum = 3;
if (SW <= 620) slideNum = 1;
if (slideNum > 6) slideMargin = 100;
var _PH = $('.pr_slide_wrap').innerWidth() / slideNum;
var _setting = {
auto: true,
autoDelay: 3000,
autoHover: true,
slideWidth: _PH,
minSlides: slideNum,
maxSlides: slideNum,
moveSlides: 1,
slideMargin: slideMargin,
pager: false,
prevText: '<img src="/theme/homepage/images/main/btn_slide_prev.png" alt="" width="20" />',
nextText: '<img src="/theme/homepage/images/main/btn_slide_next.png" alt="" width="20" />',
infiniteLoop: false,
hideControlOnEnd: true,
touchEnabled : (navigator.maxTouchPoints > 0)
}
if (!mulitySlideFlag) {
m_slide00 = $('#pr_slide00').bxSlider(_setting);
m_slide01 = $('#pr_slide01').bxSlider(_setting);
m_slide02 = $('#pr_slide02').bxSlider(_setting);
} else {
m_slide00.reloadSlider(_setting);
m_slide01.reloadSlider(_setting);
m_slide02.reloadSlider(_setting);
}
}