/*******************************/ /* Publisher olibu. Front-js.js */ /*******************************/ $(function() { // 추가 $('.ftop').click(function(){ $("html, body").animate({scrollTop:0}, 'slow'); return false; }); $('a.top').click(function(){ $("html, body").animate({scrollTop:0}, 'slow'); return false; }); // 스크롤 앵커이동 $('a.ps').click(function(){ $('html, body').animate({ scrollTop: $( $.attr(this, 'href') ).offset().top -90 }, 500); return false; }); // 스크롤 앵커이동 $('a.as').click(function(){ $('html, body').animate({ scrollTop: $( $.attr(this, 'href') ).offset().top -45 }, 500); return false; }); }); $(document).ready(function() { //Default Action $(".tab_content").hide(); //Hide all content $(".company_tab li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $(".company_tab li").click(function() { $(".company_tab li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".tab_content").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content return false; }); //Default Action $(".m_content").hide(); //Hide all content $(".product_tab li:first").addClass("active").show(); //Activate first tab $(".m_content:first").show(); //Show first tab content //On Click Event $(".product_tab li").click(function() { $(".product_tab li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".m_content").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content return false; }); });