묻고답하기

안녕하세요.

http://namcommuni.cafe24.com 에 들어가서 보시면

메뉴에서 마우스를 떼었을때도 첫번째 서브메뉴가 열려있는것을 볼수 있습니다.

그 서브메뉴가 평소에는 안보이도록 하는 방법좀 알려주시면 감사하겠습니다~


헤더소스


<script>
<!--

function fncClick( obj )
{
    var fm  = document.frm;
    var img = fm.menu;

    for( var i=0; i<img.length; i++ )
    {
        if( img[i] === obj )
        {
            if( img[i].src.indexOf('_on') == -1 )
            {
                img[i].src = img[i].src.replace('.gif','_on.gif');
                document.getElementById(img[i].id+'_sub').style.display = '';
            }
        }
        else
        {
            img[i].src = img[i].src.replace('_on','');
            document.getElementById(img[i].id+'+ '_sub').style.display = 'none';
        }
    }
}

//-->
</script>




바디소스

<table width="998" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th rowspan="4" scope="row"><a href="index.php"><img src="images/top0_01.jpg" width="195" height="107" border="0" /></a></th>
    <td><img src="images/top0_02.jpg" width="803" height="22" /></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th scope="row"><img src="images/top0_03.jpg" width="77" height="53" /></th>
        <td><a href="sub1.php"><img src="images/top0_04.jpg" name='menu' width="127" height="53" border="0" id='menu1' style='cursor:hand;' onmouseover='javascript_:fncClick(this);'/></a></td>
        <td><img src="images/top0_05.jpg" width="35" height="53" /></td>
        <td><a href="sub2.php"><img src="images/top0_06.jpg" name='menu' width="136" height="53" border="0" id='menu2' style='cursor:hand;' onmouseover='javascript_:fncClick(this);'/></a></td>
        <td><img src="images/top0_07.jpg" width="39" height="53" /></td>
        <td><a href="sub3.php"><img src="images/top0_08.jpg" name='menu' width="125" height="53" border="0"  id='menu3' style='cursor:hand;' onmouseover='javascript_:fncClick(this);'/></a></td>
        <td><img src="images/top0_09.jpg" width="36" height="53" /></td>
        <td><a href="sub4.php"><img src="images/top0_10.jpg" name='menu' width="164" height="53" border="0" id='menu4' style='cursor:hand;' onmouseover='javascript_:fncClick(this);'/></a></td>
        <td><img src="images/top0_11.jpg" width="64" height="53" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="24" background="images/top0_12.jpg"> <span id='menu1_sub' style='display:'>
             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="row"><img src="images/top1_12.jpg" width="122" height="24"></th>
    <td><a href="sub1.php"><img src="images/top1_13.jpg" border="0"></a></td>
    <td><a href="sub1_2.php"><img src="images/top1_14.jpg" border="0"></a></td>
    <td><a href="sub1_3.php"><img src="images/top1_15.jpg" border="0"></a></td>
    <td><a href="sub1_4.php"><img src="images/top1_16.jpg" border="0"></a></td>
    <td><a href="sub1_5.php"><img src="images/top1_17.jpg" border="0"></a></td>
    <td><img src="images/top1_18.jpg"></td>
  </tr>
</table>
            </span>
            <span id='menu2_sub' style='display:none'>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="row"><img src="images/top2_12.jpg"></th>
    <td><img src="images/top2_13.jpg"></td>
    <td><a href="sub2.php"><img src="images/top2_14.jpg" border="0"></a></td>
    <td><a href="sub2_2.php"><img src="images/top2_15.jpg" border="0"></a></td>
    <td><a href="sub2_3.php"><img src="images/top2_16.jpg" border="0"></a></td>
    <td><img src="images/top2_17.jpg"></td>
  </tr>
</table>
            </span>
            <span id='menu3_sub' style='display:none'><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="row"><img src="images/top3_12.jpg" width="400" height="24" /></th>
    <td><a href="sub3.php"><img src="images/top3_13.jpg" width="81" height="24" border="0" /></a></td>
    <td><a href="sub3_4.php"><img src="images/top3_14.jpg" width="94" height="24" border="0" /></a></td>
    <td><a href="sub3_6.php"><img src="images/top3_15.jpg" width="94" height="24" border="0" /></a></td>
    <td><img src="images/top3_16.jpg" width="134" height="24" /></td>
  </tr>
</table>
            </span>
            <span id='menu4_sub' style='display:none'>
               <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="row"><img src="sub/images/sub1-4_12.jpg" width="353" height="24" /></th>
    <td><a href="sub4_1.php"><img src="sub/images/sub1-4_13.jpg" width="61" height="24" border="0" /></a></td>
    <td><a href="sub4_2.php"><img src="sub/images/sub1-4_14.jpg" border="0" /></a></td>
    <td><a href="sub4_3.php"><img src="sub/images/sub1-4_15.jpg" border="0" /></a></td>
    <td><a href="sub4_4.php"><img src="sub/images/sub1-4_16.jpg" border="0" /></a></td>
    <td><a href="sub4_5.php"><img src="sub/images/sub1-4_17.jpg" border="0" /></a></td>
    <td><img src="sub/images/sub1-4_18.jpg" /></td>
  </tr>
</table>




그리고, 익스플로러에서 보면 테이블이 깨져보이는 현상이 있는데요.
사파리에서는 아무렇지 않거든요..? -.- 왜그런건지... 혹시 소스에 문제가 있는지..
확인좀... 부탁드려요!! +_+




태그 연관 글
  1. [2018/03/06] 묻고답하기 html 홈페이지 작성중 이미지 표기 오류가 생깁니다. by MCFR *2
  2. [2017/04/19] 묻고답하기 견적내기페이지 문의 by 일반 *1
  3. [2016/09/13] 묻고답하기 제목에 html, css 가능하도록 하기? by lifema**** *2
  4. [2015/11/14] 묻고답하기 게시판에 태그(헤시태그) 작성하는 방법을 알려주세요 by thdwjdtjr *1
  5. [2015/06/26] 묻고답하기 초보자입니다. XE에서 게시판 태그를 편집하려면? by 원주리더스컴 *1