목적에 맞게 head, index, tail 편집좀 부탁드려요 정보
목적에 맞게 head, index, tail 편집좀 부탁드려요첨부파일
본문
그누보드 홈페이지처럼 레이어를 잡기위해 아래에 글을 올렸던 사람입니다.
메인화면 우측의 붉은 창 부분을 추가로 넣고자 합니다.
도저히 안돼네요 .......
cybernet 님께서 아래와 같은 소스를 보여주셨는데...도저히 적용을 못시키겠습니다.
head, index, tail 세가지 파일을 좀 수정해줄수 있을런지요 -_-;;
(편집된 자료는 작업중인 홈페이지 게시판에 올려주셔도 됩니다. )
========================================
아래는 cybernet님이 알려주신 소스입니다.
<style>
#cybernet {width:980px;position:relative;margin:0 auto;text-align:left}
</style>
<div id="cybernet">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:980px;float:left;background:#ffffff;text-align:left;">
<!-- 상단 a -->
<? include_once("$g4[path]/000/head.php");?>
<!-- 상단 z -->
</div id="980px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:790px;float:left;background:#ffffff;text-align:left;">
<div style="width:180px;height:100px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<!-- 죄측메뉴 a -->
<!-- 죄측메뉴 z -->
</div id="180px">
<div style="width:610px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 5px;"></div>
<div style="clear:both; padding:3px 0 0 0;"></div>
<!--Body Srat-->
<table width=605 border="0" cellpadding="0" cellspacing="0" align="center" style="table-layout: fixed;">
<tr>
<td>
</td>
</tr>
</table>
<!--Body End-->
<div style="clear:both; padding:0 0 0 5px;"></div>
</div id="610px">
</div id="980px">
<div style="width:180px;float:left;background:#ffffff;text-align:;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<div style="width:175px;float:left;background:#ffffff;text-align:right;">
<div style="clear:both; padding:0 0 5px 0;"></div>
<!-- 우측베너영역 a -->
<!-- 우측베너영역 z -->
<div style="clear:both; padding:0 0 5px 0;"></div>
</div id="175px">
</div id="180px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:970px;float:left;background:#ffffff;text-align:;align:center;">
<? include_once("./foot.php");?>
</div id="980px">
</div id="cybernet">
<?
include_once("$g4[path]/tail.sub.php");
?>
#cybernet {width:980px;position:relative;margin:0 auto;text-align:left}
</style>
<div id="cybernet">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:980px;float:left;background:#ffffff;text-align:left;">
<!-- 상단 a -->
<? include_once("$g4[path]/000/head.php");?>
<!-- 상단 z -->
</div id="980px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:790px;float:left;background:#ffffff;text-align:left;">
<div style="width:180px;height:100px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<!-- 죄측메뉴 a -->
<!-- 죄측메뉴 z -->
</div id="180px">
<div style="width:610px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 5px;"></div>
<div style="clear:both; padding:3px 0 0 0;"></div>
<!--Body Srat-->
<table width=605 border="0" cellpadding="0" cellspacing="0" align="center" style="table-layout: fixed;">
<tr>
<td>
</td>
</tr>
</table>
<!--Body End-->
<div style="clear:both; padding:0 0 0 5px;"></div>
</div id="610px">
</div id="980px">
<div style="width:180px;float:left;background:#ffffff;text-align:;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<div style="width:175px;float:left;background:#ffffff;text-align:right;">
<div style="clear:both; padding:0 0 5px 0;"></div>
<!-- 우측베너영역 a -->
<!-- 우측베너영역 z -->
<div style="clear:both; padding:0 0 5px 0;"></div>
</div id="175px">
</div id="180px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:970px;float:left;background:#ffffff;text-align:;align:center;">
<? include_once("./foot.php");?>
</div id="980px">
</div id="cybernet">
<?
include_once("$g4[path]/tail.sub.php");
?>
댓글 전체
index 부분이 화면밖 아래로 밀립니다. 확인좀 부탁드립니다.
### head 부분 ##################################
<style>
#cybernet {width:1004px;position:relative;margin:0 auto;text-align:left}
</style>
<div id="cybernet">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:1004px;float:left;background:#ffffff;text-align:center;">
<!-- 상단 a -->
<script>doc_write(flash_movie("http://sarang.naezip.net/head4.swf", "mainflash", 1004, 150, "transparent"));</script>
<!-- 상단 z -->
</div id="1004px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:790px;float:left;background:#ffffff;text-align:left;">
<div style="width:220px;height:100px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<!-- 죄측메뉴 a -->
<?=outlogin("basic"); // 외부 로그인 ?>
<div style='height:10px;'></div>
<? echo latest_schedule("calendar","calendar"); ?>
<div style='height:10px;'></div>
<?=poll("basic"); // 설문조사 ?>
<div style='height:10px;'></div>
<?=visit("basic"); // 방문자수 ?>
<div style='height:10px;'></div>
<?=connect(); // 현재 접속자수 ?>
<!-- 죄측메뉴 z -->
</div id="220px">
<div style="width:604px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 5px;"></div>
<div style="clear:both; padding:3px 0 0 0;"></div>
<!--Body Srat-->
<table width=604 border="0" cellpadding="0" cellspacing="0" align="center" style="table-layout: fixed;">
<tr>
<td width="301">
###### index 부분 #################################
<?=latest("plip_last","sermon", 6, 40);?></td>
<td width="302"><?=latest("plip_last","free", 6, 40);?></td>
</tr>
<tr>
<td width="302"><?=latest("plip_last","bible", 6, 40);?></td>
<td width="302"><?=latest("plip_last","good", 6, 40);?></td>
</tr>
<tr>
<td width="302"><?=latest("plip_last","qa", 6, 40);?></td>
<td width="302"><?=latest("plip_last","guest", 6, 40);?></td>
</tr>
<tr>
<td colspan="2"><?=latest("plip_gallery_last","family", 5, 57, 57, 1);?>
##### tail 부분 ########################
</td>
</tr>
</table>
<!--Body End-->
<div style="clear:both; padding:0 0 0 5px;"></div>
</div id="604px">
</div id="1004px">
<div style="width:180px;float:left;background:#ffffff;text-align:;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<div style="width:175px;float:left;background:#ffffff;text-align:right;">
<div style="clear:both; padding:0 0 5px 0;"></div>
<!-- 우측베너영역 a -->
<table width="175" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="http://sarang.naezip.net/banner.jpg"></td>
</tr>
</table>
<!-- 우측베너영역 z -->
<div style="clear:both; padding:0 0 5px 0;"></div>
</div id="175px">
</div id="180px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
</div id="cybernet">
<?
include_once("$g4[path]/tail.sub.php");
?>
### head 부분 ##################################
<style>
#cybernet {width:1004px;position:relative;margin:0 auto;text-align:left}
</style>
<div id="cybernet">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:1004px;float:left;background:#ffffff;text-align:center;">
<!-- 상단 a -->
<script>doc_write(flash_movie("http://sarang.naezip.net/head4.swf", "mainflash", 1004, 150, "transparent"));</script>
<!-- 상단 z -->
</div id="1004px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:790px;float:left;background:#ffffff;text-align:left;">
<div style="width:220px;height:100px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<!-- 죄측메뉴 a -->
<?=outlogin("basic"); // 외부 로그인 ?>
<div style='height:10px;'></div>
<? echo latest_schedule("calendar","calendar"); ?>
<div style='height:10px;'></div>
<?=poll("basic"); // 설문조사 ?>
<div style='height:10px;'></div>
<?=visit("basic"); // 방문자수 ?>
<div style='height:10px;'></div>
<?=connect(); // 현재 접속자수 ?>
<!-- 죄측메뉴 z -->
</div id="220px">
<div style="width:604px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 5px;"></div>
<div style="clear:both; padding:3px 0 0 0;"></div>
<!--Body Srat-->
<table width=604 border="0" cellpadding="0" cellspacing="0" align="center" style="table-layout: fixed;">
<tr>
<td width="301">
###### index 부분 #################################
<?=latest("plip_last","sermon", 6, 40);?></td>
<td width="302"><?=latest("plip_last","free", 6, 40);?></td>
</tr>
<tr>
<td width="302"><?=latest("plip_last","bible", 6, 40);?></td>
<td width="302"><?=latest("plip_last","good", 6, 40);?></td>
</tr>
<tr>
<td width="302"><?=latest("plip_last","qa", 6, 40);?></td>
<td width="302"><?=latest("plip_last","guest", 6, 40);?></td>
</tr>
<tr>
<td colspan="2"><?=latest("plip_gallery_last","family", 5, 57, 57, 1);?>
##### tail 부분 ########################
</td>
</tr>
</table>
<!--Body End-->
<div style="clear:both; padding:0 0 0 5px;"></div>
</div id="604px">
</div id="1004px">
<div style="width:180px;float:left;background:#ffffff;text-align:;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<div style="width:175px;float:left;background:#ffffff;text-align:right;">
<div style="clear:both; padding:0 0 5px 0;"></div>
<!-- 우측베너영역 a -->
<table width="175" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="http://sarang.naezip.net/banner.jpg"></td>
</tr>
</table>
<!-- 우측베너영역 z -->
<div style="clear:both; padding:0 0 5px 0;"></div>
</div id="175px">
</div id="180px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
</div id="cybernet">
<?
include_once("$g4[path]/tail.sub.php");
?>

