본문 링크 걸기 정보
본문 링크 걸기관련링크
본문
그림에서 보시는 것처럼, 신문 용도로 이현용 님의 스킨을 좀 수정해서 쓰려고 하는데 이미지와 제목을 누르면 해당 글로 이동하는데 본문 내용을 누르면 링크가 되지 않습니다.
본문 내용을 눌렀을 때도 해당 페이지로 링크하고자 하는데 어떻게 하는지 알려주세요.
(아주 간단할거 같은데....잘 모르겠네요 ^^;;)
html 도 제대로 이해 못하면서 홈피를 만들려고 합니다. 용기가 가상한 것을 봐서 좀 도와주세요. ^^
아래는 위 그림이 나오게 하는 소스 입니다.
------------------------------------------
<style type="text/css">
.com8 {color:339900;font-family:Verdana,Aria,Helvetica,sans-seri;font-size:7pt}
.com7 {color:666666;font-family:돋움;line-height:17px;font-size:9pt}
</style>
.com8 {color:339900;font-family:Verdana,Aria,Helvetica,sans-seri;font-size:7pt}
.com7 {color:666666;font-family:돋움;line-height:17px;font-size:9pt}
</style>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
$content_size="600"; //내용 보여질 글자수
$img_w="75"; //이미지 가로크기
$img_h="75"; // 이미지 세로 크기
?>
<table align=center border=0 cellpadding=0 cellspacing=0 width=100% valign="top" cellspacing="0" cellpadding="0">
<tr>
<td valign=top>
<table border=0 width=100% cellspacing=0 cellpadding=0 align=left style=table-layout:fixed>
<? for ($i=0; $i<count($list); $i++) { ?>
$content_size="600"; //내용 보여질 글자수
$img_w="75"; //이미지 가로크기
$img_h="75"; // 이미지 세로 크기
?>
<table align=center border=0 cellpadding=0 cellspacing=0 width=100% valign="top" cellspacing="0" cellpadding="0">
<tr>
<td valign=top>
<table border=0 width=100% cellspacing=0 cellpadding=0 align=left style=table-layout:fixed>
<? for ($i=0; $i<count($list); $i++) { ?>
<?
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
$view_img="<a href='{$list[$i][href]}'><img src=".$g4[path]."/data/file/".$bo_table."/".$image." width='$img_w' height='$img_h' border='0' style='padding:4px; border:#cdcdcd solid 1px;'></a>";
$a_link="<a href='{$list[$i][href]}'>{$list[$i][subject]}</a>";
$rw_content = cut_str(stripslashes($list[$i][wr_content]),$content_size,' ..more');
$rw_content = strip_tags($rw_content);
} else {
$view_img=$latest_skin_path."/img/noimage.gif' width='75' height='75' border='0' style='padding:4px; border:#cdcdcd solid 1px;'></a>";
$a_link="<a href='{$list[$i][href]}'>{$list[$i][subject]}</a>";
$rw_content = cut_str(stripslashes($list[$i][wr_content]),$content_size,' ..more');
$rw_content = strip_tags($rw_content);
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
$view_img="<a href='{$list[$i][href]}'><img src=".$g4[path]."/data/file/".$bo_table."/".$image." width='$img_w' height='$img_h' border='0' style='padding:4px; border:#cdcdcd solid 1px;'></a>";
$a_link="<a href='{$list[$i][href]}'>{$list[$i][subject]}</a>";
$rw_content = cut_str(stripslashes($list[$i][wr_content]),$content_size,' ..more');
$rw_content = strip_tags($rw_content);
} else {
$view_img=$latest_skin_path."/img/noimage.gif' width='75' height='75' border='0' style='padding:4px; border:#cdcdcd solid 1px;'></a>";
$a_link="<a href='{$list[$i][href]}'>{$list[$i][subject]}</a>";
$rw_content = cut_str(stripslashes($list[$i][wr_content]),$content_size,' ..more');
$rw_content = strip_tags($rw_content);
}
?>
<tr>
<td rowspan=2 height="75" width="80"><?=$view_img?></td>
<td height="15"><b><?=$a_link?></b></td>
</tr>
<tr align=left valign="top">
<td valign=top cellspacing="0" cellpadding="0">
<span class="com7"><?=$rw_content?></span> <span class="com8"><?=$list[$i][datetime]?></span></td>
</tr>
<tr>
<td colspan=2 height="1" width="290"></td>
</tr>
<tr>
<td colspan=2 height=1 width=100%></td>
</tr>
<? } ?>
</table>
</td>
</tr>
</table>
?>
<tr>
<td rowspan=2 height="75" width="80"><?=$view_img?></td>
<td height="15"><b><?=$a_link?></b></td>
</tr>
<tr align=left valign="top">
<td valign=top cellspacing="0" cellpadding="0">
<span class="com7"><?=$rw_content?></span> <span class="com8"><?=$list[$i][datetime]?></span></td>
</tr>
<tr>
<td colspan=2 height="1" width="290"></td>
</tr>
<tr>
<td colspan=2 height=1 width=100%></td>
</tr>
<? } ?>
</table>
</td>
</tr>
</table>
댓글 전체
<span class="com7"><?=$rw_content?></span> <span class="com8"><?=$list[$i][datetime]?></span></td>
이 부분을 아래와 같이 수정해주세요
<span class="com7"><a href='<?=$list[$i][href]?>'><?=$rw_content?></a></span> <span class="com8"><?=$list[$i][datetime]?></span></td>
이 부분을 아래와 같이 수정해주세요
<span class="com7"><a href='<?=$list[$i][href]?>'><?=$rw_content?></a></span> <span class="com8"><?=$list[$i][datetime]?></span></td>
아...거기였군요...거긴 생각도 못 했는데...
감사합니다. ^^
감사합니다. ^^