황당한 오류... 정보
황당한 오류...
본문
<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을 없앨수가 없어요..ㅡㅡ; 이유가 뭘까요
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을 없앨수가 없어요..ㅡㅡ; 이유가 뭘까요
댓글 전체
latest skin 을 확인해 보는 것이 좋을 것 같습니다
latest skin 을 삭제하여도 1이 계속 출력됩니다...
php 구문중에 <?= 로 된곳을 <?로 바꿔보세요
참고로
해당소스를
include 해서 불러 왓을때에만 1이 생성됩니다.
<index.php>에서는
<? include_once(tabMenu.php); ?> 로 인크루드하였습니다.
해당소스를
include 해서 불러 왓을때에만 1이 생성됩니다.
<index.php>에서는
<? include_once(tabMenu.php); ?> 로 인크루드하였습니다.
허어어억
감사합니다.
= 이 문제였어요....
감사합니다.정말
많이 고민했는데 뭘까...ㅠ.ㅠ
^^
감사합니다.
= 이 문제였어요....
감사합니다.정말
많이 고민했는데 뭘까...ㅠ.ㅠ
^^