초보자 홈페이지 제작소스 질문드립니다

초보자 홈페이지 제작소스 질문드립니다

QA

초보자 홈페이지 제작소스 질문드립니다

답변 1

본문

안녕하세요

이번에 홈페이지제작공부를 시작하게된 왕초보자입니다

다름이 아니라 드림위버로 홈페이지를 프레임이 둘로 나뉘어진 홈을제작하던중 로그인페이지연결작업에서 문제가 생겨

이렇게 문의드립니다 

홈구성은 아래 사진처럼 상단바(분홍)와 메인페이지 프레임을 따로구성하여 한페이지에 띄었습니다↓

4d9e86755acace616c85ebd026eb8a84_1414253909_0808.jpg

 

 

 

그런데 상단바의 로그인버튼을 아래 하단화면부분과 연결하는 작업에서 문제가생겼습니다

이렇게 ↓ 로그인창이 뜨는것까지는 되는데
4d9e86755acace616c85ebd026eb8a84_1414253909_3173.jpg

 

 

로그인된 후부터 이렇게 ↓ 상단바가 없어져버립니다 그리고 로그아아웃도 실행되지않구요
4d9e86755acace616c85ebd026eb8a84_1414253910_1358.jpg 

(분홍)상단바 설정 target 값을 어떻게줘야 할지모르겠습니다

아래 상단바 작업화면 이미지입니다↓

4d9e86755acace616c85ebd026eb8a84_1414255802_5112.jpg 

 

밑에는 상단바에 적용한 소스입니다 혹시 몰라 전체 다 복사하였습니다

 

 

<?
$g4_path='./gnuboard4';
@require_once($g4_path.'/common.php');
include_once("$g4[path]/lib/latest.lib.php");
?>
<!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>00</title> 

<style type="text/css">
<!--


body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;  }
a:link { font-family: "돋움"; line-height: normal; color: #990000; text-decoration: none; }
a:visited { font-family: "돋움"; line-height: normal; color: #990000; text-decoration: none; }
a:active { font-family: "돋움"; text-decoration: none; }
a:hover { font-family: "돋움"; font-size: 12px; color: #990000; text-decoration: underline; }
body,td,th { font-family: 돋움; font-size: 12px; color: #000000; }
a { font-family: 돋움; font-size: 12px; color: #000000; }

.bg1 {
 background-image: url(imgs/01_02.jpg);
 background-repeat: repeat;
}
.a1 { background-image: url(imgs/04_05.jpg); }
.a2 { background-image: url(imgs/04_01.png); background-repeat: no-repeat; }
.a3 { background-image: url(imgs/04_03.png); background-repeat: no-repeat; }
.table_line { border: 1px dotted #333333; }
.top_line_bg { background-attachment: scroll; background-image: url(imgs/01_06.jpg); background-repeat: repeat-x; }
-->
</style>


</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="bg1">
  <tr>
    <td height="29" valign="top" class="top_line_bg">
    <table width="1152" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="29" align="right"><table width="250" border="0" cellspacing="0" cellpadding="0">
          <tr align="center">
            <td width="55" height="29" class="style1"><a href="main.html" target="bottomFrame">홈</a></td>
            <td width="54" height="29"><span class="style1">
           
            <? if($is_member) { //로그인 되어있다면 ?>
<a href="<?=$g4['bbs_path']?>/logout.php">로그아웃</a>
<? } else { //로그인 중이 아니라면 ?>
<a href="<?=$g4['path']?>/bbs/login.php" target="bottomFrame">로그인</a>
<? } ?>
           
           
            </span></td>
            <td width="54" height="29"><span class="style1"><a href="#" target="bottomFrame">회원정보</a></span></td>
            <td width="54" height="29"><span class="style1"><a href="#" target="bottomFrame">이메일</a></span></td>
            <td width="33" height="29"><span class="style1"></span></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

 

답변 부탁드립니다.ㅠ

 

이 질문에 댓글 쓰기 :

답변 1

그누보드에는 영역이 존재합니다

상단부분은 head.php

중간부분은 index.php 또는 각게시판 또는 각 페이지

하단부분은 tail.php

 

이렇게 크게 세개로 분리가 되는데요

현재 적어진 내용은 모두 head.php에 적어저야 할 내용이군요

이부분을 head.php에 넣으신게 맞나요?

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 8
© SIRSOFT
현재 페이지 제일 처음으로