묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
<!--@if($layout_info->menu2 == "no")-->
<!--GNB-->
<ul id="gnb">
<!-- main_menu 1차 시작 -->
<!--@foreach($main_menu->list as $key => $val)--><!--@if($val['link'])-->
<!--@if($val['selected'])-->
{@ $menu_1st = $val }
<!--@end-->
<li <!--@if($val['selected'])-->class="on"<!--@end-->><a href="{$val['href']}" <!--@if($val['+ '+ 'open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val['link']}</a></li>
<!--@end--><!--@end-->
<!-- main_menu 1차 끝 -->
</ul>
<!--//GNB-->
<!--@else-->
<style type="text/css">
a { color:#000000; text-decoration:none;}
a:hover,
a:focus { color:#F45542;}
.on a { color:#000000;}
.subMenu { margin:0; padding:0; position:absolute; left:8px; top:{$layout_info->submenu_top}px; background-color:#C1951A;width:700px;height:23px;}}
#lnb1 { margin:0; padding:0; text-decoration:none;color:#000000; padding-left: 10px; line-height:2em; position:relative;white-space:nowrap; }}
#lnb1:hover,focus { color:#F45542;}}
#lnb1.on { font-weight:bold; color:#F45542;}}
</style>
<!--GNB-->
<ul id="gnb">
<!-- main_menu 1차 시작 -->
{@ $idx = 1 }
<!--@foreach($main_menu->list as $key => $val)--><!--@if($val['link'])-->
<!--@if($val['selected'])-->
{@ $menu_1st = $val }
<!--@end-->
<li onMouseOver="menu({$idx});" <!--@if($val['selected'])-->class="on"<!--@end-->><a href="{$val['href']}" <!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val['link']}</a></li>
<!--@end-->
{@$idx++}
<!--@end-->
<!-- main_menu 1차 끝 -->
</ul>
<script language="javascript1.2">
var menuLen={$idx-1};
</script>
<!--히든 레이어 메뉴-->
<!-- main_menu 1차 시작 -->
{@ $idx = 1 }
<!--@foreach($main_menu->list as $key => $val)--><!--@if($val['link'])-->
<!--2차메뉴-->
<div class="subMenu" id="subMenu_{$idx}" style="<!--@if($val['selected'])-->display:block;<!--@else-->display:none;<!--@end-->">
<!--@foreach($val['list'] as $key1 => $val1)--><!--@if($val1['text'])-->
<!--@if($val1['selected'])--><!--@end-->
<a id="lnb1" href="{$val1['href']}" <!--@if($val1['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val1['text']}</a>
<!--@end-->
<!--@end-->
</div>
<!--@end-->
{@$idx++}
<!--@end-->
<!-- main_menu 1차 끝 -->
<!--//GNB-->
<!--@end-->
2차 메뉴질문입니다.
2009.10.11 17:26
1. 하단메뉴가 상단메뉴 바로 밑에 보이도록 하려면 무엇을 고쳐야 하나요?(커뮤니티 바로 밑에 관련 메뉴가 보이도록)
2. 그리고 마우스 지나가면 하위메뉴가 보이지 않도록 할 수도 있나요?
관련된 편집문은
<!-- 홈페이지 상단 2차 메뉴 사용여부 --><!--@if($layout_info->menu2 == "no")-->
<!--GNB-->
<ul id="gnb">
<!-- main_menu 1차 시작 -->
<!--@foreach($main_menu->list as $key => $val)--><!--@if($val['link'])-->
<!--@if($val['selected'])-->
{@ $menu_1st = $val }
<!--@end-->
<li <!--@if($val['selected'])-->class="on"<!--@end-->><a href="{$val['href']}" <!--@if($val['+ '+ 'open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val['link']}</a></li>
<!--@end--><!--@end-->
<!-- main_menu 1차 끝 -->
</ul>
<!--//GNB-->
<!--@else-->
<style type="text/css">
a { color:#000000; text-decoration:none;}
a:hover,
a:focus { color:#F45542;}
.on a { color:#000000;}
.subMenu { margin:0; padding:0; position:absolute; left:8px; top:{$layout_info->submenu_top}px; background-color:#C1951A;width:700px;height:23px;}}
#lnb1 { margin:0; padding:0; text-decoration:none;color:#000000; padding-left: 10px; line-height:2em; position:relative;white-space:nowrap; }}
#lnb1:hover,focus { color:#F45542;}}
#lnb1.on { font-weight:bold; color:#F45542;}}
</style>
<!--GNB-->
<ul id="gnb">
<!-- main_menu 1차 시작 -->
{@ $idx = 1 }
<!--@foreach($main_menu->list as $key => $val)--><!--@if($val['link'])-->
<!--@if($val['selected'])-->
{@ $menu_1st = $val }
<!--@end-->
<li onMouseOver="menu({$idx});" <!--@if($val['selected'])-->class="on"<!--@end-->><a href="{$val['href']}" <!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val['link']}</a></li>
<!--@end-->
{@$idx++}
<!--@end-->
<!-- main_menu 1차 끝 -->
</ul>
<script language="javascript1.2">
var menuLen={$idx-1};
</script>
<!--히든 레이어 메뉴-->
<!-- main_menu 1차 시작 -->
{@ $idx = 1 }
<!--@foreach($main_menu->list as $key => $val)--><!--@if($val['link'])-->
<!--2차메뉴-->
<div class="subMenu" id="subMenu_{$idx}" style="<!--@if($val['selected'])-->display:block;<!--@else-->display:none;<!--@end-->">
<!--@foreach($val['list'] as $key1 => $val1)--><!--@if($val1['text'])-->
<!--@if($val1['selected'])--><!--@end-->
<a id="lnb1" href="{$val1['href']}" <!--@if($val1['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val1['text']}</a>
<!--@end-->
<!--@end-->
</div>
<!--@end-->
{@$idx++}
<!--@end-->
<!-- main_menu 1차 끝 -->
<!--//GNB-->
<!--@end-->