관리자: 리디자인 7, gnb 작업 중

This commit is contained in:
whitedot
2013-02-14 11:41:23 +09:00
parent bec1101784
commit 6a55556183
3 changed files with 37 additions and 8 deletions

View File

@ -97,14 +97,14 @@ function textarea_size(fld, size)
} else {
continue;
}
//$current_class = "";
//if (isset($sub_menu) && (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2)))
// $current_class = " gnb_1depth_on";
$current_class = "";
if (isset($sub_menu) && (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2)))
$current_class = " gnb_1depth_on";
$gnb_str .= "<li class=\"gnb_1depth".$current_class."\">";
$gnb_str .= $href1 . $menu['menu'.$key][0][1] . $href2;
$gnb_str .= print_menu1('menu'.$key, 1);
$gnb_str .= "</li>";
//if ($current_class || !$admin_index) $current_class = ""; // 클래스 반복부여 방지
if ($current_class || !$admin_index) $current_class = ""; // 클래스 반복부여 방지
}
$gnb_str .= "</ul>"
?>

View File

@ -20,6 +20,31 @@ if (!defined('_GNUBOARD_')) exit;
<script src="<?=G4_ADMIN_URL?>/admin.js"></script>
<script>
$(function(){
// 주메뉴
var $gnb = $('.gnb_1depth a');
$gnb.hover(
function() {
$(this).parent().toggleClass('gnb_1depth_over');
},
function() {
$(this).parent().toggleClass('gnb_1depth_over');
}
);
$gnb.focus(
function() {
$(this).parent().toggleClass('gnb_1depth_over');
}
);
$gnb.focusout(
function() {
$(this).parent().toggleClass('gnb_1depth_over');
}
);
});
</script>
<?
include_once(G4_PATH.'/tail.sub.php');
?>