mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 19:29:56 +09:00
36 lines
1.2 KiB
JavaScript
36 lines
1.2 KiB
JavaScript
(function($){
|
|
$(function(){
|
|
var $shrinkHeaderHeight = 300;
|
|
var $fixedHeader = $('.fixed_header .header_wrap');
|
|
var $gnb = $('.gnb');
|
|
var $hoverEl = $('.hover');
|
|
var $searchEl = $('.click > a');
|
|
var $searchForm = $('.search_area');
|
|
// Gnb
|
|
$gnb.find('>ul>li>a')
|
|
.mouseover(function(){
|
|
$gnb.find('>ul>li>ul:visible').hide().parent('li').removeClass('on');
|
|
$(this).next('ul:hidden').stop().fadeIn(200).parent('li').addClass('on')
|
|
})
|
|
.focus(function(){
|
|
$(this).mouseover();
|
|
})
|
|
.end()
|
|
.mouseleave(function(){
|
|
$gnb.find('>ul>li>ul').hide().parent().removeClass('on')
|
|
});
|
|
|
|
$gnb.find('>ul>li>ul>li>a')
|
|
.mouseover(function(){
|
|
$gnb.find('>ul>li>ul>li>ul:visible').hide().parent('li').removeClass('on');
|
|
$(this).next('ul:hidden').stop().fadeIn(200).parent('li').addClass('on')
|
|
})
|
|
.focus(function(){
|
|
$(this).mouseover();
|
|
})
|
|
.end()
|
|
.mouseleave(function(){
|
|
$gnb.find('>ul>li>ul>li>ul').hide().parent().removeClass('on')
|
|
});
|
|
});
|
|
})(jQuery);
|