$(function(){ }); $(window).load(function(){ $('.flexslider').flexslider({ animation: "slide",//fade slideshowSpeed: 3000, directionNav: false, slideToStart: 0, pauseOnHover: true, start: function(slider){ $('body').removeClass('loading'); } }); }); $(document).ready(function(){ $(".topnav").hover(function() { $(this).parent().find(".subnav").slideDown('normal').show(); $(this).parent().hover(function() { }, function(){ $(this).parent().find(".subnav").slideUp('slow'); }); }); }); // 페이지 번호 넘겨받는 함수 정의 function setPage(arg) { //navigation hn:1depth, sn:2depth, cn:3depth 를 받음 page = jQuery.extend({ hn : "", sn : "", cn : "" }, arg || {}); if(window.console) { console.log("hn : " + page.hn + "\nsn : " + page.sn + "\ncn : " + page.cn); } if(page.hn != 11) { $(".snb > ul > li.hn" + page.hn + " div").addClass("on"); //1depth 활성 } }