최근게시물 제목클릭시 타겟을 지정해야합니다. > 그누4 질문답변

그누4 질문답변

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

최근게시물 제목클릭시 타겟을 지정해야합니다. 정보

최근게시물 제목클릭시 타겟을 지정해야합니다.

본문

아래소스는 최근게시물 제목이 출력되는 소스입니다 제목클릭시 타겟을 지정해야합니다.
타겟명은 dada 입니다
아래의 소스 어디에 target="dada" 를 삽입해야 할런지요
<?
            echo $list[$i][icon_reply] . " ";
            echo "<a href='{$list[$i][href]}'>";
            if ($list[$i][is_notice])
                echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i][subject]}</strong></font>";
            else
                echo "<font style='font-family:돋움; font-size:9pt; 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];
            ?>
  • 복사

댓글 전체

target="dada" 이라는건 어디서 나온건가요 ? dada라는게 뭘 의미 하는지 모르겠네요

타겟은 말그대로 링크의 타겟을 넘긴다거나 값을 넘길때 타겟을 지정해 주는 것인데 ..
그것을 왜 어떤식으로 사용할려고 한다라는게 없이 군요 ..
위에것으로 보면 리스트 화면 함수이고 리스트는 뿌려 주는 문인데 ..
리스트 즉 글을 클릭하면 본문으로 들어 가는 함수인데요 ..
정확히 무엇을 어떻게 사용을 하고 레이어가 저기서 무엇때문에
왜 필요 한지 무슨 말씀 하시는지를 모르겠네요 ..

리스트에 링크가 걸리믄 문은

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

이부분입니다만 ..
http://www.shhospital.co.kr/gnuboard4/index.php
index.php에 레이어가 2개가 있습니다..
최근게시물는 skin/latest스킨 안에 있어요,
플레쉬로 메뉴를 제어하는데 부득이 latest.php를 만들어서 최근 게시물을 불러오도록 만들었어요..
제가 작업하려는것은 최근게시물  제목을 클릭시 원하는 레이어의 타겟으로 출력되길 원하는것 인데 어렵네요
최근게시물에서 more 부분은
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' "><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a> 아래와 같이 타겟지정이 되는데요
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target="dada"><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a>
이 아래는 제목이 클릭되는부분인데요 target="dada" 를 위와 같이 지정하고 싶어요

<div id="Layer3" style="Z-INDEX: 3; POSITION: absolute; TOP:300px; WIDTH: 100%; height: 100%;">    
      <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
          <td width="100%" height="300" align="right"><iframe src="/gnuboard4/latest.php" tppabs="http://www.shhospital.co.kr/gnuboard4/latest.php" name="dada" id="dada"  width="800" height="100%" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0"  scrolling="no" allowtransparency="true"> </iframe></td>
        </tr>
      </table>
</div>
<div id=Layer1 style="Z-INDEX: 2; POSITION: absolute; TOP:300px; WIDTH: 100%; height: 100%;">
      <table width="730" border="0" align="right" cellpadding="0" cellspacing="0">
        <tr align="center">
          <td width="100%" align="center"><iframe src="/gnuboard4/flash/blank.html" tppabs="http://www.shhospital.co.kr/gnuboard4/flash/blank.html" name="inner" id="inner"  width="100%" height="100%" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0"  scrolling="no" allowtransparency="true"> </iframe></td>
        </tr>
      </table>
</div>
© SIRSOFT
현재 페이지 제일 처음으로