고수님들의 지혜를 빌리고 싶습니다. 정보
고수님들의 지혜를 빌리고 싶습니다.본문
위로 올라가는 최신글을 만들고 있습니다.
* 그림있을 경우 썸네일(1개만)로 출력
* 헤치티엠엘문서는 보이는 모양대로
* 첫번화면에 꽉차게 시작
문제는 위로 흐르는 길이가 본문의 그림과 내용의 촘합이어야하는데,
첫화면부터 꽉차게 시작하는 만도님의 소스를 사용하려면 흐르는 길이를 일정하게 지정해주어야 합니다.
아래 빨간글씨가 그것입니다.
이렇게 되면 지정된 높이보다 내용이 더 길면 짤리게 되고,
그 반대면 빈공간만 하염없이 흐르게 됩니다.
질문입니다.
여기서 빨간글씨의 높이를 "본문의 그림과 내용의 촘합"으로 하려면 어떻게 해야 하는가요?
<table width="97%" height="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="100%">
<marquee align=right id="iescroller" direction="up" height="500%" scrollamount="2" scrolldelay="1" onmouseover="this.stop()" onmouseout="this.start()" >
<table height='100%' cellpadding=0 cellspacing=0 bgcolor="#FFFFFF" align="left">
<tr>
<td width=100% valign=top>
<div id="divSC0" style="valign:top; position:absolute; ;left:0; top:0px; visibility:visible;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="<?=$thumb_valign?>" width="<?=($thumb_width)?>">
<? for ($i=0; $i<count($list); $i++) { ?>
<?
echo "<a href='{$list[$i][href]}'>";
$image = urlencode($list[$i][file][0][file]);
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
$thumbsource="$g4[path]/data/file/$bo_table/" . $image;
$thumbimg="$g4[path]/data/file/$bo_table/thumb_flow" . $list[$i][wr_id].".jpg";
make_thumb($thumb_width,$thumb_height,$thumbsource,$thumbimg);
@chmod($thumbimg, 0707);
echo "<img src='$g4[path]/data/file/$bo_table/thumb_flow" . $list[$i][wr_id].".jpg' border='0'><br><br>";
}
?>
<?=nl2br(stripslashes($list[$i][wr_content]))?>
<?
}
?>
<tr>
<td width="100%">
<marquee align=right id="iescroller" direction="up" height="500%" scrollamount="2" scrolldelay="1" onmouseover="this.stop()" onmouseout="this.start()" >
<table height='100%' cellpadding=0 cellspacing=0 bgcolor="#FFFFFF" align="left">
<tr>
<td width=100% valign=top>
<div id="divSC0" style="valign:top; position:absolute; ;left:0; top:0px; visibility:visible;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="<?=$thumb_valign?>" width="<?=($thumb_width)?>">
<? for ($i=0; $i<count($list); $i++) { ?>
<?
echo "<a href='{$list[$i][href]}'>";
$image = urlencode($list[$i][file][0][file]);
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
$thumbsource="$g4[path]/data/file/$bo_table/" . $image;
$thumbimg="$g4[path]/data/file/$bo_table/thumb_flow" . $list[$i][wr_id].".jpg";
make_thumb($thumb_width,$thumb_height,$thumbsource,$thumbimg);
@chmod($thumbimg, 0707);
echo "<img src='$g4[path]/data/file/$bo_table/thumb_flow" . $list[$i][wr_id].".jpg' border='0'><br><br>";
}
?>
<?=nl2br(stripslashes($list[$i][wr_content]))?>
<?
}
?>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</marqee>
</td>
</tr>
</table>
</tr>
</table>
</div>
</td>
</tr>
</table>
</marqee>
</td>
</tr>
</table>
댓글 전체
롤로님!!
스크립트를 만들라는 말씀이신가요?
아니면 죄송하지만 직접 height=clientHieght 이런 식으로 하라는 말씀이신가요?
스크립트를 만드는 일은 에궁,,, 불가능한 일인데...
스크립트를 만들라는 말씀이신가요?
아니면 죄송하지만 직접 height=clientHieght 이런 식으로 하라는 말씀이신가요?
스크립트를 만드는 일은 에궁,,, 불가능한 일인데...