각각에 이미지클릭시 원하는 페이지 이동하고 싶은데요~

각각에 이미지클릭시 원하는 페이지 이동하고 싶은데요~

QA

각각에 이미지클릭시 원하는 페이지 이동하고 싶은데요~

답변 1

본문

 <?
            echo $list[$i]['icon_reply'] . " ";
            //최근게시글 링크이동하기 echo "<a href='{$list[$i]['href']}'>";
            if ($list[$i]['is_notice'])
                echo "<font style='font-family: 돋움, Dotum, AppleGothic, sans-serif; font-size:9pt; color: rgb(86, 89, 92);'>
    <img src=\"{$latest_skin_path}/img/icon_notice.png\" border=0 align=absmiddle>
    {$list[$i]['subject']}</font>";
            else
                echo "<font style='font-family: 돋움, Dotum, AppleGothic, sans-serif; font-size:9pt; color: rgb(86, 89, 92);'><img src=\"{$latest_skin_path}/img/icon_upgrade.png\" border=0 align=absmiddle> {$list[$i]['subject']}</font>";
            echo "</a>";

            if ($list[$i]['comment_cnt'])
                echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";

            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

            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'];
            ?>

 

위 소스에서

  <img src=\"{$latest_skin_path}/img/icon_notice.png\" border=0 align=absmiddle>

<img src=\"{$latest_skin_path}/img/icon_upgrade.png\" border=0 align=absmiddle>

 

위 각각 이미지에 클릭시 원하는 페이지로 이동하는 소스를 만들고 싶은데요..

방법을 모르겠네요..

 

아시는 분들 좀 알려주세요~

 

 

 

 

 

 

 

 

이 질문에 댓글 쓰기 :

답변 1

아래와 같은 형태로 변경해주세요.

<a href="javascript:location.replace('이동페이지주소');"><img src=\"{$latest_skin_path}/img/icon_notice.png\" border=0 align=absmiddle></a>

 

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
  • 질문이 없습니다.
전체 0
© SIRSOFT
현재 페이지 제일 처음으로