m

gbview.php 안의 그림에 링크를 걸고 싶습니다.

아래는 gbview.php 안에서 그림을 보여주는 부분입니다.
그 그림에 링크를 걸고 싶은데요,
여기서 링크를 연결해주는 ~~~~~~~~~~부분을 어떻게 해야하는지요?

---------------------------------------------
<?
if($write[wr_file1]){
$row=$write;
$file1_v= "<td valign='top' style='padding-top:25px;' width='220' align='center'><a href='~~~~~~~~~' target='_blank'><img src='./data/file/$board[bo_table]/$row[wr_file1]' width='190' height='142'></a></td>";}
for ($i=1; $i<=1; $i++) {
if ($file[$i][view]) {
echo "$file1_v"; }
}
?>
|

댓글 3개

에고 자체해결했습니다.
언어를 모르니 힘이드는군요.....
윗부분에서 링크설정을 불러주어야되더군요.
아래처럼했습니다.
돌아가긴 하는데, 고수님들 검토좀 해주세요....

---------------------------------------------------

<?
// 링크 설정한 값만큼 출력
for ($i=1; $i<=$cfg[link_count]; $i++) {
if ($link[$i][link])
?>
<?
if($write[wr_file1]){
$row=$write;
for ($i=1; $i<=1; $i++) {
if ($file[$i][view]) {
echo "<td valign='top' style='padding-top:25px;padding-bottom:15;' width='230' align='center'><a href='{$link[$i][href]}' target='$default[de_link_target]'><img src='./data/file/$board[bo_table]/$row[wr_file1]' width='200' height='150' style='border:1 solid; border-color:#485520; filter:progid:DXImageTransform.Microsoft.Shadow(color=#CDCDCD,Direction=150,Strength=3)' ></a></td>"; }
}
?>
<? }?>
<? }?>
그러게요....
요런 것은 고수님들에게는 뻔한 것일 것 같은데, 저에게는 참 힘든 일이군요....
이미지를 새창으로 띄우는거는 <a href=\"javascript:;\" onclick=\"image_window('./data/file/$bo_table/$write[wr_file1]', '400', '500');\">
이렇게 하는데요...
~~~~ 부분에 뭐가들어가는지에 따라 틀릴것 같네요...
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
眞Silver
20년 전 조회 440
20년 전 조회 380
20년 전 조회 427
20년 전 조회 497
20년 전 조회 541
20년 전 조회 922
20년 전 조회 387
20년 전 조회 762
20년 전 조회 819
20년 전 조회 451
20년 전 조회 382
20년 전 조회 460
20년 전 조회 530
20년 전 조회 413
20년 전 조회 919
20년 전 조회 826
20년 전 조회 510
20년 전 조회 309
20년 전 조회 338
20년 전 조회 530
🐛 버그신고