jQuery(document).ready(function(){ //rolling var rollSpeed = 5000; start(); function start(){ rollgo = setInterval(rollauto,rollSpeed); } function stop(){ clearInterval(rollgo); } function rollauto(){ $("#roll01 .btn_next").click(); $("#roll02 .btn_next").click(); $("#roll03 .btn_next").click(); } $(".roll_area ul li").hover(function() { stop(); },function(){ start(); }); //rolling var defaultidx = 2; var timeval = 5000; var speed = 800; var timer = ""; $("#touchSlider01").touchSlider({ view : 1, roll : true, page : 1, paging : $("#touchSlider01").next().find(".btn_page"), btn_prev : $("#touchSlider01").next().find(".btn_prev"), btn_next : $("#touchSlider01").next().find(".btn_next"), initComplete : function (e) { $("#touchSlider01").next().find(".btn_page").each(function (i, el) { $(this).text("¿Ã´ñºäƼ" + (i+1)); }); }, speed : 0, counter : function (e) { $("#touchSlider01").next().find(".btn_page").removeClass('on'); $("#touchSlider01").next().find(".btn_page:eq("+(e.current-1)+")").addClass('on'); } }); $("#roll01 button").click(function() { $("#touchSlider01 ul li").hide(); $("#touchSlider01 ul li").fadeIn(200); }); $("#touchSlider02").touchSlider({ view : 1, roll : true, page : 1, paging : $("#touchSlider02").next().find(".btn_page"), btn_prev : $("#touchSlider02").next().find(".btn_prev"), btn_next : $("#touchSlider02").next().find(".btn_next"), initComplete : function (e) { $("#touchSlider02").next().find(".btn_page").each(function (i, el) { $(this).text("À̺¥Æ®" + (i+1)); }); }, speed : 0, counter : function (e) { $("#touchSlider02").next().find(".btn_page").removeClass('on'); $("#touchSlider02").next().find(".btn_page:eq("+(e.current-1)+")").addClass('on'); } }); $("#roll02 button").click(function() { $("#touchSlider02 ul li").hide(); $("#touchSlider02 ul li").fadeIn(200); }); $("#touchSlider03").touchSlider({ view : 1, roll : true, page : 1, paging : $("#touchSlider03").next().find(".btn_page"), btn_prev : $("#touchSlider03").next().find(".btn_prev"), btn_next : $("#touchSlider03").next().find(".btn_next"), initComplete : function (e) { $("#touchSlider03").next().find(".btn_page").each(function (i, el) { $(this).text("±³À°½Ã¼³" + (i+1)); }); }, speed : 0, counter : function (e) { $("#touchSlider03").next().find(".btn_page").removeClass('on'); $("#touchSlider03").next().find(".btn_page:eq("+(e.current-1)+")").addClass('on'); } }); $("#roll03 button").click(function() { $("#touchSlider03 ul li").hide(); $("#touchSlider03 ul li").fadeIn(200); }); //¹Ú½º À̵¿(º®µ¹ ½×±â) $.fn.myPlugin = function(options) { var config = { itemSelector : "> article", animateSpeed : "100", effect : "linear" } if (options) $.extend(config, options); this.each(function() { var Self = $(this), Arry = Self.find(config.itemSelector), Total = Arry.length, StageWidth; /* 1´Ü max560 */ var boxPosition01 = { boxTop1 :"0",boxLeft1 :"0", boxTop2 :"220",boxLeft2 :"0", boxTop3 :"435",boxLeft3 :"0", boxTop5 :"650",boxLeft5 :"0", boxTop6 :"865",boxLeft6 :"0", boxTop4 :"1080",boxLeft4 :"0", boxTop7 :"1510",boxLeft7 :"0", boxTop8 :"1940",boxLeft8 :"0", boxTop9 :"2155",boxLeft9 :"0", boxTop13 :"2370",boxLeft13 :"0", boxTop14 :"2585",boxLeft14 :"0", boxTop12 :"2800",boxLeft12 :"0", boxTop10 :"3015",boxLeft10 :"0", boxTop11 :"3230",boxLeft11 :"0" } /* 2´Ü min560 ~ max800 */ var boxPosition02 = { boxTop1 :"0",boxLeft1 :"0", boxTop2 :"430",boxLeft2 :"0", boxTop3 :"430",boxLeft3 :"285", boxTop4 :"645",boxLeft4 :"0", boxTop5 :"645",boxLeft5 :"285", boxTop6 :"860",boxLeft6 :"285", boxTop7 :"1075",boxLeft7 :"0", boxTop8 :"1075",boxLeft8 :"285", boxTop9 :"1290",boxLeft9 :"285", boxTop10 :"1720",boxLeft10 :"285", boxTop11 :"1935",boxLeft11 :"0", boxTop12 :"1720",boxLeft12 :"0", boxTop13 :"1505",boxLeft13 :"0", boxTop14 :"1505",boxLeft14 :"285" } /* 3´Ü min1200 ~ max1700 */ var boxPosition03 = { boxTop1 :"0",boxLeft1 :"0", boxTop2 :"645",boxLeft2 :"0", boxTop3 :"645",boxLeft3 :"285", boxTop4 :"645",boxLeft4 :"570", boxTop5 :"860",boxLeft5 :"0", boxTop6 :"860",boxLeft6 :"285", boxTop7 :"1075",boxLeft7 :"0", boxTop8 :"1075",boxLeft8 :"285", boxTop9 :"1075",boxLeft9 :"570", boxTop10 :"1505",boxLeft13 :"285", boxTop11 :"1505",boxLeft14 :"570", boxTop12 :"1505",boxLeft12 :"0", boxTop13 :"1290",boxLeft10 :"285", boxTop14 :"1290",boxLeft11 :"570" } /* 4´Ü min1700 */ var boxPosition04 = { boxTop1 :"0",boxLeft1 :"0", boxTop2 :"645",boxLeft2 :"0", boxTop3 :"645",boxLeft3 :"285", boxTop4 :"645",boxLeft4 :"570", boxTop5 :"645",boxLeft5 :"855", boxTop6 :"860",boxLeft6 :"0", boxTop7 :"860",boxLeft7 :"285", boxTop8 :"860",boxLeft8 :"855", boxTop9 :"1075",boxLeft9 :"0", boxTop10 :"0",boxLeft10 :"855", boxTop11 :"215",boxLeft11 :"855", boxTop12 :"430",boxLeft12 :"855", boxTop13 :"1075",boxLeft13 :"570", boxTop14 :"1075",boxLeft14 :"855" } /* 5´Ü min1700 */ var boxPosition05 = { boxTop1 :"0",boxLeft1 :"0", boxTop2 :"0",boxLeft2 :"855", boxTop3 :"0",boxLeft3 :"1140", boxTop4 :"430",boxLeft4 :"855", boxTop5 :"215",boxLeft5 :"855", boxTop6 :"215",boxLeft6 :"1140", boxTop7 :"430",boxLeft7 :"1140", boxTop8 :"860",boxLeft8 :"0", boxTop9 :"860",boxLeft9 :"285", boxTop10 :"645",boxLeft10 :"0", boxTop11 :"645",boxLeft11 :"285", boxTop12 :"645",boxLeft12 :"570", boxTop13 :"860",boxLeft13 :"570", boxTop14 :"860",boxLeft14 :"855" } /* 6´Ü min1700 */ var boxPosition06 = { boxTop1 :"0",boxLeft1 :"0", boxTop2 :"0",boxLeft2 :"855", boxTop3 :"0",boxLeft3 :"1140", boxTop4 :"0",boxLeft4 :"1425", boxTop5 :"215",boxLeft5 :"855", boxTop6 :"215",boxLeft6 :"1140", boxTop7 :"430",boxLeft7 :"855", boxTop8 :"430",boxLeft8 :"1140", boxTop9 :"430",boxLeft9 :"1425", boxTop10 :"645",boxLeft10 :"0", boxTop11 :"645",boxLeft11 :"285", boxTop12 :"645",boxLeft12 :"570", boxTop13 :"645",boxLeft13 :"1140", boxTop14 :"645",boxLeft14 :"1425" } function ini(){ // ¼³Á¤ for (var i=0; i 600 && StageWidth < 800){ $("#contents").height('2150px'); calculate(2); }else if (StageWidth > 850 && StageWidth < 1200){ $("#contents").height('1700px'); calculate(3); }else if (StageWidth > 1230 && StageWidth < 1400){ $("#contents").height('1270px'); calculate(4); }else if (StageWidth > 1420 && StageWidth < 1700){ $("#contents").height('1080px'); calculate(5); }else if (StageWidth > 1700){ $("#contents").height('840px'); calculate(6); }else{ }; } function calculate(sw){ // °è»ê for (var i=0; i