안녕하세요
이곳 고수님들께 많이 배워서 이제 질문 없이 잘 진행해가고 있는데요
거의 마무리 되던차 요게 막혀서 문의 좀 드릴게요
빨간 부분을 보시면 최신글이 너무 붙어서 출력이 되는데요
이걸 아래부분의 빨간 부분처럼 여분의 공간을 주구선 출력하고 싶습니다.
스킨의 laters 파일 올려 봅니다 조언 좀 부탁 드리겠습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$latest_width = "350"; //탭메뉴 폭과 같게
?>
<style>
.la_he { font-size:12px; color:#868585; line-height:180%;}
.la_he a:link, a:visited, a:active { text-decoration:none; color:#000000; }
.la_he a:hover { text-decoration:none; color:#4b4b4b; }
</style>
<table width="<?=$latest_width?>" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="3"></td>
</tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td class="la_he">
<?
$subject = "<span>".cut_str($list[$i][subject],100)."</span>"; //제목 글자수 자르기
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}' onfocus='this.blur()'>{$subject}</a>";
?>
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td align="center" height="50"><font color="#868585">게시물이 없습니다.</font></td></tr><? } ?>
</tr>
</table>
----------------------------------------------------------여기까지가 laters 파일이구요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$tab_img = "{$g4[path]}/skin/latest/img_tab/tab_img"; //이미지 경로
$tab_bo1 = "011"; //공지사항
$tab_bo2 = "022"; //무료나눔
$tab_bo3 = "016"; //이벤트
?>
<script language="javascript">
function tab_img_change(t){
for(var i = 1; i <= 3; i++) {
img = document.getElementById('tab_bar'+i);
img.src = "<?=$tab_img?>/tab"+i+"_off.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="none";
if ( t == i ) {
img.src = "<?=$tab_img?>/tab"+i+"_on.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="";
}
}
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background:url('<?=$tab_img?>/tabbar_bg.gif') top repeat-x;">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo1?>"><img id="tab_bar1" style="cursor:pointer;" onMouseOver="tab_img_change(1)" src="<?=$tab_img?>/tab1_on.gif" width="120" height="24" border="0"></a></td>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo2?>"><img id="tab_bar2" style="cursor:pointer;" onMouseOver="tab_img_change(2)" src="<?=$tab_img?>/tab2_off.gif" width="120" height="24" border="0"></a></td>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo3?>"><img id="tab_bar3" style="cursor:pointer;" onMouseOver="tab_img_change(3)" src="<?=$tab_img?>/tab3_off.gif" width="120" height="24" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div id="tab_view1"><?=latest('img_tab',$tab_bo1, 7, 55);?></div>
<div id="tab_view2" style="display: none"><?=latest('img_tab',$tab_bo2, 7, 55);?></div>
<div id="tab_view3" style="display: none"><?=latest('img_tab',$tab_bo3, 7, 55);?></div>
</td>
</tr>
</table>
------------------------------------------------------ 여기까지가 main.tap.php 파일입니다
이곳 고수님들께 많이 배워서 이제 질문 없이 잘 진행해가고 있는데요
거의 마무리 되던차 요게 막혀서 문의 좀 드릴게요
빨간 부분을 보시면 최신글이 너무 붙어서 출력이 되는데요
이걸 아래부분의 빨간 부분처럼 여분의 공간을 주구선 출력하고 싶습니다.
스킨의 laters 파일 올려 봅니다 조언 좀 부탁 드리겠습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$latest_width = "350"; //탭메뉴 폭과 같게
?>
<style>
.la_he { font-size:12px; color:#868585; line-height:180%;}
.la_he a:link, a:visited, a:active { text-decoration:none; color:#000000; }
.la_he a:hover { text-decoration:none; color:#4b4b4b; }
</style>
<table width="<?=$latest_width?>" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="3"></td>
</tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td class="la_he">
<?
$subject = "<span>".cut_str($list[$i][subject],100)."</span>"; //제목 글자수 자르기
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}' onfocus='this.blur()'>{$subject}</a>";
?>
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td align="center" height="50"><font color="#868585">게시물이 없습니다.</font></td></tr><? } ?>
</tr>
</table>
----------------------------------------------------------여기까지가 laters 파일이구요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$tab_img = "{$g4[path]}/skin/latest/img_tab/tab_img"; //이미지 경로
$tab_bo1 = "011"; //공지사항
$tab_bo2 = "022"; //무료나눔
$tab_bo3 = "016"; //이벤트
?>
<script language="javascript">
function tab_img_change(t){
for(var i = 1; i <= 3; i++) {
img = document.getElementById('tab_bar'+i);
img.src = "<?=$tab_img?>/tab"+i+"_off.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="none";
if ( t == i ) {
img.src = "<?=$tab_img?>/tab"+i+"_on.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="";
}
}
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background:url('<?=$tab_img?>/tabbar_bg.gif') top repeat-x;">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo1?>"><img id="tab_bar1" style="cursor:pointer;" onMouseOver="tab_img_change(1)" src="<?=$tab_img?>/tab1_on.gif" width="120" height="24" border="0"></a></td>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo2?>"><img id="tab_bar2" style="cursor:pointer;" onMouseOver="tab_img_change(2)" src="<?=$tab_img?>/tab2_off.gif" width="120" height="24" border="0"></a></td>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo3?>"><img id="tab_bar3" style="cursor:pointer;" onMouseOver="tab_img_change(3)" src="<?=$tab_img?>/tab3_off.gif" width="120" height="24" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div id="tab_view1"><?=latest('img_tab',$tab_bo1, 7, 55);?></div>
<div id="tab_view2" style="display: none"><?=latest('img_tab',$tab_bo2, 7, 55);?></div>
<div id="tab_view3" style="display: none"><?=latest('img_tab',$tab_bo3, 7, 55);?></div>
</td>
</tr>
</table>
------------------------------------------------------ 여기까지가 main.tap.php 파일입니다
댓글 4개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기