상단,하단 파일 아무것도 안뜨고 안보여요 ㅜㅜ > 그누4 질문답변

그누4 질문답변

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

상단,하단 파일 아무것도 안뜨고 안보여요 ㅜㅜ 정보

상단,하단 파일 아무것도 안뜨고 안보여요 ㅜㅜ

본문

상단하단 head.php tail.php 만들어서
../ 붙여서 ../head.php 이렇게 해서
상단파일경로에 붙이고
하단파일경로에도마찬가지로 붙였어요

그런데 아무것도 안보여요
게시판주소는 http://iimssun.mireene.com/gnuboard4/bbs/board.php?bo_table=hp_qa
여기입니다..
ftp 접속해서 그누보드 안에 bbs 폴더안에도 php 파일 넣어봤고
루트에도넣어봤고 그냥 그누보드폴더안에도 넣어봤고

총 3가지 경로안에넣어봤고

../head.php 이런식으로 상단경로에 넣고 수정하면
아무것도 안보입니다 ㅠㅠ

주소  확인해보시면 알거예요
다른분들은 다되는것 같은데
왜 저만 안되죠 ㅠㅠ????


고수님들알려주세여 ㅠㅠㅠ 제발부탁드립니다 ㅠㅠㅠㅠ









head.php 소스입니다!!

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>Untitled Document</title>

<style type="text/css">
<!--
body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
#apDiv1 {
position:absolute;
width:140px;
height:138px;
z-index:1;
left: 272px;
top: 130px;
}
</style>
<script type="text/javascript">
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_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_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 leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('img/menu_1_1.jpg','img/menu_2_2.jpg','img/menu_3_3.jpg','img/menu_4_4.jpg')">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td style="background-image:url('img/bg_1.jpg');" cellpadding="0" cellspacing="0">
    <table width="788" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="138" height="130">&nbsp;</td>
        <td height="130" colspan="2" valign="bottom"><a href="index.html"><img src="img/logo.jpg" width="103" height="61" border="0" /></a></td>
        <td width="68" height="130">&nbsp;</td>
        <td width="84" height="130">&nbsp;</td>
        <td width="338" rowspan="2"><img src="img/tree.jpg" width="337" height="190" /></td>
      </tr>
      <tr>
        <td height="60">&nbsp;</td>
        <td width="73"><a href="imssun.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','img/menu_1_1.jpg',1)"><img src="img/menu_1.jpg" name="Image11" width="73" height="60" border="0" id="Image11" /></a></td>
        <td width="89"><a href="hp.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','img/menu_2_2.jpg',1)"><img src="img/menu_2_2.jpg" name="Image12" width="89" height="60" border="0" id="Image12" /></a></td>
        <td><a href="logo.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','img/menu_3_3.jpg',1)"><img src="img/menu_3.jpg" name="Image13" width="68" height="60" border="0" id="Image13" /></a></td>
        <td><a href="port.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','img/menu_4_4.jpg',1)"><img src="img/menu_4.jpg" name="Image14" width="84" height="60" border="0" id="Image14" /></a></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="500" style="background-image:url('img/bg_2.jpg');"><div id="apDiv1"><img src="img/hp_1.png" width="157" height="164" /></div>

      <table width="788" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="500" valign="top">
  • 복사

댓글 전체

헤더파일 작성하실 경우, 헤어파일의 경로를 기준으로 이미지 경로를 작성하시면 해당 소스 파일 처럼 오류가 납니다.

이미지 같은 외부 파일의 경로를 가져 오실때엔 <?=$g4[path]?>와 같은 상대 경로 변수를 사용해서 선언해 주셔야 다른 폴더의 페이지에서도 경로가 정상적으로 설정 됩니다.
재설치하고.. ../head.php ../tail.php 기본껏으로 먼저적용하니 잘되덥니다..
그러고 난 뒤 제 소스로 대입하는데 역시나 같은 오류가 발생..
문제는 헤드안에 들어가는 css소스들이였던것으로.. 지워주니 페이지가 잘 뜨고 연결됩니다
개인적으로 해결하였스빈다 ^^
© SIRSOFT
현재 페이지 제일 처음으로