1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
<?php if (!defined('_GNUBOARD_')) exit; ?>
<noscript> <p> 귀하께서 사용하시는 브라우저는 현재 <strong>자바스크립트를 사용하지 않음</strong>으로 설정되어 있습니다.<br> <strong>자바스크립트를 사용하지 않음</strong>으로 설정하신 경우는 수정이나 삭제시 별도의 경고창이 나오지 않으므로 이점 주의하시기 바랍니다. </p> </noscript>
</div> </div>
<footer id="ft"> <p> Copyright © <?php echo $_SERVER['HTTP_HOST']; ?>. All rights reserved.<br> <a href="#">상단으로</a> </p> </footer>
<!-- <p>실행시간 : <?php echo get_microtime() - $begin_time; ?> -->
<script src="<?php echo G5_ADMIN_URL ?>/admin.js"></script> <script> $(function(){ var hide_menu = false; var mouse_event = false; var oldX = oldY = 0;
$(document).mousemove(function(e) { if(oldX == 0) { oldX = e.pageX; oldY = e.pageY; }
if(oldX != e.pageX || oldY != e.pageY) { mouse_event = true; } });
// 주메뉴 var $gnb = $(".gnb_1dli > a"); $gnb.mouseover(function() { if(mouse_event) { $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); $(this).parent().addClass("gnb_1dli_over gnb_1dli_on"); menu_rearrange($(this).parent()); hide_menu = false; } });
$gnb.mouseout(function() { hide_menu = true; });
$(".gnb_2dli").mouseover(function() { hide_menu = false; });
$(".gnb_2dli").mouseout(function() { hide_menu = true; });
$gnb.focusin(function() { $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); $(this).parent().addClass("gnb_1dli_over gnb_1dli_on"); menu_rearrange($(this).parent()); hide_menu = false; });
$gnb.focusout(function() { hide_menu = true; });
$(".gnb_2da").focusin(function() { $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); var $gnb_li = $(this).closest(".gnb_1dli").addClass("gnb_1dli_over gnb_1dli_on"); menu_rearrange($(this).closest(".gnb_1dli")); hide_menu = false; });
$(".gnb_2da").focusout(function() { hide_menu = true; });
$('#gnb_1dul>li').bind('mouseleave',function(){ submenu_hide(); });
$(document).bind('click focusin',function(){ if(hide_menu) { submenu_hide(); } });
// 폰트 리사이즈 쿠키있으면 실행 var font_resize_act = get_cookie("ck_font_resize_act"); if(font_resize_act != "") { font_resize("container", font_resize_act); } });
function submenu_hide() { $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); }
function menu_rearrange(el) { var width = $("#gnb_1dul").width(); var left = w1 = w2 = 0; var idx = $(".gnb_1dli").index(el);
for(i=0; i<=idx; i++) { w1 = $(".gnb_1dli:eq("+i+")").outerWidth(); w2 = $(".gnb_2dli > a:eq("+i+")").outerWidth(true);
if((left + w2) > width) { el.removeClass("gnb_1dli_over").addClass("gnb_1dli_over2"); }
left += w1; } }
</script>
<?php include_once(G5_PATH.'/tail.sub.php'); ?>
|