탭메뉴 갯수 조절하려면? > 그누4 질문답변

그누4 질문답변

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

탭메뉴 갯수 조절하려면? 정보

탭메뉴 갯수 조절하려면?

본문

 
 
 
탭메뉴 갯수를 조절하려면 소스 어디를 수정해야 하는지요? -_ㅜ
 
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$my_table1 = 'news';  //게시판 명
$my_table2 = 'board';  //게시판 명
$my_table3 = 'faq';  //게시판 명
$my_table4 = 'news';  //게시판 명
$my_table5 = 'board';  //게시판 명
?>
<SCRIPT type=text/javascript>
<!--
 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_content"+objid).style.display="";
  old_debate=objid;
 }
//-->
</SCRIPT>

<table width="350" border="0" cellspacing="0" cellpadding="0">
 <tr>
<td>
<table width="350" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="70">
   <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate1><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table1?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu1_on.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate1#1  style="DISPLAY: none;"><A href="javascript:showLayer('1')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu1.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
   </TR></TABLE></td>
    <td width="70">
         <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate2  style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table2?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu2_on.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate2#1><A href="javascript:showLayer('2')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu2.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
    <td width="70">
         <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate3 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table3?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu3_on.gif' width=70 height=27 border=0 align=absmiddle></A> </TD>
                <TD id=debate3#1><A href="javascript:showLayer('3')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu3.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
    <td width="70">
         <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate4 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table4?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu4_on.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate4#1><A href="javascript:showLayer('4')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu4.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
 <td width="70">
         <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate5 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table5?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu5_on.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate5#1><A href="javascript:showLayer('5')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu5.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
    </TR></TABLE></td>
  </tr>
</table>
<table width="350" border="0" cellspacing="0" cellpadding="0">
<colgroup width='1'>
<colgroup>
<colgroup width='1'>
   <tr>
       <td bgcolor='#D5D3E8'></td>
     <td bgcolor='#FFFFFF' valign='top'>
   
   <DIV id=debate_content1>
   <?=latest('multi_tap',$my_table1, 4, 37);?></DIV>
   
   <DIV id=debate_content2 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table2, 4, 37);?></DIV>
   
   <DIV id=debate_content3 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table3, 4, 37);?></DIV>
   
   <DIV id=debate_content4 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table4, 4, 37);?></DIV>
   <DIV id=debate_content5 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table5, 4, 37);?></DIV>
   </td>
         <td bgcolor='#D5D3E8'></td>
   </tr>
   <tr><td colspan='3' bgcolor='#D5D3E8'></td></tr>
</table></td></tr>
</table>
 
 
 
 
테이블 3,4,5 값 지우고 들어가있는 table 다 지우고까지는 좋았는데,
밑에 있는 div를 지우니까 탭이 작동을 안하네요.
 
어딜 어떻게 수정해야 할까요?
 
답변 부탁드릴게요 ㅠㅠ
 
 

댓글 전체

상단테이블 필요없는 탭영역(3,4,5) 주석처리나 삭제하시고
 
<DIV id=debate_content1>
  <?=latest('multi_tap',$my_table1, 4, 37);?></DIV>
 
  <DIV id=debate_content2 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table2, 4, 37);?></DIV>
 
  <DIV id=debate_content3 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table3, 4, 37);?></DIV>
 
  <DIV id=debate_content4 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table4, 4, 37);?></DIV>
  <DIV id=debate_content5 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table5, 4, 37);?></DIV>

--------------------------------------------------------------------
<DIV id=debate_content1>
  <?=latest('multi_tap',$my_table1, 4, 37);?></DIV>
 
  <DIV id=debate_content2 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table2, 4, 37);?></DIV>
이렇게 삭제하심 되지 않을까요??(확인은 못해봤습니다 ^^;;) 탭 두개만 사용할겅우
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$my_table1 = 'news';  //게시판 명
$my_table2 = 'board';  //게시판 명
$my_table3 = 'faq';  //게시판 명
$my_table4 = 'news';  //게시판 명
$my_table5 = 'board';  //게시판 명
?>

