제목이 나오게 부탁드려요.... > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

제목이 나오게 부탁드려요.... 정보

제목이 나오게 부탁드려요....

본문

아래와 같은 리스트 스킨을 쓰고 있는데요...
제목을 나오게 하려면 어떻게 해야 하나요?

꼭좀 부탁드려요^^

<?php

function image($image, $width, $height, $path)
{
global $board_skin_path;
if(is_file($image) == true) $link = "onclick=\"location.href='{$path}';\"";
else $link = null;
if(is_file($image) == true) $return = "<img src=\"{$image}\" onmouseover=\"image(this.src);\" style=\"width:{$width}px; height:{$height}px; cursor:pointer;\" {$link}>";
else $return = "<img src=\"{$board_skin_path}/images/null.jpg\" onmouseover=\"image(this.src);\" style=\"width:{$width}px; height:{$height}px; cursor:pointer;\" {$link}>";
return $return;
}

?>
<div style="height:5px; line-height:1px; font-size:1px;">&nbsp;</div>
<table width="1130" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="902" align="center" valign="top">
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#9c9c9c">
<tr><td width="712" bgcolor="#ffffff"><img id="image" src="<?php echo $board_skin_path; ?>/img/null.jpg" style="width:950px; height:580px; filter:blendTrans(duration=0.5);" /></td>
</tr>
</table></td>
<td width="258" align="right" valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<?php
foreach($list as $key => $row)
{
if($key > 0 && $key % 1 == 0) echo '</tr><tr><td height="7" colspan="4"></td></tr><tr>';
echo '<td width="10"></td>';
echo '<td style="border:1px solid #9c9c9c;">';
echo image("{$row['file']['0']['path']}/{$row['file']['0']['file']}", 130, 100, $row['href']);
echo '</td>';
}
?>
</tr>
<tr><td height="5"  colspan="4" align="center"></td>
</tr>
<tr><td align="center" class="small" colspan="4"><?php echo $write_pages; ?></td></tr>
</table></td>
</tr>
<?php if($member[mb_level] >= 10) { ?>
<tr>
  <td colspan="2" align="right" valign="top"><table width="730" border="0" align="center" cellpadding="0" cellspacing="0">

    <tr>
      <td><div style="float:right;">
        <? if ($write_href) { ?>
        <a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border=0 /></a>
        <? } ?>
        <? if ($admin_href) { ?>
        <a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/btn_admin.gif" border='0' title="관리자" align="absmiddle" /></a>
        <?}?>
      </div></td>
    </tr>
  </table></td>
  </tr>
<?php } ?>
</table>
<script type="text/javascript">
function image(path)
{
var object = document.getElementById('image');
object.filters.blendTrans.stop();
object.filters.blendTrans.Apply();
object.src = path;
object.filters.blendTrans.Play();
return;
}
image('<?php echo "{$list['0']['file']['0']['path']}/{$list['0']['file']['0']['file']}"; ?>');
</script>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로