황당한 오류... > 그누4 질문답변

그누4 질문답변

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

황당한 오류... 정보

황당한 오류...

본문

<script>
function DisplayMenu(index) {
for (i=1; i<=3; i++)
if (index == i) {
thisMenu = eval("menu" + index + ".style");
thisMenu.display = "";
}
else {
otherMenu = eval("menu" + i + ".style");
otherMenu.display = "none";
}
}
</script>

<div id="menu1" style="display:;">
<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td align="center" width="68" height="21" onclick="DisplayMenu(1)" style="cursor:pointer;background-image:url('/images/frame/img_main_content3_frm_smallBox.gif');"><strong>공지사항</strong>
<td width='2' height='21' style="background-image:url('/images/frame/img_main_content3_frm_conn.gif');"></td>
<td align="center" width="68" height="21" onclick="DisplayMenu(2)" style="cursor:pointer;background-image:url('/images/frame/img_main_content3_frm_smallBox.gif');"><strong>여행후기</strong>
<td width='2' height='21' style="background-image:url('/images/frame/img_main_content3_frm_conn.gif');"></td>
<td align="center" width="68" height="21" onclick="DisplayMenu(3)" style="cursor:pointer;background-image:url('/images/frame/img_main_content3_frm_smallBox.gif');"><strong>포토앨범</strong>
<td width='31' height='21' style="background-image:url('/images/frame/img_main_content3_frm_conn.gif');"></td>
</tr>
</table>

<?=latest("notice", "notice", 6, 70);?>

</div>

<div id="menu2" style="display:none;">
<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td align="center" width="68" height="21" onclick="DisplayMenu(1)" style="cursor:pointer;background-image:url('/images/frame/img_main_content3_frm_smallBox.gif');"><strong>공지사항</strong>
<td width='2' height='21' style="background-image:url('/images/frame/img_main_content3_frm_conn.gif');"></td>
<td align="center" width="68" height="21" onclick="DisplayMenu(2)" style="cursor:pointer;background-image:url('/images/frame/img_main_content3_frm_smallBox.gif');"><strong>여행후기</strong>
<td width='2' height='21' style="background-image:url('/images/frame/img_main_content3_frm_conn.gif');"></td>
<td align="center" width="68" height="21" onclick="DisplayMenu(3)" style="cursor:pointer;background-image:url('/images/frame/img_main_content3_frm_smallBox.gif');"><strong>포토앨범</strong>
<td width='31' height='21' style="background-image:url('/images/frame/img_main_content3_frm_conn.gif');"></td>
</tr>
</table>

<?=latest("notice", "notice", 6, 70);?>
</div>

<div id="menu3" style="display:none;">
<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td align="center" width="68" height="21" onclick="DisplayMenu(1)" style="cursor:pointer;background-image:url('/images/frame/img_main_content3_frm_smallBox.gif');"><strong>공지사항</strong>
<td width='2' height='21' style="background-image:url('/images/frame/img_main_content3_frm_conn.gif');"></td>
<td align="center" width="68" height="21" onclick="DisplayMenu(2)" style="cursor:pointer;background-image:url('/images/frame/img_main_content3_frm_smallBox.gif');"><strong>여행후기</strong>
<td width='2' height='21' style="background-image:url('/images/frame/img_main_content3_frm_conn.gif');"></td>
<td align="center" width="68" height="21" onclick="DisplayMenu(3)" style="cursor:pointer;background-image:url('/images/frame/img_main_content3_frm_smallBox.gif');"><strong>포토앨범</strong>
<td width='31' height='21' style="background-image:url('/images/frame/img_main_content3_frm_conn.gif');"></td>
</tr>
</table>

<?=latest("notice", "notice", 6, 70);?>
</div>


탭메뉴 소스입니다.

이상하게 그누보드에 적용하면

아랫쪽에 숫자 1이 붙어서 출력이 됩니다...

도와주세요...
숫자1을 없앨수가 없어요..ㅡㅡ; 이유가 뭘까요
  • 복사

댓글 전체

참고로

해당소스를

include 해서 불러 왓을때에만 1이 생성됩니다.

<index.php>에서는

<? include_once(tabMenu.php); ?> 로 인크루드하였습니다.
© SIRSOFT
현재 페이지 제일 처음으로