$my_table3 = 'faq';  //게시판 명
$my_table4 = 'news';  //게시판 명
$my_table5 = 'board';  //게시판 명
삭제해보셨나요??  (탭3개 사용시)
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$my_table1 = 'reservation';  //게시판 명

$my_table2 = 'sangdam';  //게시판 명

//$my_table3 = 'faq';  //게시판 명

//$my_table4 = 'news';  //게시판 명

//$my_table5 = 'board';  //게시판 명

?>

<SCRIPT type=text/javascript>
<!--
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_content"+objid).style.display="";
old_debate=objid;
}
//-->
</SCRIPT>


<table width="350" border="0" cellspacing="0" cellpadding="0">
 <tr>
<td>
<table width="350" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="70">
<TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate1><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table1?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu1_on.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate1#1  style="DISPLAY: none;"><A href="javascript:showLayer('1')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu1.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
</TR></TABLE></td>
    <td width="70">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate2  style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table2?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu2_on.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate2#1><A href="javascript:showLayer('2')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu2.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
</TR></TABLE></td>
    <!--<td width="70">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate3 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table3?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu3_on.gif' width=70 height=27 border=0 align=absmiddle></A> </TD>
                <TD id=debate3#1><A href="javascript:showLayer('3')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu3.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
</TR></TABLE></td>
    <td width="70">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate4 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table4?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu4_on.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate4#1><A href="javascript:showLayer('4')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu4.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
</TR></TABLE></td>
<td width="70">
        <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR>
                <TD id=debate5 style="DISPLAY: none;"><A href='<?=$g4[path]?>/bbs/board.php?bo_table=<?=$my_table5?>' title='목록으로' onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu5_on.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
                <TD id=debate5#1><A href="javascript:showLayer('5')" onfocus='this.blur()'><img src='<?=$g4[path]?>/tap_img/menu5.gif' width=70 height=27 border=0 align=absmiddle></A></TD>
</TR></TABLE></td>//-->
  </tr>
</table>

<table width="350" border="0" cellspacing="0" cellpadding="0">
<colgroup width='1'>
<colgroup>
<colgroup width='1'>
  <tr>
      <td bgcolor='#D5D3E8'></td>
    <td bgcolor='#FFFFFF' valign='top'>

<DIV id=debate_content1>
<?=latest('multi_tap',$my_table1, 4, 37);?></DIV>

<DIV id=debate_content2 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table2, 4, 37);?></DIV>

<DIV id=debate_content3 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table3, 4, 37);?></DIV>

<DIV id=debate_content4 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table4, 4, 37);?></DIV>

<DIV id=debate_content5 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table5, 4, 37);?></DIV>
</td>
        <td bgcolor='#D5D3E8'></td>
  </tr>
  <tr><td colspan='3' bgcolor='#D5D3E8'></td></tr>
</table></td></tr>
</table>

게시판 두개만 사용하고 싶을경우 이렇게 위에 소스처럼 주석해주면 되는데요?
이걸로 게시판 이름만 바꾸셔서 테스트 해보세요~
그렇게 주석처리하면 일단 탭메뉴는 된답니다. 그런데 게시판이 뜨질 않아요. ㅠㅠ
지금 제가 게시판의 헤더 파일에 탭 최신글을 넣고 있거든요.

그래서

<DIV id=debate_content3 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table3, 4, 37);?></DIV>

<DIV id=debate_content4 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table4, 4, 37);?></DIV>

<DIV id=debate_content5 style="DISPLAY: none;">
            <?=latest('multi_tap',$my_table5, 4, 37);?></DIV>

이 부분까지 삭제해 봤더니, 이젠 게시판은 뜨는데 탭 메뉴가 작동을 하질 않는겁니다. ㅠㅠ
그래서 꿍꿍거리다가 이렇게 질문을...

4ever2u 님 바쁘실텐데 이렇게 시간 내주셔서 너무 감사드립니다. ㅜㅜ
더 고민을 해봐야겠어요... 우흑
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT