묻고답하기
메인메뉴마우스가져가면2차메뉴나오는방법
2008.10.17 23:14
<!-- js 파일 import -->
<!--%import("js/xe_official.js")-->
<!-- 레이아웃과 연동될 css 파일 import -->
<!--@if($layout_info->colorset == "default")-->
<!--%import("css/default.css")-->
<!--@else-->
<!--%import("css/default.css")-->
<!--@end-->
<!--@if($layout_info->background_image)-->
<style type="text/css">
body {
background: <!--@if(!$layout_info->background_color)-->#ffffff<!--@else-->{$layout_info->background_color}<!--@end-->
url({getUrl()}{$layout_info->background_image}) {$layout_info->background_image_repeat} left top; }
</style>
<!--@end-->
<!--@if(!$layout_info->colorset)-->
{@$layout_info->colorset = "default"}
<!--@end-->
<div id="bodyWrap" style="margin:{$layout_info->layout_align}">
<div id="header">
<div class="logo"><a href="{$layout_info->index_url}" onfocus="this.blur();"><!--@if(!$layout_info->logo_image)--><img src="./images/{$layout_info->colorset}/zeroBoardXE.png" alt="ZeroBoard™ XE" class="iePngFix" /><!--@else--><img src="{$layout_info->logo_image}" alt="logo" border="0" class="iePngFix" /><!--@end--></a></div>
<div id="language">
<strong title="{$lang_type}">{$lang_supported[$lang_type]}</strong> <a href="#selectLang" onclick="showHide('+
'+
'selectLang');return false;"><img src="./images/{$layout_info->colorset}/buttonLang.gif" alt="Select Language" width="87" height="15" /></a>
<ul id="selectLang">
<!--@foreach($lang_supported as $key => $val)--><!--@if($key!= $lang_type)-->
<li><a href="#" onclick="doChangeLangType('{$key}');return false;">{$val}</a></li>
<!--@end--><!--@end-->
</ul>
</div>
<!--GNB-->
<ul id="gnb">
<!-- main_menu 1차 시작 -->
{@$menu_cnt=0}
<!--@foreach($main_menu->list as $key => $val)-->
<!--@if($val['menu_btn'] || $val['active_btn'] || $val['hover_btn'])-->
<!--이미지 메뉴일때-->
<!--@if($val['link'])-->
<!--@if($val['selected'])-->
{@ $menu_1st = $val }
<!--@end-->
<!--@if($menu_cnt < $layout_info->top_menu_count)-->
<li <!--@if($val['selected'])-->class="on"<!--@end-->>
<span class="img_btn">
<a href="{$val['href']}"
<!--@if($val['open_window']=='Y')-->
onclick="window.open(this.href);return false;"
<!--@end-->
onfocus="this.blur();"
>
<!--@if($val['selected'])--><img src='{$val['active_btn']}' border='0'><!--@else-->{$val['link']}<!--@end-->
</a>
</span>
</li><li id='gnb_middle'+
' style='padding:0px {$layout_info->menu_padding} 0px {$layout_info->menu_padding};'><img src='./images/{$layout_info->colorset}/bgGnbMiddle.gif'></li>
<!--@end-->
<!--@end-->
<!--@else-->
<!--텍스트 메뉴일때-->
<!--@if($val['link'])-->
<!--@if($val['+
'selected'])-->
{@ $menu_1st = $val }
<!--@end-->
<!--@if($menu_cnt < $layout_info->top_menu_count)-->
<!--@if($val['selected'])--><li><img src='./images/{$layout_info->colorset}/bgGnbOn_left.png' alt='right' /></li><!--@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--> onfocus="this.blur();">{$val['link']}</a></li>
<!--@if($val['selected'])--><li><img src='./images/{$layout_info->colorset}/bgGnbOn_right.png' alt='right' /></li><!--@end-->
<li id='gnb_middle' style='padding:0px {$layout_info->menu_padding} 0px {$layout_info->menu_padding};'><img src='./images/{$layout_info->colorset}/bgGnbMiddle.gif'></li>
<!--@end-->
<!--@end-->
<!--@end-->
{@$menu_cnt++}
<!--@end-->
<!-- main_menu 1차 끝 -->
</ul>
<!--//GNB-->
<!--top_index-->
<div id="top_index">
<!--@if($logged_info->is_admin=="Y")--><a href={$layout_info->index_url}/admin><img src="images/{$layout_info->colorset}/btn_admin.gif" border="0" align="absmiddle"></a><!--@end-->
<!--@if($logged_info)-->
<!--@if(!$logged_info->is_admin=="Y")-->
<a href="{$layout_info->index_url}/?&act=dispMemberMessages&member_srl=4"><img src="images/{$layout_info->colorset}/btn_mbox.gif" border="0" align="absmiddle"></a>
<!--@end-->
<a href="{$layout_info->index_url}/?act=dispMemberLogout&member_srl="><img src="images/{$layout_info->colorset}/btn_logout.gif" border="0" align="absmiddle"></a>
<!--@else-->
<a href="{$layout_info->index_url}/?act=dispMemberLoginForm"><img src="images/{$layout_info->colorset}/btn_login.gif" border="0" align="absmiddle"></a>
<!--@end-->
<!--@if(!$logged_info)-->
<a href="{$layout_info->index_url}/?act=dispMemberSignUpForm&member_srl=" onfocus="this.blur();"><img src="images/{$layout_info->colorset}/btn_join.gif" border="0" align="absmiddle"></a>
<!--@end-->
<a href="{$layout_info->index_url}/sitemap" onfocus="this.blur()"><img src="images/{$layout_info->colorset}/btn_sitemap.gif" border="0" align="absmiddle"></a>
</div>
<div id="gnb_sub">
홈페이지에오신걸환영합니다
</div>
<div id="Search_icon">
<img src='./images/{$layout_info->colorset}/searchtitle.gif'>
</div>
<form action="{getUrl()}" method="post" id="isSearch">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="act" value="IS" />
<input name="search_target" type="radio" value="title" id="search_target" class="searchOrder" checked="checked" title="search option" />
<label for="search_target" class="checked" id="search_target_label" onclick="showHide('selectOrder'+
'); return false">{$lang->title}</label>
<ul id="selectOrder">
<li>
<input type="radio" name="search_target" value="title" id="search_target1" />
<label for="search_target1" onclick="chkIsKind(1, '{$lang->title}'); return false;" onmouseover="this.className='on'" onmouseout="this.style.background='none'">{$lang->title}</label>
</li>
<li>
<input type="radio" name="search_target" value="content" id="search_target2" />
<label for="search_target2" onclick="chkIsKind(2, '{$lang->content}'); return false;" onmouseover="this.className='+
'on'" onmouseout="this.style.background='none'">{$lang->content}</label>
</li>
<li>
<input type="radio" name="search_target" value="title_content" id="search_target3" />
<label for="search_target3" onclick="chkIsKind(3, '{$lang->title}+{$lang->content}'); return false;" onmouseover="this.className='on'" onmouseout="this.style.background='none'">{$lang->title}+{$lang->content}</label>
</li>
<li>
<input type="radio" name="search_target" value="comment" id="search_target4" />
<label for="search_target4" onclick="chkIsKind(4, '{$lang->comment}'); return false;" onmouseover="this.className='on'" onmouseout="this.style.background='none'">{$lang->comment}</label>
</li>
<li>
<input type="radio" name="search_target" value="tag" id="search_target5" />
<label for="search_target5" onclick="chkIsKind(5, '{$lang->tag}'); return false;" onmouseover="this.className='on'" onmouseout="this.style.background='none'">{$lang->tag}</label>
</li>
</ul>
<input name="is_keyword" type="text" class="inputText" title="keyword" />
<input type="image" src="./images/{$layout_info->colorset}/buttonSearch.gif" alt="{$lang->cmd_search}" class="submit" />
</form>
</div>
<!--@if($act)-->
<div id="contentBody">
{$content}
</div>
<!--@else-->
<div id="contentBody">
<div id="columnLeft">
메인메뉴마우스가져가면2차메뉴나오는방법 질문 드립니다.
소스를 대충만 볼줄알고 액션종류나 이런건 모릅니다.ㅠ.ㅠ
제가 알고자 하는건요. 제가 레이아웃 받아서 했는데 메인메뉴에서 마우스 대면 2차메뉴가 보이게 하는걸 하고싶은데 여기서 어디를 어떤명령어를 쳐야하는지좀 알려주세요ㅠ.ㅠ 고쳐주시면 정말감사하고요 아니면 어떻게 고쳐야하는지 알려주셔도되구요.
부탁드립니다.
그림과 같이 메뉴1를 마우스로 살짜 대고 있으면 가나다라 가 나오게 한다는 말이에요 혹시 몰라 그림첨부-_-
그걸 참고 하시지요.
레이아웃 마음에 드시면 아예 레이아웃으로 사용하시고.....