관리자: 리디자인 8, gnb 작업 중 및 사용자: 본문 바로가기 스타일
This commit is contained in:
@ -28,7 +28,9 @@ $(function(){
|
||||
var $gnb = $('.gnb_1depth > a');
|
||||
$gnb.mouseover(function() {
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_over');
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_on');
|
||||
$(this).parent().addClass('gnb_1depth_over');
|
||||
$(this).parent().addClass('gnb_1depth_on');
|
||||
hide_menu = false;
|
||||
});
|
||||
|
||||
@ -43,6 +45,8 @@ $(function(){
|
||||
$gnb.focusin(function() {
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_over');
|
||||
$(this).parent().addClass('gnb_1depth_over');
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_on');
|
||||
$(this).parent().addClass('gnb_1depth_on');
|
||||
hide_menu = false;
|
||||
});
|
||||
|
||||
@ -61,12 +65,14 @@ $(function(){
|
||||
$(document).click(function() {
|
||||
if(hide_menu) {
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_over');
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_on');
|
||||
}
|
||||
});
|
||||
|
||||
$(document).focusin(function() {
|
||||
if(hide_menu) {
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_over');
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -75,6 +81,7 @@ function hide_menu_layer()
|
||||
{
|
||||
if(hide_menu) {
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_over');
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_on');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user