게시판에서도 top메뉴를 쓰고싶습니다.

게시판에서도 top메뉴를 쓰고싶습니다.

QA

게시판에서도 top메뉴를 쓰고싶습니다.

본문

일반페이지에서는 include문을 써서 이용하꼬 있습니다.

그런데 게시판에서는 include가 먹지 않아 일일이 수정하여 쓰고 있는데요 너무 불편해서 수정하여 쓰지 않으면 후에 더 큰일이 생길것 같아 고수님께 여쭙습니다.

저는 하수중에 최고 하수라 게시판 상단소스 하단소스를 수정하여 씁니다.

방법좀 알려주세요 일전에 어떤분이 절대경로로 써보라고 하더군요

http://wappleedu.com/p8-1.html

아래는 일반페이지 소스입니다.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>와글와글플레이월드에 오신것을 환영합니다.</title>
<style type="text/css">
body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
 background-image: url(wappleimg/bg.gif);
}
#div1 {
 position: absolute;
 left: 214px;
 top: 72px;
 width: 290px;
 height: 26px;
 z-index: 1;
 visibility: hidden;
}
#div2 {
 position: absolute;
 left: 266px;
 top: 72px;
 width: 701px;
 height: 53px;
 z-index: 2;
 visibility: visible;
}
#div3 {
 position: absolute;
 left: 449px;
 top: 72px;
 width: 638px;
 height: 26px;
 z-index: 3;
 visibility: hidden;
}
#div4 {
 position: absolute;
 left: 604px;
 top: 72px;
 width: 495px;
 height: 25px;
 z-index: 4;
 visibility: hidden;
}
#div5 {
 position: absolute;
 left: 728px;
 top: 72px;
 width: 308px;
 height: 26px;
 z-index: 5;
 visibility: hidden;
}
#div6 {
 position: absolute;
 left: 885px;
 top: 72px;
 width: 384px;
 height: 27px;
 z-index: 6;
 visibility: hidden;
}
#div7 {
 position: absolute;
 left: 971px;
 top: 61px;
 width: 217px;
 height: 25px;
 z-index: 7;
 visibility: hidden;
}
#div9 {
 position: absolute;
 left: 1024px;
 top: 72px;
 width: 273px;
 height: 26px;
 z-index: 8;
 visibility: hidden;
}
#div10 {
 position: absolute;
 left: 1131px;
 top: 72px;
 width: 220px;
 height: 25px;
 z-index: 9;
 visibility: hidden;
}
#div8 {
 position: absolute;
 left: 1022px;
 top: 72px;
 width: 196px;
 height: 26px;
 z-index: 10;
 visibility: hidden;
}
#main { position: absolute;
 left: 731px;
 top: 73px;
 width: 1233px;
 height: 369px;
 z-index: 1;
}
</style>
<script type="text/javascript">
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<body onload="MM_preloadImages('wappleimg/180521/lbtn8-1o.gif','wappleimg/180521/lbtn8-2o.gif','wappleimg/180521/lbtn8-3o.gif','wappleimg/180521/lbtn8-4o.gif','wappleimg/180521/lbtn8-5o.gif')">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table background="wappleimg/sub2/bg_topmenu.gif"width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><?include"topmenusub.html";?> </td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table background="wappleimg/sub2/sub01.jpg" width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="wappleimg/sub2/subimg06.jpg" width="1500" height="375" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF"><table width="1350" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="123" align="right" valign="top" bgcolor="#FFFFFF"><table width="100" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="wappleimg/sub2/ltop08.gif" width="211" height="85" /></td>
              </tr>
              <tr>
                <td><table width="100" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><a href="../../p8-1.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','wappleimg/180521/lbtn8-1o.gif',1)"><img src="wappleimg/180521/lbtn8-1.gif" width="209" height="25" id="Image8" /></a></td>
                  </tr>
                  <tr>
                    <td><a href="../../p8-2.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','wappleimg/180521/lbtn8-2o.gif',1)"><img src="wappleimg/180521/lbtn8-2.gif" width="209" height="25" id="Image9" /></a></td>
                  </tr>
                  <tr>
                    <td><a href="../../p8-3.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','wappleimg/180521/lbtn8-3o.gif',1)"><img src="wappleimg/180521/lbtn8-3.gif" width="209" height="25" id="Image10" /></a></td>
                  </tr>
                  <tr>
                    <td><a href="../../bbs/board.php?bo_table=yostudy" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','wappleimg/180521/lbtn8-4o.gif',1)"><img src="wappleimg/180521/lbtn8-4.gif" width="209" height="25" id="Image11" /></a></td>
                  </tr>
                  <tr>
                    <td><a href="../../p8-4.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','wappleimg/180521/lbtn4-5o.gif',0)"><img src="wappleimg/180521/lbtn4-5.gif" name="Image" width="209" height="25" id="Image" /></a></td>
                  </tr>
                  <tr>
                    <td><a href="../../bbs/board.php?bo_table=yoonline" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','wappleimg/180521/lbtn8-5o.gif',1)"><img src="wappleimg/180521/lbtn8-5.gif" width="209" height="25" id="Image12" /></a></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td><p> </p>
                  <p> </p></td>
              </tr>
            </table></td>
            <td width="89" valign="top"><img src="wappleimg/sub2/bar_sub01.gif" width="89" height="830" /></td>
            <td width="1138" valign="top" bgcolor="#FFFFFF"><table width="1000" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="wappleimg/180521/t8-1.gif" width="850" height="85" /></td>
              </tr>
              <tr>
                <td><table width="100" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td> </td>
                  </tr>
                  <tr>
                    <td><img src="wappleimg/180521/yosul01.jpg" width="1033" height="1400" /></td>
                  </tr>
                  <tr>
                    <td> </td>
                  </tr>
                </table>
                  <p> </p>
                  <p> </p></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table background="wappleimg/sub2/bg_footer_sub.gif"width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="wappleimg/sub2/foooter_sub.gif" width="1300" height="120" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

 

이 질문에 댓글 쓰기 :

답변 3

게시판 관리자에 보시면 

헤더부분 지정하는 곳이 있습니다.

 

거기서 ./_head.php 를 넣으시면 됩니다.

 



	
		
			<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
		
	




	
		
			136
			  <tr>
		
	




	
		
			137
			    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
		
	




	
		
			138
			      <tr>
		
	




	
		
			139
			        <td><table background="wappleimg/sub2/bg_topmenu.gif"width="100%" border="0" cellspacing="0" cellpadding="0">
		
	




	
		
			140
			          <tr>
		
	




	
		
			141
			            <td><?include"topmenusub.html";?> </td>
		
	




	
		
			142
			          </tr>
		
	




	
		
			143
			
			        </table></
가 게시판상에서 어떤경로로 바뀌는지 궁금합니다.. 저는 무조건 상위로 가게끔

../../로 ㅊㅓ리해ㅆ었거든요

답변을 작성하시기 전에 로그인 해주세요.
전체 96
QA 내용 검색

회원로그인

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