검토는 못하였습니다만,
div로 작성한 레이아웃이 잘 되었다면
아래와 같이 해보세요.
### head 부분 ##################################
<style>
#cybernet {width:1004px;position:relative;margin:0 auto;text-align:left}
</style>
<div id="cybernet">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:1004px;float:left;background:#ffffff;text-align:center;">
<!-- 상단 a -->
<script>doc_write(flash_movie("http://sarang.naezip.net/head4.swf", "mainflash", 1004, 150, "transparent"));</script>
<!-- 상단 z -->
</div id="1004px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:790px;float:left;background:#ffffff;text-align:left;">
<div style="width:220px;height:100px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<!-- 죄측메뉴 a -->
<?=outlogin("basic"); // 외부 로그인 ?>
<div style='height:10px;'></div>
<? echo latest_schedule("calendar","calendar"); ?>
<div style='height:10px;'></div>
<?=poll("basic"); // 설문조사 ?>
<div style='height:10px;'></div>
<?=visit("basic"); // 방문자수 ?>
<div style='height:10px;'></div>
<?=connect(); // 현재 접속자수 ?>
<!-- 죄측메뉴 z -->
</div id="220px">
<div style="width:604px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 5px;"></div>
<div style="clear:both; padding:3px 0 0 0;"></div>
<!--Body Srat-->
###### index 부분 #################################
<table width=604 border="0" cellpadding="0" cellspacing="0" align="center" style="table-layout: fixed;">
<tr>
<td width="301">
<?=latest("plip_last","sermon", 6, 40);?></td>
<td width="302"><?=latest("plip_last","free", 6, 40);?></td>
</tr>
<tr>
<td width="302"><?=latest("plip_last","bible", 6, 40);?></td>
<td width="302"><?=latest("plip_last","good", 6, 40);?></td>
</tr>
<tr>
<td width="302"><?=latest("plip_last","qa", 6, 40);?></td>
<td width="302"><?=latest("plip_last","guest", 6, 40);?></td>
</tr>
<tr>
<td colspan="2"><?=latest("plip_gallery_last","family", 5, 57, 57, 1);?>
</td>
</tr>
</table>
##### tail 부분 ########################
<!--Body End-->
<div style="clear:both; padding:0 0 0 5px;"></div>
</div id="604px">
</div id="1004px">
<div style="width:180px;float:left;background:#ffffff;text-align:;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<div style="width:175px;float:left;background:#ffffff;text-align:right;">
<div style="clear:both; padding:0 0 5px 0;"></div>
<!-- 우측베너영역 a -->
<table width="175" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="http://sarang.naezip.net/banner.jpg"></td>
</tr>
</table>
<!-- 우측베너영역 z -->
<div style="clear:both; padding:0 0 5px 0;"></div>
</div id="175px">
</div id="180px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
</div id="cybernet">
<?
include_once("$g4[path]/tail.sub.php");
?>
제 설명을 잘 이해 못하신 듯 한데,이런 형태로 하시구요.
이렇게 하시고도 테이블이 약간 밀린다면
<table width="100" cellpadding=0 cellspacing=0>
<col width=50%></col><col width=50%></col>
<tr>
<td>최근게시물</td>
<td>최근게시물</td>
</tr>
<tr>
<td colspan=2>최근게물</td>
</tr>
</table>
의 형태 로 하세요
div로 작성한 레이아웃이 잘 되었다면
아래와 같이 해보세요.
### head 부분 ##################################
<style>
#cybernet {width:1004px;position:relative;margin:0 auto;text-align:left}
</style>
<div id="cybernet">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:1004px;float:left;background:#ffffff;text-align:center;">
<!-- 상단 a -->
<script>doc_write(flash_movie("http://sarang.naezip.net/head4.swf", "mainflash", 1004, 150, "transparent"));</script>
<!-- 상단 z -->
</div id="1004px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
<div style="width:790px;float:left;background:#ffffff;text-align:left;">
<div style="width:220px;height:100px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<!-- 죄측메뉴 a -->
<?=outlogin("basic"); // 외부 로그인 ?>
<div style='height:10px;'></div>
<? echo latest_schedule("calendar","calendar"); ?>
<div style='height:10px;'></div>
<?=poll("basic"); // 설문조사 ?>
<div style='height:10px;'></div>
<?=visit("basic"); // 방문자수 ?>
<div style='height:10px;'></div>
<?=connect(); // 현재 접속자수 ?>
<!-- 죄측메뉴 z -->
</div id="220px">
<div style="width:604px;float:left;background:#ffffff;text-align:left;">
<div style="clear:both; padding:5px 0 0 5px;"></div>
<div style="clear:both; padding:3px 0 0 0;"></div>
<!--Body Srat-->
###### index 부분 #################################
<table width=604 border="0" cellpadding="0" cellspacing="0" align="center" style="table-layout: fixed;">
<tr>
<td width="301">
<?=latest("plip_last","sermon", 6, 40);?></td>
<td width="302"><?=latest("plip_last","free", 6, 40);?></td>
</tr>
<tr>
<td width="302"><?=latest("plip_last","bible", 6, 40);?></td>
<td width="302"><?=latest("plip_last","good", 6, 40);?></td>
</tr>
<tr>
<td width="302"><?=latest("plip_last","qa", 6, 40);?></td>
<td width="302"><?=latest("plip_last","guest", 6, 40);?></td>
</tr>
<tr>
<td colspan="2"><?=latest("plip_gallery_last","family", 5, 57, 57, 1);?>
</td>
</tr>
</table>
##### tail 부분 ########################
<!--Body End-->
<div style="clear:both; padding:0 0 0 5px;"></div>
</div id="604px">
</div id="1004px">
<div style="width:180px;float:left;background:#ffffff;text-align:;">
<div style="clear:both; padding:5px 0 0 0;"></div>
<div style="width:175px;float:left;background:#ffffff;text-align:right;">
<div style="clear:both; padding:0 0 5px 0;"></div>
<!-- 우측베너영역 a -->
<table width="175" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="http://sarang.naezip.net/banner.jpg"></td>
</tr>
</table>
<!-- 우측베너영역 z -->
<div style="clear:both; padding:0 0 5px 0;"></div>
</div id="175px">
</div id="180px">
<div style="clear:both; padding:0 0 0px 0;"> </div>
</div id="cybernet">
<?
include_once("$g4[path]/tail.sub.php");
?>
제 설명을 잘 이해 못하신 듯 한데,이런 형태로 하시구요.
이렇게 하시고도 테이블이 약간 밀린다면
<table width="100" cellpadding=0 cellspacing=0>
<col width=50%></col><col width=50%></col>
<tr>
<td>최근게시물</td>
<td>최근게시물</td>
</tr>
<tr>
<td colspan=2>최근게물</td>
</tr>
</table>
의 형태 로 하세요
도토루님 감사합니다.
말씀하신 부분을 잘못했고, 레이아웃 부분도 문제가 있었던것(?) 같습니다.
문제가 해결됐습니다. ^^
말씀하신 부분을 잘못했고, 레이아웃 부분도 문제가 있었던것(?) 같습니다.
문제가 해결됐습니다. ^^