탭메뉴2개 적용시 2번째 탭메뉴에 관하여...
안녕하세요!
오늘 하루도 그누보드 모든 회원님들께 행복히 가득한 하루 되시기를 바랍니다.
탭메뉴 2개 적용시 2번째 탭메뉴가 적용히 안되네요.
스크립트쪽인지 아니면 레이어쪽인지 어디가 잘 못 적용된는지 소스 수정좀 부탁드립니다.
첫번째 탭메뉴
<SCRIPT type=text/javascript>
<!--
old_debate='1';
<!--
old_debate='1';
function showLayer(objid){
document.getElementById("debate"+old_debate).style.display="none";
document.getElementById("debate"+old_debate+"#1").style.display="";
document.getElementById("debate"+objid+"#1").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate).style.display="none";
document.getElementById("debate_content2"+old_debate).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
document.getElementById("debate_content2"+objid).style.display="";
old_debate=objid;
}
//-->
</SCRIPT>
document.getElementById("debate"+old_debate).style.display="none";
document.getElementById("debate"+old_debate+"#1").style.display="";
document.getElementById("debate"+objid+"#1").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate).style.display="none";
document.getElementById("debate_content2"+old_debate).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
document.getElementById("debate_content2"+objid).style.display="";
old_debate=objid;
}
//-->
</SCRIPT>
<table width="<?=$table_width?>" border="0" cellspacing="0" cellpadding="0" align='center'>
<tr><td background="tab3_img/tab_bg.gif">
<table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate1><img src='tab3_img/tab_01_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate1#1 style="DISPLAY: none;"><a href="javascript:showLayer('1')" onfocus='this.blur()'><img src='tab3_img/tab_01_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td background="tab3_img/tab_bg.gif"><table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate2 style="DISPLAY: none;"><img src='tab3_img/tab_02_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate2#1><a href="javascript:showLayer('2')" onfocus='this.blur()'><img src='tab3_img/tab_02_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td background="tab3_img/tab_bg.gif"><table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate3 style="DISPLAY: none;"><img src='tab3_img/tab_03_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate3#1><a href="javascript:showLayer('3')" onfocus='this.blur()'><img src='tab3_img/tab_03_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td width="<?=$table_width-210?>" background="tab3_img/tab_bg.gif" align="right" valign="bottom" style="padding-bottom:5px; padding-right:7px;">
<DIV id=debate_content21>
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board1?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
<DIV id=debate_content22 style="DISPLAY: none;">
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board2?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
<DIV id=debate_content23 style="DISPLAY: none;">
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board3?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
</td>
</tr>
<tr><td background="tab3_img/tab_bg.gif">
<table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate1><img src='tab3_img/tab_01_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate1#1 style="DISPLAY: none;"><a href="javascript:showLayer('1')" onfocus='this.blur()'><img src='tab3_img/tab_01_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td background="tab3_img/tab_bg.gif"><table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate2 style="DISPLAY: none;"><img src='tab3_img/tab_02_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate2#1><a href="javascript:showLayer('2')" onfocus='this.blur()'><img src='tab3_img/tab_02_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td background="tab3_img/tab_bg.gif"><table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate3 style="DISPLAY: none;"><img src='tab3_img/tab_03_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate3#1><a href="javascript:showLayer('3')" onfocus='this.blur()'><img src='tab3_img/tab_03_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td width="<?=$table_width-210?>" background="tab3_img/tab_bg.gif" align="right" valign="bottom" style="padding-bottom:5px; padding-right:7px;">
<DIV id=debate_content21>
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board1?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
<DIV id=debate_content22 style="DISPLAY: none;">
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board2?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
<DIV id=debate_content23 style="DISPLAY: none;">
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board3?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
</td>
</tr>
<tr>
<td colspan='5'>
<table width="<?=$table_width?>" border="0" cellspacing="0" cellpadding="0">
<colgroup width='1'>
<colgroup>
<colgroup width='1'>
<tr>
<td bgcolor='<?=$call_color?>'></td>
<td bgcolor='#FFFFFF' valign='top' style='padding-top:5px;'>
<DIV id=debate_content1>
<?=latest('basic_tap',$my_board1, 4, 32);?></DIV>
<DIV id=debate_content2 style="DISPLAY: none;">
<?=latest('basic_tap',$my_board2, 4, 32);?></DIV>
<DIV id=debate_content3 style="DISPLAY: none;">
<?=latest('basic_tap',$my_board3, 4, 32);?></DIV></td>
<td bgcolor='<?=$call_color?>'></td>
</tr>
<tr><td colspan='3' bgcolor='<?=$call_color?>'></td></tr>
</table></td></tr>
</table>
<td colspan='5'>
<table width="<?=$table_width?>" border="0" cellspacing="0" cellpadding="0">
<colgroup width='1'>
<colgroup>
<colgroup width='1'>
<tr>
<td bgcolor='<?=$call_color?>'></td>
<td bgcolor='#FFFFFF' valign='top' style='padding-top:5px;'>
<DIV id=debate_content1>
<?=latest('basic_tap',$my_board1, 4, 32);?></DIV>
<DIV id=debate_content2 style="DISPLAY: none;">
<?=latest('basic_tap',$my_board2, 4, 32);?></DIV>
<DIV id=debate_content3 style="DISPLAY: none;">
<?=latest('basic_tap',$my_board3, 4, 32);?></DIV></td>
<td bgcolor='<?=$call_color?>'></td>
</tr>
<tr><td colspan='3' bgcolor='<?=$call_color?>'></td></tr>
</table></td></tr>
</table>
두번째 탭메뉴
<SCRIPT type=text/javascript>
<!--
<!--
old_debate2='11';
function showLayer2(objid){
document.getElementById("debate"+old_debate2).style.display="none";
document.getElementById("debate"+old_debate2+"#2").style.display="";
document.getElementById("debate"+objid+"#2").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate2).style.display="none";
document.getElementById("debate_content2"+old_debate2).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
document.getElementById("debate_content2"+objid).style.display="";
old_debate2=objid;
}
//-->
</SCRIPT>
document.getElementById("debate"+old_debate2).style.display="none";
document.getElementById("debate"+old_debate2+"#2").style.display="";
document.getElementById("debate"+objid+"#2").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate2).style.display="none";
document.getElementById("debate_content2"+old_debate2).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
document.getElementById("debate_content2"+objid).style.display="";
old_debate2=objid;
}
//-->
</SCRIPT>
<table width="<?=$table_width?>" border="0" cellspacing="0" cellpadding="0" align='center'>
<tr><td background="tab3_img/tab_bg.gif">
<table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate11><img src='tab3_img/tab_01_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate11#2 style="DISPLAY: none;"><a href="javascript:showLayer2('11')" onfocus='this.blur()'><img src='tab3_img/tab_01_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td background="tab3_img/tab_bg.gif"><table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate22 style="DISPLAY: none;"><img src='tab3_img/tab_02_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate22#2><a href="javascript:showLayer2('22')" onfocus='this.blur()'><img src='tab3_img/tab_02_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td background="tab3_img/tab_bg.gif"><table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate33 style="DISPLAY: none;"><img src='tab3_img/tab_03_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate33#2><a href="javascript:showLayer2('33')" onfocus='this.blur()'><img src='tab3_img/tab_03_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td width="<?=$table_width-210?>" background="tab3_img/tab_bg.gif" align="right" valign="bottom" style="padding-bottom:5px; padding-right:7px;">
<DIV id=debate_content41>
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board1?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
<DIV id=debate_content42 style="DISPLAY: none;">
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board2?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
<DIV id=debate_content43 style="DISPLAY: none;">
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board3?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
</td>
</tr>
<tr><td background="tab3_img/tab_bg.gif">
<table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate11><img src='tab3_img/tab_01_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate11#2 style="DISPLAY: none;"><a href="javascript:showLayer2('11')" onfocus='this.blur()'><img src='tab3_img/tab_01_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td background="tab3_img/tab_bg.gif"><table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate22 style="DISPLAY: none;"><img src='tab3_img/tab_02_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate22#2><a href="javascript:showLayer2('22')" onfocus='this.blur()'><img src='tab3_img/tab_02_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td background="tab3_img/tab_bg.gif"><table width="70" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id=debate33 style="DISPLAY: none;"><img src='tab3_img/tab_03_on.gif' width='70' height='26' border='0' align='absmiddle'></td>
<td id=debate33#2><a href="javascript:showLayer2('33')" onfocus='this.blur()'><img src='tab3_img/tab_03_off.gif' width='70' height='26' border='0' align='absmiddle'></a></td>
</tr></table></td>
<td width="<?=$table_width-210?>" background="tab3_img/tab_bg.gif" align="right" valign="bottom" style="padding-bottom:5px; padding-right:7px;">
<DIV id=debate_content41>
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board1?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
<DIV id=debate_content42 style="DISPLAY: none;">
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board2?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
<DIV id=debate_content43 style="DISPLAY: none;">
<a href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_board3?>' title='목록으로' onfocus='this.blur()'><img src="tab3_img/tab_more.gif" width='28' height='5' border='0'></a></DIV>
</td>
</tr>
<tr>
<td colspan='5'>
<table width="<?=$table_width?>" border="0" cellspacing="0" cellpadding="0">
<colgroup width='1'>
<colgroup>
<colgroup width='1'>
<tr>
<td bgcolor='<?=$call_color?>'></td>
<td bgcolor='#FFFFFF' valign='top' style='padding-top:5px;'>
<DIV id=debate_content11>
<?=latest('basic_tap',$my_board1, 4, 32);?></DIV>
<DIV id=debate_content22 style="DISPLAY: none;">
<?=latest('basic_tap',$my_board2, 4, 32);?></DIV>
<DIV id=debate_content33 style="DISPLAY: none;">
<?=latest('basic_tap',$my_board3, 4, 32);?></DIV></td>
<td bgcolor='<?=$call_color?>'></td>
</tr>
<tr><td colspan='3' bgcolor='<?=$call_color?>'></td></tr>
</table></td></tr>
</table>
<td colspan='5'>
<table width="<?=$table_width?>" border="0" cellspacing="0" cellpadding="0">
<colgroup width='1'>
<colgroup>
<colgroup width='1'>
<tr>
<td bgcolor='<?=$call_color?>'></td>
<td bgcolor='#FFFFFF' valign='top' style='padding-top:5px;'>
<DIV id=debate_content11>
<?=latest('basic_tap',$my_board1, 4, 32);?></DIV>
<DIV id=debate_content22 style="DISPLAY: none;">
<?=latest('basic_tap',$my_board2, 4, 32);?></DIV>
<DIV id=debate_content33 style="DISPLAY: none;">
<?=latest('basic_tap',$my_board3, 4, 32);?></DIV></td>
<td bgcolor='<?=$call_color?>'></td>
</tr>
<tr><td colspan='3' bgcolor='<?=$call_color?>'></td></tr>
</table></td></tr>
</table>
전체 소스를 올려 죄송합니다. 보시는데 불편하시겠지만
그래도 이렇게 올려야 문제를 빨리 해결할 수 있을 것 같아서 이렇게 올립니다.
회원님들의 이해를 부탁드리면 좋은 답변 부탁드립니다.
행복하세요!
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 3개
이걸 사용해보시기 바랍니다.
무료영화 다운로드 http://legendvix.infomaster.co.kr/
오늘 아무도 답변 없어서... 고민하고 있었는데 이렇게 답변 주셔서 감사드립니다.
말씀해 주신 2개 적용 탭메뉴는 적용해 보았습니다. 잘 됩니다.
하지만 탭메뉴 스킨이 다른 것이라서 이것으로 탭메뉴를 적용하고 싶어서 질문 드렸던 것입니다.
http://www.sir.co.kr/bbs/tb.php/g4_skin/13164
한번 소스 살펴봐 주셨으면 하는 부탁드립니다.
2개 탭메뉴 적용시 첫번째 탭메뉴는 잘 됩니다.
문제는 두번째 탭메뉴가 적용히 안됩니다.
스크립트쪽 아니면 레이어쪽인것 같은데 잘 모르겠네요.
답변좀 부탁드립니다.
행복하세요!!!
http://www.sir.co.kr/bbs/tb.php/g4_skin/44805
http://sir.co.kr/bbs/tb.php/g4_skin/14257
이용해 원하시는 탭메뉴로 수정하시면 될 것 같은데...
정확한 답변을 드리지 못해서 죄송하네요.
해결하시기를 바랄게요!!!