테스트 사이트 - 개발 중인 베타 버전입니다

정해진 크기로 링크 새창열기 어떻게 해야 하나요?

· 12년 전 · 1724 · 3
아래 소스에서 이미지부분 클릭시 원하는 크기로 링크 새창 열기를 하고 싶으데 어떻게 수정을 해야 하나요?
초보인 저로서는 어렵네요`~
부탁드립니다..

<?
for ($i=0; $i<count($list); $i++) {


if($list[$i][wr_link1]){
$href = $list[$i][wr_link1];
$target = "_blank";
}else{
$href = $list[$i][href];
$target = "_self";
}

if ($i && $i%$mod==0)
echo "</tr><tr>";

$style = "";
$subject = "<span $style>{$list[$i][subject]}</span>";

$comment_cnt = "";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:10px;'><font face='Tahoma' color='#EE5A00'>{$list[$i][comment_cnt]}</span></a>";

$list[$i][name] = preg_replace("/<img /", "<img style='display:none;' ", $list[$i][name]);
$list[$i][name] = preg_replace("/> <span/", "><span", $list[$i][name]);
$list[$i][name] = preg_replace("/class='member'/", "", $list[$i][name]);

echo "<td width='{$td_width}%' valign=top style='word-break:break-all; padding:0px;'>";
echo "<table align=center>";
echo "<tr><td height=15></td></tr>";

echo "<tr><td align=center><div style='float:left; border:1px solid #ccc; background:#fff; padding:4px; font-size:0; line-height:0;'><a href='{$href}' target='{$target}'>".makeThumbs($g4[path]."/data/file/$bo_table", $list[$i][file][0][file], $board[bo_1], $board[bo_2], cut_str($list[$i][subject],20))."</a></div></td></tr>";
//echo "<tr><td align=center style='font-size:11px; color:#888;'>Date.".$list[$i][datetime2]." / Hit.".$list[$i][wr_hit]."</td></tr>";
echo "<tr><td align=center class=lh>";
if ($is_category) echo "<a href='{$list[$i][ca_name_href]}'>[{$list[$i][ca_name]}]</a> ";
echo "<a href='{$list[$i][href]}'>$subject</a><span class='comment'>{$comment_cnt}</span>";
//echo " " . $list[$i][icon_new];
//echo " " . $list[$i][icon_file];
//echo " " . $list[$i][icon_link];
//echo " " . $list[$i][icon_hot];
//echo " " . $list[$i][icon_secret];
echo "</td></tr>";
if ($is_checkbox) echo "<tr><td align=center><input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'></td></tr>";
echo "</table></td>\n";
}

// 나머지 td
$cnt = $i%$mod;
if ($cnt)
for ($i=$cnt; $i<$mod; $i++)
echo "<td width='{$td_width}%'>&nbsp;</td>";
?>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 3개

사이트 상에서 어떤 부분인지도 같이 설명이 있으면 좋을 것 같습니다.
현재 내용만으로는 어떤 부분을 클릭한다는 설명인지 파악이 잘 안되네요.
북마크 스킨 입니다. 이미지를 클릭하면 새창으로 북마크된 사이트가 오픈되는 스킨인데요 저는 새창 크기를 작게 맞출려고 합니다.

http://leaders9.com/g4/bbs/board.php?bo_table=nine_bookmark
12년 전
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=229470 참고

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440