답변 3개
11년 전
굳이 자바스크립트로 해야 되나요? <br />
<br />
<a href='<a href="http://lhcbiz.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}'>"" target="_blank" rel="noopener noreferrer">http://lhcbiz.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}'>"</a><br />
바꾸면 될거 같네요
<br />
<a href='<a href="http://lhcbiz.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}'>"" target="_blank" rel="noopener noreferrer">http://lhcbiz.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}'>"</a><br />
바꾸면 될거 같네요
로그인 후 평가할 수 있습니다
답변에 대한 댓글 5개
�
어렵다우오
11년 전
�
겸손1935
11년 전
아무래도 아이프레임을 사용해서 그런거 같습니다.
주소 경로를 자바스크립트로 빼주면 글씨는 안나올거같습니다.
스킨하단에
//-----------------------------------------------------------------
echo "<a href=javascript:parent.location.href='http://lhcbiz.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}' style='text-decoration:none;'>"; 을
//-----------------------------------------------------------------
$wr_id_link = $list[$i][wr_id];
echo "<a href=javascript:GoPage('$wr_id_link');>";
//-----------------------------------------------------------------
로 바꿔주시고
최신글 스킨 하단에
<script>
function GoPage(code) {
window.location.href='http://lhcbiz.co.kr/sub04.php?wr_id='+code;
}
</script>
하시면 될거예요
주소 경로를 자바스크립트로 빼주면 글씨는 안나올거같습니다.
스킨하단에
//-----------------------------------------------------------------
echo "<a href=javascript:parent.location.href='http://lhcbiz.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}' style='text-decoration:none;'>"; 을
//-----------------------------------------------------------------
$wr_id_link = $list[$i][wr_id];
echo "<a href=javascript:GoPage('$wr_id_link');>";
//-----------------------------------------------------------------
로 바꿔주시고
최신글 스킨 하단에
<script>
function GoPage(code) {
window.location.href='http://lhcbiz.co.kr/sub04.php?wr_id='+code;
}
</script>
하시면 될거예요
�
어렵다우오
11년 전
latest.skin.php 파일을 겸손님께서 추가한 말씀주신대로 추가하여 넣었는데
밑줄이 생기면서 같은 현상이 반복됩니다. ㅠ_ㅠ 아래는 말씀주신 형태로 latest.skin.php를 수정했는데
수정을 제가 정확히 한것이 맞지요? 자꾸 질문드려서 죄송합니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95% cellpadding=0 cellspacing=0>
<tr>
<td height=5><img src='<?=$latest_skin_path?>/img/board_icon.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
$wr_id_link = $list[$i][wr_id]; <= 수정한 부분
echo "<a href=javascript:GoPage('$wr_id_link');>"; <= 수정한 부분
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9; text-decoration:none;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A; text-decoration:none;'>{$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; text-decoration:none;'>{$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'];
?></td></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=10><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
======아래는 추가한 스크립트 ======
<script>
function GoPage(code) {
window.location.href='http://lhcbiz.co.kr/sub04.php?wr_id='+code;
}
</script>
밑줄이 생기면서 같은 현상이 반복됩니다. ㅠ_ㅠ 아래는 말씀주신 형태로 latest.skin.php를 수정했는데
수정을 제가 정확히 한것이 맞지요? 자꾸 질문드려서 죄송합니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95% cellpadding=0 cellspacing=0>
<tr>
<td height=5><img src='<?=$latest_skin_path?>/img/board_icon.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
$wr_id_link = $list[$i][wr_id]; <= 수정한 부분
echo "<a href=javascript:GoPage('$wr_id_link');>"; <= 수정한 부분
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9; text-decoration:none;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A; text-decoration:none;'>{$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; text-decoration:none;'>{$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'];
?></td></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=10><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
======아래는 추가한 스크립트 ======
<script>
function GoPage(code) {
window.location.href='http://lhcbiz.co.kr/sub04.php?wr_id='+code;
}
</script>
�
겸손1935
11년 전
function GoPage(code) {
window.parent.location.href='http://lhcbiz.co.kr/sub04.php?wr_id='+code;
} 이부분을 바꾸시고요 밑줄은
list.skin.php 상단에 스타일 추가해주세요
<style type="text/css">
a:link {text-decoration: none}
</style>
window.parent.location.href='http://lhcbiz.co.kr/sub04.php?wr_id='+code;
} 이부분을 바꾸시고요 밑줄은
list.skin.php 상단에 스타일 추가해주세요
<style type="text/css">
a:link {text-decoration: none}
</style>
�
어렵다우오
11년 전
정말 감사드려요 됩니다. ㅎㅎㅎㅎ;;;;;;; 이시간까지 씨름하고 있었는데 혹시나 해서 들어왔더니 ㅠ_ㅠ
정말 감사합니다.
정말 감사합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
�
어렵다우오
11년 전
제가 그누보드를 사실 코딩에 문외한이라 그누보드에서 이것저것 조합해서 index.html에 아이프레임으로 우겨넣었습니다. ㅎㅎ;; 그부분의 html 소스는 이것이며
<td width="205" height="90" rowspan="2"><iframe src="http://*******.co.kr/gnuboard4/news.php" name="news" width="195" height="85" frameborder="0" scrolling="no" ALLOWTRANSPARENCY="true"></iframe></td>
<td rowspan="2">
<img src="images/index_14.jpg" width="47" height="90" alt=""></td>
<td width="205" height="90" rowspan="2"><iframe src="http://*******.co.kr/gnuboard4/qna.php" name="qna" width="195" height="85" frameborder="0" scrolling="no" ALLOWTRANSPARENCY="true"></iframe></td>
<td rowspan="2">
여기에 연결되어 있는 php파일 news.php는 아래이고 qna도 경로를 제외하고 같음
<?
include_once("_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<!-- 메인화면 최신글 시작 -->
<body style="background-color:transparent">
<table width="100%" cellpadding=0 cellspacing=0><tr> <td valign=top>
<?
{
echo latest("basic", "news", 4, 28);
}
?>
</table></body>
</code>
latest.skin.php 파일의 소스는 아래와 같습니다. 스킨은 복사해서 2개로 만들어서 news와 qna를 분류시킴
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95% cellpadding=0 cellspacing=0>
<tr>
<td height=5><img src='<?=$latest_skin_path?>/img/board_icon.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href=javascript:parent.location.href='http://********.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}' style='text-decoration:none;'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9; text-decoration:none;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A; text-decoration:none;'>{$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; text-decoration:none;'>{$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'];
?></td></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=10><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
여기보드 게시판을 뒤지면서 강제적으로 최신글을 불러오게 되기는 했는데 스킨경로가 마지막 문제점으로 남았습니다.
특히 echo "<a href=javascript:parent.location.href='http://*******.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}' style='text-decoration:none;'>"; <=== 링크주소가 보이는것으로 생각되는데 어찌해야될지 모르겠어요 ㅠ_ㅠ
도움 부탁드립니다.
<td width="205" height="90" rowspan="2"><iframe src="http://*******.co.kr/gnuboard4/news.php" name="news" width="195" height="85" frameborder="0" scrolling="no" ALLOWTRANSPARENCY="true"></iframe></td>
<td rowspan="2">
<img src="images/index_14.jpg" width="47" height="90" alt=""></td>
<td width="205" height="90" rowspan="2"><iframe src="http://*******.co.kr/gnuboard4/qna.php" name="qna" width="195" height="85" frameborder="0" scrolling="no" ALLOWTRANSPARENCY="true"></iframe></td>
<td rowspan="2">
여기에 연결되어 있는 php파일 news.php는 아래이고 qna도 경로를 제외하고 같음
<?
include_once("_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<!-- 메인화면 최신글 시작 -->
<body style="background-color:transparent">
<table width="100%" cellpadding=0 cellspacing=0><tr> <td valign=top>
<?
{
echo latest("basic", "news", 4, 28);
}
?>
</table></body>
</code>
latest.skin.php 파일의 소스는 아래와 같습니다. 스킨은 복사해서 2개로 만들어서 news와 qna를 분류시킴
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95% cellpadding=0 cellspacing=0>
<tr>
<td height=5><img src='<?=$latest_skin_path?>/img/board_icon.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href=javascript:parent.location.href='http://********.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}' style='text-decoration:none;'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9; text-decoration:none;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A; text-decoration:none;'>{$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; text-decoration:none;'>{$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'];
?></td></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=10><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
여기보드 게시판을 뒤지면서 강제적으로 최신글을 불러오게 되기는 했는데 스킨경로가 마지막 문제점으로 남았습니다.
특히 echo "<a href=javascript:parent.location.href='http://*******.co.kr/sub04.php?wr_id={$list[$i]['wr_id']}' style='text-decoration:none;'>"; <=== 링크주소가 보이는것으로 생각되는데 어찌해야될지 모르겠어요 ㅠ_ㅠ
도움 부탁드립니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인

게시물의 탑이미지가 출력되버립니다. ㅠ_ㅠ 계속 답변 주셔서 정말 감사해요