관리자: 리디자인 7, gnb 작업 중
This commit is contained in:
@ -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>"
|
||||
?>
|
||||
|
||||
@ -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');
|
||||
?>
|
||||
Reference in New Issue
Block a user