/* GNB ¼­ºê¸Þ´º */ $(function() { $("#gnb>li").mouseenter(function(event){ $(this).children("a").css("color", "#00b4dc"); $(this).find("div").parent().children("a").css("color", "#00b4dc"); $(this).find("div").parent().children(".depth2").css("padding", "30px 0"); $(this).find("div").slideDown("fast"); }).mouseleave(function() { $(this).children("a").css("color", "#1a1a1a"); $(this).find("div:visible").slideUp(50, function(){ $(this).parent().children("a").css("color", "#1a1a1a"); }); }); }); /* ¸ÞÀÎ ºñÁÖ¾ó ½º¿ÍÀÌÆÛ */ var swiper = new Swiper('.swiper-container.swiperVisual', { spaceBetween: 30, centeredSlides: true, pagination: { el: '.swiper-pagination', clickable: true, }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); /* $(function(){ var $subMenu = $('nav>ul>li'), $depth1 = $('nav'); $depth2 = $('nav>ul>li>.depth2'); $subMenu.mouseover(function(){ $depth1.stop().animate({padding:'300px 0 0 0'},300); $depth2.stop().animate({height:'300px'},500); }) .mouseout(function (){ $depth1.stop().animate({padding:'0'},300); $depth2.stop().animate({height:'0'},500); }); }); */ /*¼­ºêÅǸ޴º*/ $(function(){ tabMenu('#tabMenu',0); }); function tabMenu(e,num){ var num = num || 0; var menu = $(e).children(); var con = $(e+'_con').children(); var select = $(menu).eq(num); var i = num; select.addClass('on'); con.eq(num).show(); menu.click(function(){ if(select!==null){ select.removeClass("on"); con.eq(i).hide(); } select = $(this); i = $(this).index(); select.addClass('on'); con.eq(i).show(); }); }