|
|
|
22년 전
|
조회 504
|
|
|
|
22년 전
|
조회 342
|
|
|
|
22년 전
|
조회 447
|
|
|
|
22년 전
|
조회 376
|
|
|
|
22년 전
|
조회 530
|
|
|
|
22년 전
|
조회 500
|
|
|
|
22년 전
|
조회 468
|
|
|
|
22년 전
|
조회 447
|
|
|
|
22년 전
|
조회 404
|
|
|
|
22년 전
|
조회 374
|
|
|
|
22년 전
|
조회 363
|
|
|
|
22년 전
|
조회 340
|
|
|
|
22년 전
|
조회 398
|
|
|
|
22년 전
|
조회 857
|
|
|
|
22년 전
|
조회 423
|
|
|
|
22년 전
|
조회 563
|
|
|
|
22년 전
|
조회 587
|
|
|
|
22년 전
|
조회 591
|
|
|
|
22년 전
|
조회 487
|
|
|
|
22년 전
|
조회 341
|
댓글 8개
근데 블링크로 하니까 링크부분 클릭하기가 힘드네요.. 거기 까진 생각을 못했어요..
암튼 답변주셔서 감사합니다.
<!-- <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>
<? 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님 말씀대로 검색하세요
허나 제가 원하는 것은 최신글중에 새로 올라온글만 깜빡이게 하고 싶어서 그럽니다.
부탁 드리겠습니다.
<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로 조회한번 해보세요.