~

최신글에서 아이콘 대신 블링크 가능한가요?

최신글에서 24시간내에 올라온 글은 뉴아이콘 생기잖아요??

그거 지우고 해당 제목 깜박거리게 할려고 하거든요.

블링크 소스는 구했는데 어디서 어떻게 해야될지 모르겠어요.

답변 부탁드립니다.



-- 홈피 완성을 기대하며 아자아자아자 ^^;
|

댓글 8개

root님하고 만도님 감사합니다. 성공했어요..

근데 블링크로 하니까 링크부분 클릭하기가 힘드네요.. 거기 까진 생각을 못했어요..

암튼 답변주셔서 감사합니다.
MMando
22년 전
글전체가 아닌 걸로 할려면
<!-- <blink> -->
$blink=" ";
<? if($list[$i][icon_new]) $blink=" <blink>새글</blink>"; // icon_new라면 새글이므로 blink 정의 ?>
<a href='<?="./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class
=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></sp
an></a> $blink;// 세글이라면 $blink 동작하고 아니면 블링크는 없다..
허걱 내용이 깨진다..
<!-- <blink> -->
<? if($list[$i][icon_new]) echo "<blink>"; // icon_new라면 새글이므로 blink시작 ?>
<a href='<?="./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class
=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></sp
an></a> <? if($list[$i][icon_new]) echo "</blink>"; // icon_new라면 새글이므로 blink종료 ?></blink>
<td align=left> [<?=$list[$i][date]?>]
<? if($list[$i][icon_new]) echo "<blink>"; // icon_new라면 새글이므로 blink시작 ?>
<a href='<?="./$cfg[index]?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?></span></a><font 료료 ?>
</td>
제가 잘 못 한 것일수도 있지만

당연히 root님 말씀대로 스킨에서 수정하였습니다.
스크립트도 같이 추가했고요..

다 해보고 말씀드리는 겁니다.

해보았지만 새로운 글만 되는게 아니라 최신글 전체가 다 깜빡이더군요.

최신글 예를 들면 자유게시판에 최신글을 5개로 지정해놨다면 가장 최신에 올라온 글 5개까지 나오잖아요. (날짜야 어찌되었던...)

그리고 5개중에 24시간내에 올라온 글이 있다면 그 글을 표시해주는 아이콘이 생기고...

전 그 부분에 대한 블링크를 원하는 것입니다. 24시간내에 올라온 글요..

며칠동안 검색도 여러번 해봤지만 답이 안나와서 이렇게 질문 드리는겁니다.


원래는 이거고요
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=6 height=28 background='./<?=$latest_skin?>/bar_l.png'> </td>
<td align=center height=28 background='./<?=$latest_skin?>/bar.png'><a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table"?>'><font color=#000000><b><?=$bo_subject?></b></font></a></td>
<td width=6 height=28 background='./<?=$latest_skin?>/bar_r.png'> </td>
</tr>
</table>

<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr height=22>
<td width=12> <img src='./<?=$latest_skin?>/icon_li.gif'></td>
<td align=left> [<?=$list[$i][date]?>]
<!-- <?=$list[$i][icon_new]?> -->
<a href='<?="./$cfg[index]?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?></span></a><font class=pt7b><?=$list[$i][commentcnt]?></font></td>

</tr>
<? } ?>

<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>자료가 없습니다.</td></tr>"; } ?>
</table>


이렇게 수정했습니다.
<?
/*******************************************************/
// 다음의 스크립터는 <blink></blink> 처리를 위한것이다.
// 350은 깜박이는 속도. (높은 수일수록 깜박이는 속도 느림)
/*******************************************************/
print "<script language=JavaScript>\n";
print " function doBlink() {\n";
print " var blink = document.all.tags(\"BLINK\")\n";
print " for (var i=0; i < blink.length; i++)\n";
print " blink[i].style.visibility = blink[i].style.visibility == \"\" ? \"hidden\" : \"\"\n";
print " }\n";
print " function startBlink() {\n";
print " if (document.all)\n";
print " setInterval(\"doBlink()\",350)\n";
print " }\n";
print " window.onload = startBlink;\n";
print "</script>\n";
?>

<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=6 height=28 background='./<?=$latest_skin?>/bar_l.png'> </td>
<td align=center height=28 background='./<?=$latest_skin?>/bar.png'><a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table"?>'><font color=#000000><b><?=$bo_subject?></b></font></a></td>
<td width=6 height=28 background='./<?=$latest_skin?>/bar_r.png'> </td>
</tr>
</table>

<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr height=22>
<td align=left height=25><? if ($is_category) { ?><span class=tt>[<?=$list[$i][ca_name]?>]</span
><? } ?><blink>
<a href='<?="./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class
=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></sp
an></a> <?=$list[$i][icon_new]?></blink></td>

</tr>
<? } ?>

<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>자료가 없습니다.</td></tr>"; } ?>
</table>

게시판 어지럽혀서 죄송하고요.. 노력 않고 질문하는 것이 아니라는것도 알아주세요
root님은 새로 올라온글에 대한 blink 를 말하고 있습니다.
root님 말씀대로 검색하세요
답변 감사합니다.
허나 제가 원하는 것은 최신글중에 새로 올라온글만 깜빡이게 하고 싶어서 그럽니다.
부탁 드리겠습니다.
해당 스킨의 latest.skin.php를 수정하세요.
<td align=left height=25><? if ($is_category) { ?><span class=tt>[<?=$list[$i][ca_name]?>]</span
><? } ?><blink>
<a href='<?="./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class
=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></sp
an></a> <?=$list[$i][icon_new]?></blink></td>

<blink></blink>가 모질라와 네스케이프에서는 먹는데 익스에서는 별도의 스크립터를 추가하셔야 합니다. 관련 스크립터는 팁앤테크에서 blink로 조회한번 해보세요.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고