황당한 오류...

· 16년 전 · 743 · 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 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
16년 전 조회 791
16년 전 조회 919
16년 전 조회 854
16년 전 조회 957
16년 전 조회 1,017
16년 전 조회 747
16년 전 조회 1,588
16년 전 조회 989
16년 전 조회 791
16년 전 조회 744
16년 전 조회 961
16년 전 조회 824
16년 전 조회 1,530
16년 전 조회 825
16년 전 조회 790
16년 전 조회 956
16년 전 조회 838
16년 전 조회 898
16년 전 조회 866
16년 전 조회 1,544