게시판 길이 늘어나게 하는 방법좀.. 정보
게시판 길이 늘어나게 하는 방법좀..본문
오류 주소 : http://www.tlmkr.com/sub07.php
그림과 같이 게시판이 글이 늘어나면서 게시판도 같이 늘어나게 하고싶은데,.
고수님들.. 어떻게 해야 되죠??
<?
$g4_path="./gnuboard4";
include_once("./gnuboard4/common.php");
include_once("./gnuboard4/head.sub.php");
include_once("./gnuboard4/lib/outlogin.lib.php");
include_once("./gnuboard4/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">
<html>
<head>
<title>sub0700_2</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
background-image: url(images/bgimage.jpg);
}
.tr43 {
font-size: 12px;
line-height: 20px;
color: #800000;
}
</style>
</head>
<body bgcolor="#FFFFFF">
<?
$path="./head";
include_once("./head.php");
?>
<!-- ImageReady Slices (sub0700_2.jpg) -->
<table width="965" height="849" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td colspan="7"><object id="FlashID9" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="965" height="150">
<param name="movie" value="flash/subflash99.fla.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flash/subflash99.fla.swf" width="965" height="150">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object></td>
</tr>
<tr>
<td rowspan="7">
<img src="images/sub07_02.gif" width="13" height="699" alt=""></td>
<td colspan="3">
<img src="images/sub07_03.gif" width="220" height="24" alt=""></td>
<td rowspan="7">
<img src="images/sub07_04.gif" width="22" height="699" alt=""></td>
<td>
<img src="images/sub07_05.gif" width="687" height="24" alt=""></td>
<td rowspan="7">
<img src="images/sub07_06.gif" width="23" height="699" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/sub07_07.gif" width="220" height="50" alt=""></td>
<td>
<img src="images/sub07_08.gif" width="687" height="50" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/sub07_09.gif" width="220" height="16" alt=""></td>
<td rowspan="4"><table id="Table_2" width="687" height="603" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="3"><img src="images/sub07middle_01.gif" width="16" height="603" alt="" /></td>
<td><img src="images/sub07middle_02.gif" width="655" height="17" alt="" /></td>
<td rowspan="3"><img src="images/sub07middle_03.gif" width="16" height="603" alt="" /></td>
</tr>
<tr>
<td width="655" height="570" bgcolor="#FFFFFF"><iframe id=homeviewframe name=myframe marginWidth=0 marginHeight=0 src="http://www.tlmkr.com/gnuboard4/bbs/board.php?bo_table=notice" width="100%" height="100%" scrolling="no" onload=doResize() overflow:hidden frameborder="0" topmargin="0"></iframe></td>
</tr>
<tr>
<td><img src="images/sub07middle_05.gif" width="655" height="16" alt="" /></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<img src="images/sub07_11.gif" width="10" height="54" alt=""></td>
<td width="147" height="54" bgcolor="#FFFFFF"><table id="Table_" width="147" height="54" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/sub07_submenu_01.gif" width="14" height="28" alt="" /></td>
<td width="133" height="28"><table width="133" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="http://www.tlmkr.com/sub07.php" class="tr43">공지사항</a></td>
</tr>
<tr>
<td><img src="images/sub01_sub_line.gif" width="133" height="1" alt="" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/sub07_submenu_03.gif" width="14" height="26" alt="" /></td>
<td height="26"><table width="133" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="http://www.tlmkr.com/sub07_02.php" class="tr43">자유게시판</a></td>
</tr>
<tr>
<td><img src="images/sub01_sub_line.gif" width="133" height="1" alt="" /></td>
</tr>
</table></td>
</tr>
</table></td>
<td>
<img src="images/sub07_13.gif" width="63" height="54" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/sub07_14.gif" width="220" height="65" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/sub07_15.gif" width="220" height="468" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/sub07_16.gif" width="220" height="22" alt=""></td>
<td>
<img src="images/sub07_17.gif" width="687" height="22" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
<?
$path="./foot";
include_once("./foot.php");
?>
<script type="text/javascript">
swfobject.registerObject("FlashID9");
</script>
</body>
</html>
그림과 같이 게시판이 글이 늘어나면서 게시판도 같이 늘어나게 하고싶은데,.
고수님들.. 어떻게 해야 되죠??
<?
$g4_path="./gnuboard4";
include_once("./gnuboard4/common.php");
include_once("./gnuboard4/head.sub.php");
include_once("./gnuboard4/lib/outlogin.lib.php");
include_once("./gnuboard4/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">
<html>
<head>
<title>sub0700_2</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
background-image: url(images/bgimage.jpg);
}
.tr43 {
font-size: 12px;
line-height: 20px;
color: #800000;
}
</style>
</head>
<body bgcolor="#FFFFFF">
<?
$path="./head";
include_once("./head.php");
?>
<!-- ImageReady Slices (sub0700_2.jpg) -->
<table width="965" height="849" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td colspan="7"><object id="FlashID9" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="965" height="150">
<param name="movie" value="flash/subflash99.fla.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flash/subflash99.fla.swf" width="965" height="150">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object></td>
</tr>
<tr>
<td rowspan="7">
<img src="images/sub07_02.gif" width="13" height="699" alt=""></td>
<td colspan="3">
<img src="images/sub07_03.gif" width="220" height="24" alt=""></td>
<td rowspan="7">
<img src="images/sub07_04.gif" width="22" height="699" alt=""></td>
<td>
<img src="images/sub07_05.gif" width="687" height="24" alt=""></td>
<td rowspan="7">
<img src="images/sub07_06.gif" width="23" height="699" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/sub07_07.gif" width="220" height="50" alt=""></td>
<td>
<img src="images/sub07_08.gif" width="687" height="50" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/sub07_09.gif" width="220" height="16" alt=""></td>
<td rowspan="4"><table id="Table_2" width="687" height="603" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="3"><img src="images/sub07middle_01.gif" width="16" height="603" alt="" /></td>
<td><img src="images/sub07middle_02.gif" width="655" height="17" alt="" /></td>
<td rowspan="3"><img src="images/sub07middle_03.gif" width="16" height="603" alt="" /></td>
</tr>
<tr>
<td width="655" height="570" bgcolor="#FFFFFF"><iframe id=homeviewframe name=myframe marginWidth=0 marginHeight=0 src="http://www.tlmkr.com/gnuboard4/bbs/board.php?bo_table=notice" width="100%" height="100%" scrolling="no" onload=doResize() overflow:hidden frameborder="0" topmargin="0"></iframe></td>
</tr>
<tr>
<td><img src="images/sub07middle_05.gif" width="655" height="16" alt="" /></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<img src="images/sub07_11.gif" width="10" height="54" alt=""></td>
<td width="147" height="54" bgcolor="#FFFFFF"><table id="Table_" width="147" height="54" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/sub07_submenu_01.gif" width="14" height="28" alt="" /></td>
<td width="133" height="28"><table width="133" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="http://www.tlmkr.com/sub07.php" class="tr43">공지사항</a></td>
</tr>
<tr>
<td><img src="images/sub01_sub_line.gif" width="133" height="1" alt="" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/sub07_submenu_03.gif" width="14" height="26" alt="" /></td>
<td height="26"><table width="133" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="http://www.tlmkr.com/sub07_02.php" class="tr43">자유게시판</a></td>
</tr>
<tr>
<td><img src="images/sub01_sub_line.gif" width="133" height="1" alt="" /></td>
</tr>
</table></td>
</tr>
</table></td>
<td>
<img src="images/sub07_13.gif" width="63" height="54" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/sub07_14.gif" width="220" height="65" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/sub07_15.gif" width="220" height="468" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="images/sub07_16.gif" width="220" height="22" alt=""></td>
<td>
<img src="images/sub07_17.gif" width="687" height="22" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
<?
$path="./foot";
include_once("./foot.php");
?>
<script type="text/javascript">
swfobject.registerObject("FlashID9");
</script>
</body>
</html>
댓글 전체
소스중
<td width="655" height="570" bgcolor="#FFFFFF"><iframe id=homeviewframe name=myframe marginWidth=0 marginHeight=0 src="http://www.tlmkr.com/gnuboard4/bbs/board.php?bo_table=notice" width="100%" height="100%" scrolling="no" onload=doResize() overflow:hidden frameborder="0" topmargin="0"></iframe></td>
이부분에서 높이값이 정해져있네요
height="570"을 삭제를 하시고, 아이프레임 소스가 높이값에 따라 가변적으로 변하는 소스인 것 같은데 제대로 작동한다면 overflow:hidden이 문제가 될수도 있어 보이네요.
먼저 높이값 삭제 후 테스트 해보시고 먹히지 않으면 overflow:hidden도 지워보세요.
<td width="655" height="570" bgcolor="#FFFFFF"><iframe id=homeviewframe name=myframe marginWidth=0 marginHeight=0 src="http://www.tlmkr.com/gnuboard4/bbs/board.php?bo_table=notice" width="100%" height="100%" scrolling="no" onload=doResize() overflow:hidden frameborder="0" topmargin="0"></iframe></td>
이부분에서 높이값이 정해져있네요
height="570"을 삭제를 하시고, 아이프레임 소스가 높이값에 따라 가변적으로 변하는 소스인 것 같은데 제대로 작동한다면 overflow:hidden이 문제가 될수도 있어 보이네요.
먼저 높이값 삭제 후 테스트 해보시고 먹히지 않으면 overflow:hidden도 지워보세요.
말씀대로 해봤는데, 잘 안돼네요..ㅜㅜ
doResize() 라고해서 유동적으로 iframe이 조절되는 코드를 사용하신것같은데
doResize() 에 해당하는 자바스크립트가 없는것같네요
이부분 확인해보세요
참고로 iframe 사용안하시고 일반적인 그누보드 설치방법으로 사용하시는걸 권장해드립니다
doResize() 에 해당하는 자바스크립트가 없는것같네요
이부분 확인해보세요
참고로 iframe 사용안하시고 일반적인 그누보드 설치방법으로 사용하시는걸 권장해드립니다
일반적인 그누보드 설치방법이 어떻게 돼죠? 쵸보라서...
해결이 아직 안되셨나보네요.
아웃존님 말씀처럼 아이프레임 소스에 자바스크립트가 없어서 생기는 문제인듯하네요.
제가 주로 사용하는 소스인데 적용해보세요.
<td width="655" bgcolor="#FFFFFF">
<iframe id="embeded-content" width="100%" src="http://www.tlmkr.com/gnuboard4/bbs/board.php?bo_table=notice" marginwidth="0" marginheight="0" frameborder="0" ></iframe>
<script type="text/javascript">
function resize_frame(id) {
var frm = document.getElementById("embeded-content");
function resize() {
frm.style.height = "auto"; // set default height for Opera
contentHeight = frm.contentWindow.document.body.scrollHeight;
frm.style.height = contentHeight + 23 + "px"; // 23px for IE7
}
if (frm.addEventListener) {
frm.addEventListener('load', resize, false);
} else {
frm.attachEvent('onload', resize);
}
}
resize_frame('embeded-content');
</script>
</td>
그리고 일반적인 설치는 헤더와 푸터를 나누어서 적용을 시키면 아이프레임없이 가능한데, 홈페이지에 헤더와 푸터 부분이 분리가 되어있다면 게시판 생성시 상단파일, 하단파일에 분리한 파일을 불러오시면 됩니다.
아웃존님 말씀처럼 아이프레임 소스에 자바스크립트가 없어서 생기는 문제인듯하네요.
제가 주로 사용하는 소스인데 적용해보세요.
<td width="655" bgcolor="#FFFFFF">
<iframe id="embeded-content" width="100%" src="http://www.tlmkr.com/gnuboard4/bbs/board.php?bo_table=notice" marginwidth="0" marginheight="0" frameborder="0" ></iframe>
<script type="text/javascript">
function resize_frame(id) {
var frm = document.getElementById("embeded-content");
function resize() {
frm.style.height = "auto"; // set default height for Opera
contentHeight = frm.contentWindow.document.body.scrollHeight;
frm.style.height = contentHeight + 23 + "px"; // 23px for IE7
}
if (frm.addEventListener) {
frm.addEventListener('load', resize, false);
} else {
frm.attachEvent('onload', resize);
}
}
resize_frame('embeded-content');
</script>
</td>
그리고 일반적인 설치는 헤더와 푸터를 나누어서 적용을 시키면 아이프레임없이 가능한데, 홈페이지에 헤더와 푸터 부분이 분리가 되어있다면 게시판 생성시 상단파일, 하단파일에 분리한 파일을 불러오시면 됩니다.
답변 감사합니다.^^ 말씀하신 대로 하니 게시판길이가 늘어 납니다. 그런데, 옆에 서브메뉴부분이 분리가 되서 쪼개지는 데,. 이거 어떻게 해야 돼죠??
=> http://www.tlmkr.com/sub07.php
서브메뉴부분을 어떻게 해야 될지 감이 안오는데,.테이블을 다시 짜야 되는지요..??그리고 궁금한 점이 있는데,.게시판 주변에 만든 테두리도 같이 늘었다 줄었다 했으면 하는데, 이건 어떻게 하는지..
=> http://www.tlmkr.com/sub07.php
서브메뉴부분을 어떻게 해야 될지 감이 안오는데,.테이블을 다시 짜야 되는지요..??그리고 궁금한 점이 있는데,.게시판 주변에 만든 테두리도 같이 늘었다 줄었다 했으면 하는데, 이건 어떻게 하는지..