// ¸ÞÀν½¶óÀ̵å
$(document).ready(function(){
$('.big_slide').owlCarousel({
items:1,
animateOut:'fadeOut',
animateIn:'fadeIn',
loop:true,
margin:0,
smartSpeed: 2000, // ½½¶óÀÌµå ¾Ö´Ï¸ÞÀÌ¼Ç ¼Óµµ (1000s = 1ÃÊ)
nav: false, // È»ìÇ¥ ÄÁÆ®·Ñ »ç¿ë
autoplay: true, // ÀÚµ¿Àç»ý
autoplayTimeout: 5000, // ÀÚµ¿Àç»ý °£°Ý (1000s = 1ÃÊ)
autoplayHoverPause: false, // ¸¶¿ì½º ¿À¹ö½Ã ÀÚµ¿Àç»ý ¸ØÃã
navText:['', '']
});
});
// ¸ÞÀÎ ¹Ì´Ï ·Ñ¸µ ½½¶óÀ̵å
$(document).ready(function(){
$('.mini_rolling').owlCarousel({
items:4,
loop:true,
margin:0,
smartSpeed: 2000, // ½½¶óÀÌµå ¾Ö´Ï¸ÞÀÌ¼Ç ¼Óµµ (1000s = 1ÃÊ)
nav: true, // È»ìÇ¥ ÄÁÆ®·Ñ »ç¿ë
autoplay: true, // ÀÚµ¿Àç»ý
autoplayTimeout: 5000, // ÀÚµ¿Àç»ý °£°Ý (1000s = 1ÃÊ)
autoplayHoverPause: true, // ¸¶¿ì½º ¿À¹ö½Ã ÀÚµ¿Àç»ý ¸ØÃã
navText:['', ''],
responsive: {
0:{
items:2
},
480:{
items:2
},
768:{
items:3
},
1024:{
items:4
},
1280:{
items:4
}
}
});
});
// ¼ºñ½º ½ºÅ©¸³Æ® ¿É¼Ç ÀÔ´Ï´Ù.
// ÇöÀç ÃÖ´ë À̹ÌÁö ¼ö°¡ 3À̸ç, ½½¶óÀ̵带 Ãß°¡ÇÏ°í ½ÍÀ» ¶§¿£
// ¾Æ·¡ ¿É¼ÇÁß maxSlides:3 ÀÇ °ªÀ» Ãß°¡ÇϽа¹¼ö·Î º¯°æÇØÁÖ¼¼¿ä.
$(document).ready(function() {
$('.slider').bxSlider({
// ¿É¼Ç ¼³Á¤
mode: 'horizontal', // °ÇµéÁö ¸»°Í
infiniteLoop: true, // ¹«Çѽ½¶óÀÌµå ¿É¼Ç
auto: true, // ÀÚµ¿ ¿É¼Ç
pause: 6000, // ½½¶óÀ̵尡 ¸ØÃß¾î ÀÖ´Â ½Ã°£ (6000 = 6ÃÊ)
pager: true, // ÀÌÀü, ´ÙÀ½ ¹öư »ç¿ë ¿©ºÎ
touchEnabled: true, // ½º¸¶Æ®Æù¿¡¼ ÅÍÄ¡·Î ³Ñ±æ¼ö ÀÖ´ÂÁö ¿©ºÎ
useCSS: true, // CSS »ç¿ë ¿©ºÎ
tickerHover: true, // ¸¶¿ì½º¸¦ ¿Ã·ÈÀ» ¶§ À̹ÌÁö°¡ ¸ØÃß´ÂÁö ¿©ºÎ
minSlides: 1, // ½½¶óÀ̵å À̹ÌÁö ÃÖ¼Ò°ª 1°íÁ¤
maxSlides: 3, // ½½¶óÀ̵å À̹ÌÁö ÃÖ´ë°ª liÀÇ °³¼öÀÇ µû¶ó º¯°æ
slideWidth: 0, // ½½¶óÀ̵åÀÇ width°ª : 0ÀÏ °æ¿ì ÀÚµ¿ Á¶Á¤
});
});
// ¼½¼Ç2 ½½¶óÀ̵å - ¿À¸¥ÂÊ À̹ÌÁö
$(window).load(function() {
var idx = 0;
var slideWrap = $("#mid_slide1");
var slideWidth = slideWrap.children().width();
var slideCount = slideWrap.children().length;
var prev = $("a.prev");
var next = $("a.next");
var duration = 300000;
var slidebody = function() {
slideWrap.stop(true, false).animate({
"left": -slideWidth * idx
}, 500, 'easeOutCubic');
}
prev.click(function() {
if (idx <= 0) {
idx = slideCount - 1;
} else {
idx--;
}
slidebody();
});
next.click(function() {
if (idx >= slideCount - 1) {
idx = 0;
} else {
idx++;
}
slidebody();
});
var autoSlide = setInterval(function() {
if (idx >= slideCount - 1) {
idx = 0;
} else {
idx++;
}
slidebody();
}, duration);
});
// ¼½¼Ç2 ½½¶óÀ̵å - ¿ÞÂÊ ÅØ½ºÆ®
$(window).load(function() {
var idx = 0;
var slideWrap2 = $("#mid_slide2-");
var slideWidth2 = slideWrap2.children().width();
var slideCount2 = slideWrap2.children().length;
var prev = $("a.prev");
var next = $("a.next");
var duration = 300000;
var slidebody2 = function() {
slideWrap2.stop(true, false).animate({
"left": -slideWidth2 * idx
}, 500, 'easeOutCubic');
}
prev.click(function() {
if (idx <= 0) {
idx = slideCount2 - 1;
} else {
idx--;
}
slidebody2();
});
next.click(function() {
if (idx >= slideCount2 - 1) {
idx = 0;
} else {
idx++;
}
slidebody2();
});
var autoSlide2 = setInterval(function() {
if (idx >= slideCount2 - 1) {
idx = 0;
} else {
idx++;
}
slidebody2();
}, duration);
});