도와주십쇼!! > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

도와주십쇼!! 정보

도와주십쇼!!

본문

그누로 홈페이지를 만들고있습니다
하다가 막혀서 글을 올립니다
 
자동하위메뉴를 만들어서 onmouseout까지써서 하긴했는데
 
하위메뉴가 나와서 다른곳으로 마우스를 이동하면 생기기는 합니다
 
근데 이젠 하위메뉴를 클릭을 할려고하면 메뉴가 다시 도로 들어가버립니다
 
onmouseout를 이용해야할꺼같은데 이걸 해결할수있는 방법없을까요??
급합니다.. 도와주세요

댓글 전체

구현하신 소스를 보지 못하면 그 누구도 원하시는 답변을 드리지 못할것입니다.
이왕이면 원하시는 기능이 정상적으로 구현된 소스를 구하시어 수정하시기 바랍니다.

도움을 원하신다면 작업하시는 화면의 URL이나 소스, 어떤 소스를 참고해서 만드신것인지에 대한 정보를 알려주십시오.
<!-- 상단 배경 시작 -->
<SCRIPT language=javascript>
var old='';

function menu(name)
{
submenu=eval("submenu_"+name+".style");
                if(old!=submenu)
        {
                if(old!='')
                {
                        old.display='none';
                }
                submenu.display='block';
                old=submenu;
        }
        else
        {
                submenu.display='none';
                old='';
        }
}
</SCRIPT>
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td background="<?=$g4['path']?>/img/top_img_bg.gif">
        <table width="100%" height="52" cellspacing="0" cellpadding="0">
        <tr>
            <td><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="52"></td>

        </tr>
        </table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->

<!-- 상단 로고 및 버튼 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td width="43" height="57"></td>
    <!-- 로고 -->
    <td width="220"><a href="<?=$g4['path']?>/" onfocus="this.blur();"><img src="<?=$g4['path']?>/img/logo.jpg" width="190" height="57" border="0" ></a></td>
    <td>
        <table width=100% border=0 cellpadding=0 cellspacing=0>
        <tr>
            <td>&nbsp;</td>
        </tr>
        </table>
    </td>
    <td width="690" align="left">
        <table border="0" cellspacing="0" cellpadding="0">
        <tr>
            <!-- 처음으로 버튼 -->
            <td width="78"><a href="<?=$g4['path']?>/" onfocus="this.blur();"><img src="<?=$g4['path']?>/img/top_m05.gif" width="78" height="28" border="0"></a></td>

            <? if (!$member['mb_id']) { ?>

            <!-- 로그인 이전 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/formmail_skin.contacts.php" onfocus="this.blur();"><img src="<?=$g4['path']?>/img/top_m07.gif" width="78" height="28" border="0"  onmouseover="menu(2);" onmouseout="menu();"></a></td>
            <td width="78"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=download" onfocus="this.blur();"><img src="<?=$g4['path']?>/img/top_m08.gif" width="78" height="28" border="0" onmouseover="menu(3);" onmouseout="menu();"></a></td>
            <? } else { ?>
            <!-- 로그인 이후(게시판,폼메일, 출석부버튼) -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/formmail_skin.contacts.php" onfocus="this.blur();"><img src="<?=$g4['path']?>/img/top_m07.gif" width="78" height="28" border="0"  onmouseover="menu(2);" onmouseout="menu();"></a></td>
            <td width="78"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=download" onfocus="this.blur();"><img src="<?=$g4['path']?>/img/top_m08.gif" width="78" height="28" border="0" onmouseover="menu(3);" onmouseout="menu();"></a></td>
            <? } ?>
           
            <!-- 공부방버튼 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=study" onfocus="this.blur();"><img src="<?=$g4['path']?>/img/top_m03.gif" width="78" height="28" border="0" onmouseover="menu(4);" onmouseout="menu();"></a></td>




<!-- 최근게시물 버튼 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/new.php" onfocus="this.blur();"><img src="<?=$g4['path']?>/img/top_m06.gif" width="78" height="28" border="0"></a></td>

<!-- 사이트맵 버튼 -->
            <td width="78"><a href="<?=$g4['path']?>/site_map.php" onfocus="this.blur();"><img src="<?=$g4['path']?>/img/sitemap.gif" width="78" height="28" border="0"></a></td>

<!-- 포인트랭킹, faq, 책소개 등등..버튼 -->
            <td width="78"><a href="<?=$g4['path']?>/point_ranking.php" onfocus="this.blur();"><img src="<?=$g4['path']?>/img/top_m07.gif" width="78" height="28" border="0" onmouseover="menu(5);" onmouseout="menu(5);"></a></td>


        </tr>

 




<table bgcolor=black cellpadding="0" border="1" cellspacing="0" id=submenu_2  style="DISPLAY: none;" style="position:absolute; left:395px; top:95px;">
<tr>
<td align=center><a href="<?=$g4['bbs_path']?>/sjs_fumail.php" onfocus="this.blur();" ><font color=white>폼메일보내기</font></a></td>
</tr>
<tr>
<td align=center><a href="<?=$g4['path']?>/today.php" onfocus="this.blur();"><font color=white>출석부</font></a></td>
</tr>


죄송요~  대충 이런식입니다
하위메뉴에도 onmouseover 시에 하위메뉴가 그대로 나오도록 해주세요.

root님 말씀대로 잘 구현된 소스를 가지고 공부를 해보세요. 소스를 잘 이해하신다음에 그것을 응용하면 됩니다.

하위메뉴 잘 보이게 자바스크립트 짜려면 생각보다 해줘야할 부분이 많아요. 골치아프죠.
요즘은 대부분 플래쉬로 해버리죠. 깔끔하게요..
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT