황당한 오류...

· 17년 전 · 759 · 5
무제-1.gif
<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을 없앨수가 없어요..ㅡㅡ; 이유가 뭘까요

첨부파일

무제-1.gif (3.7 KB)
0회 2009-02-12 17:01
|

댓글 5개

latest skin 을 확인해 보는 것이 좋을 것 같습니다
latest skin 을 삭제하여도 1이 계속 출력됩니다...
php 구문중에 <?= 로 된곳을 <?로 바꿔보세요
참고로

해당소스를

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

<index.php>에서는

<? include_once(tabMenu.php); ?> 로 인크루드하였습니다.
허어어억

감사합니다.


= 이 문제였어요....

감사합니다.정말
많이 고민했는데 뭘까...ㅠ.ㅠ

^^
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
17년 전 조회 805
17년 전 조회 934
17년 전 조회 865
17년 전 조회 971
17년 전 조회 1,035
17년 전 조회 766
17년 전 조회 1,600
17년 전 조회 1,004
17년 전 조회 800
17년 전 조회 760
17년 전 조회 974
17년 전 조회 843
17년 전 조회 1,547
17년 전 조회 836
17년 전 조회 803
17년 전 조회 966
17년 전 조회 850
17년 전 조회 917
17년 전 조회 878
17년 전 조회 1,559