<?
unset($roll_text);
for ($i=0; $i<count($list); $i++) {
$http = explode("://", $list[$i][wr_link1]);
if (($http[0] != "http") && ($http[0] != "ftp")) {
$link_01 = "http://" . $list[$i][wr_link1];
}else{
$link_01 = $list[$i][wr_link1];
}
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$img = "<img src=\"$latest_skin_path/img/noimage.gif\" border=0 heigth=\"$img_height\" width=\"$img_width\" title=\"이미지 없음\">";
$file = $list[$i][file][0][path] ."/". $list[$i][file][0][file];
if($file){
$img = "<a href=\"{$four04}\" target=\"_blank\"><img src=\"$file\" style=\"border:1px solid #efefef;margin-right:".$margin_right."px;\" border=0 height=\"$img_height\" width=\"$img_width\"></a>";
$subject = cut_str($list[$i][wr_subject], 20, '..');
$k = (int)($i / $td_mod);
$roll_text[$k] .= "<table width=100% cellpadding=0 cellspacing=0 border=0 ><tr><td height=45 style=\"border-bottom:1px solid #f2f2f2;padding:2px 0 3px 0;\">";
$roll_text[$k] .= "{$img}";
$roll_text[$k] .= "</td><td height=45 style=\"border-bottom:1px solid #f2f2f2;width:160px; line-height:15px; padding:2px 0 3px 0;\" valign=\"center\"><div class=\"title\">{$subject}</div><br><div class=\"title1\"><b>{$list[$i][wr_1]}</b></div><br><div class=\"title2\">{$list[$i][wr_2]}원</div></td></tr>";
$roll_text[$k] .= "</table>";
}
}
for ($i=0; $i<=$k; $i++) {
echo "roll_text_{$uni}[$i] = '{$roll_text[$i]}';\n";
}
?>
스크롤 최근게시물입니다....그런데 이미지 클릭시 새창으로 뜨고 연결이 안되고
겔러리 최근스킨처럼 이미지 클릭시 본문글로 이동하게 소스 수정좀 부탁해요...
정말 어렵네요...
unset($roll_text);
for ($i=0; $i<count($list); $i++) {
$http = explode("://", $list[$i][wr_link1]);
if (($http[0] != "http") && ($http[0] != "ftp")) {
$link_01 = "http://" . $list[$i][wr_link1];
}else{
$link_01 = $list[$i][wr_link1];
}
$p_four = explode("|",$list[$i][wr_4]);
$four01 = $p_four[0];
$four02 = $p_four[1];
$four03 = $p_four[2];
$four04 = $p_four[3];
$img = "<img src=\"$latest_skin_path/img/noimage.gif\" border=0 heigth=\"$img_height\" width=\"$img_width\" title=\"이미지 없음\">";
$file = $list[$i][file][0][path] ."/". $list[$i][file][0][file];
if($file){
$img = "<a href=\"{$four04}\" target=\"_blank\"><img src=\"$file\" style=\"border:1px solid #efefef;margin-right:".$margin_right."px;\" border=0 height=\"$img_height\" width=\"$img_width\"></a>";
$subject = cut_str($list[$i][wr_subject], 20, '..');
$k = (int)($i / $td_mod);
$roll_text[$k] .= "<table width=100% cellpadding=0 cellspacing=0 border=0 ><tr><td height=45 style=\"border-bottom:1px solid #f2f2f2;padding:2px 0 3px 0;\">";
$roll_text[$k] .= "{$img}";
$roll_text[$k] .= "</td><td height=45 style=\"border-bottom:1px solid #f2f2f2;width:160px; line-height:15px; padding:2px 0 3px 0;\" valign=\"center\"><div class=\"title\">{$subject}</div><br><div class=\"title1\"><b>{$list[$i][wr_1]}</b></div><br><div class=\"title2\">{$list[$i][wr_2]}원</div></td></tr>";
$roll_text[$k] .= "</table>";
}
}
for ($i=0; $i<=$k; $i++) {
echo "roll_text_{$uni}[$i] = '{$roll_text[$i]}';\n";
}
?>
스크롤 최근게시물입니다....그런데 이미지 클릭시 새창으로 뜨고 연결이 안되고
겔러리 최근스킨처럼 이미지 클릭시 본문글로 이동하게 소스 수정좀 부탁해요...
정말 어렵네요...
댓글 4개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기