최신글 링크 타겟 설정 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최신글 링크 타겟 설정 정보

최신글 링크 타겟 설정

본문

안녕하세요.
또 문의사항이 있어서요..
 
제목에서와 같이 메인 화면에 아이프레임으로 최신글을 삽입했습니다.
헌데 more버튼은 타겟지정이 가능한데
글목록을 클릭하면 그자리에서 보여지네요.
혹시 타겟 지정가능할까요?
 
메인 경로는
이며,
최신글 해당 소스도 첨부합니다.
 
미안하지만 꼭 좀 부탁드릴께요...^^
 
-------------원본소스--------
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=480 cellpadding=0 cellspacing=0>
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<tr>
    <td width="386">    <img src="<?=$latest_skin_path?>/img/title.gif"></td>
    <td width="32"><a href="http://seootelecom.co.kr/betaweb/cyber2_1.php" target="_top" onfocus=this.blur();><img src="<?=$latest_skin_path?>/img/more.gif" border="0"></a></td>
  </tr>
<tr>
  <td colspan="2" background="<?=$latest_skin_path?>/img/bar1.gif" height=10></td>
  </tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
    <td colspan=2 align=right>
        <table width="95%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="<?=$latest_skin_path?>/img/arrow1.gif" width=20 height=20>
            <?
            echo $list[$i][icon_reply] . " ";
            echo "<a href='{$list[$i][href]}'>";
            if ($list[$i][is_notice])
                echo "<font style='font-family:돋움; text-decoration: none; font-size:9pt; color:#2C88B9;'><strong>{$list[$i][subject]}</strong></font>";
            else
                echo "<font style='font-family:돋움; font-size:9pt; text-decoration: none; color:#6A6A6A;'>{$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];
            ?></td>
          </tr>
          <tr>
            <td background="<?=$latest_skin_path?>/img/line_bg.gif" width="95" height="1"></td>
          </tr>
        </table>    </td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=2 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>

댓글 전체

<td><img src="<?=$latest_skin_path?>/img/arrow1.gif" width=20 height=20>
            <?
            echo $list[$i][icon_reply] . " ";
            echo "<a href='{$list[$i][href]}'>";
            if ($list[$i][is_notice])
                echo "<font style='font-family:돋움; text-decoration: none; font-size:9pt; color:#2C88B9;'><strong>{$list[$i][subject]}</strong></font>";


==>위에서

      echo "<a href='{$list[$i][href]}'>";

 다음으로 수정해 보세요.

    echo "<a href='{$list[$i][href]}' target=_blank>";
답변 고맙습니다.
헌데 새로운 창이 띄워질께 아니고

http://seootelecom.co.kr/betaweb/cyber1_1.php로 링크를 걸어주고 싶은데 그렇게 하려면 어떻게 해야하죠?

다시한번 답변 부탁드릴께요.

고맙습니다.
> 링크를 걸어주고 싶은데

재질문이라는 상황과 '링크를 걸어준다'는 의도는,
'rolo'님의 답변처럼 새창을 띄우는 것이 아니라,
현재의 웹페이지(주소)를 직접 이동시키는 것을 지칭합니다.
질문자의 의도가 이러한 것이 맞나요?
의도와는 전혀 다른 의미가 되었을지는 몰라도,
최소한 재질문의 내용은 상단과 동일합니다.

[답]
질문내용에 게재되어 있는,
원본소스의 내용을 그대로 사용하면 됩니다.
단, target은 다음을 사용
target='_parent' 또는 target='_top'
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT