Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -22,13 +22,16 @@ if (!defined('_GNUBOARD_')) exit;
|
||||
<script>
|
||||
$(function(){
|
||||
var hide_menu = false;
|
||||
var mouse_move = false;
|
||||
|
||||
// 주메뉴
|
||||
var $gnb = $('.gnb_1depth > a');
|
||||
$gnb.mouseover(function() {
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_over gnb_1depth_on');
|
||||
$(this).parent().addClass('gnb_1depth_over gnb_1depth_on');
|
||||
hide_menu = false;
|
||||
if(mouse_move) {
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_over gnb_1depth_on');
|
||||
$(this).parent().addClass('gnb_1depth_over gnb_1depth_on');
|
||||
hide_menu = false;
|
||||
}
|
||||
});
|
||||
|
||||
$gnb.mouseout(function() {
|
||||
@ -43,6 +46,10 @@ $(function(){
|
||||
hide_menu = true;
|
||||
});
|
||||
|
||||
$(document).mousemove(function(e) {
|
||||
mouse_move = true;
|
||||
});
|
||||
|
||||
$gnb.focusin(function() {
|
||||
$('.gnb_1depth').removeClass('gnb_1depth_over gnb_1depth_on');
|
||||
$(this).parent().addClass('gnb_1depth_over gnb_1depth_on');
|
||||
|
||||
Reference in New Issue
Block a user