게시글 앞에 아이콘이 깜박 깜박거리게 하는 방법좀..
완젼 초짜라서 어느 소스를 가져와서 질문해야 할지도 모릅니다. 위에 보시는 그림처럼
앞부분이 점이 아니라, 별표, 네모, 혹은 세모 아이콘으로 만들어서 계속 깜박거리게 만들고 싶습니다.
어디에 어느부분을 바꿔야 할지좀 알려주세요 ^^;
앞부분이 점이 아니라, 별표, 네모, 혹은 세모 아이콘으로 만들어서 계속 깜박거리게 만들고 싶습니다.
어디에 어느부분을 바꿔야 할지좀 알려주세요 ^^;
첨부파일
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 8개
latest.php확인해보세요
그럼 이놈을 넣어주시면 됩니다. latest.php 같은 내용인데요?^^;;
<?
if (!defined('_GNUBOARD_')) exit;
// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
global $g4;
if ($skin_dir)
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/basic";
$list = array();
$sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
$board = sql_fetch($sql);
$tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
//$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
// 위의 코드 보다 속도가 빠름
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows ";
//explain($sql);
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++)
$list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
?>
<?php
$d = getDomainNameOnly();
if ( $d == "witheng" ) {
$id_support = "support_witheng";
$id_reminder = "reminder_ko";
$id_freetalk = "freetalk_witheng";
}
else {
$id_support = $d."_support";
$id_reminder = $d."_reminder";
$id_freetalk = $d."_freetalk";
}
$tabs_data = array();
$posts = post_latest("support");
$tabs_tr = tabs_tr($posts);
$tabs_data[] =<<<EOH
<table width="249" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" background="res/img/notice_img1.gif"><table width="249" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60" align="left"><a href="/bbs/board.php?bo_table=support" onMouseOver=""><img src="res/img/notice_img2.gif" name="Image135" width="55" height="22" border="0"></a></td>
<td width="60" align="left"><a href="#" onMouseOver="change_tabs_left(1);"><img src="res/img/notice_img3_on.gif" name="Image136" width="57" height="22" border="0"></a></td>
<td width="60" align="left"><a href="#" onMouseOver="change_tabs_left(2);"><img src="res/img/notice_img4_on.gif" name="Image137" width="57" height="22" border="0"></a></td>
<td align="right"><a href="/?$id_support"><img src="res/img/notice_img_more.gif" width="31" height="7" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr height="3"><td></td></tr>
<tr>
<td height="92"><table width="249" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" bgcolor="#dbdbdb"></td>
<td height="91" align="left"><table width="241" border="0" cellspacing="0" cellpadding="0">
$tabs_tr
</table></td>
<td width="1" bgcolor="#dbdbdb"></td>
</tr>
<tr bgcolor="#dbdbdb">
<td height="1" colspan="3"></td>
</tr>
</table></td>
</tr>
</table>
EOH;
$posts = post_latest("reminder");
$tabs_tr = tabs_tr($posts);
$tabs_data[] =<<<EOH
<table width="249" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" background="res/img/notice_img1.gif"><table width="249" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60" align="left"><a href="#" onMouseOver="change_tabs_left(0);"><img src="res/img/notice_img2_on.gif" name="Image135" width="55" height="22" border="0"></a></td>
<td width="60" align="left"><a href="/bbs/board.php?bo_table=reminder" onMouseOver=""><img src="res/img/notice_img3.gif" name="Image136" width="57" height="22" border="0"></a></td>
<td width="60" align="left"><a href="#" onMouseOver="change_tabs_left(2);"><img src="res/img/notice_img4_on.gif" name="Image137" width="57" height="22" border="0"></a></td>
<td align="right"><a href="/?$id_reminder"><img src="res/img/notice_img_more.gif" width="31" height="7" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr height="3"><td></td></tr>
<tr>
<td height="92"><table width="249" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" bgcolor="#dbdbdb"></td>
<td height="91" align="left"><table width="241" border="0" cellspacing="0" cellpadding="0">
$tabs_tr
</table></td>
<td width="1" bgcolor="#dbdbdb"></td>
</tr>
<tr bgcolor="#dbdbdb">
<td height="1" colspan="3"></td>
</tr>
</table></td>
</tr>
</table>
EOH;
$posts = post_latest("freetalk");
$tabs_tr = tabs_tr($posts);
$tabs_data[] =<<<EOH
<table width="249" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22" background="res/img/notice_img1.gif"><table width="249" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60" align="left"><a href="#" onMouseOver="change_tabs_left(0);"><img src="res/img/notice_img2_on.gif" name="Image135" width="55" height="22" border="0"></a></td>
<td width="60" align="left"><a href="#" onMouseOver="change_tabs_left(1);"><img src="res/img/notice_img3_on.gif" name="Image136" width="57" height="22" border="0"></a></td>
<td width="60" align="left"><a href="/bbs/board.php?bo_table=freetalk" onMouseOver=""><img src="res/img/notice_img4.gif" name="Image137" width="57" height="22" border="0"></a></td>
<td align="right"><a href="/?$id_freetalk"><img src="res/img/notice_img_more.gif" width="31" height="7" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr height="3"><td></td></tr>
<tr>
<td height="92"><table width="249" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" bgcolor="#dbdbdb"></td>
<td height="91" align="left"><table width="241" border="0" cellspacing="0" cellpadding="0">
$tabs_tr
</table></td>
<td width="1" bgcolor="#dbdbdb"></td>
</tr>
<tr bgcolor="#dbdbdb">
<td height="1" colspan="3"></td>
</tr>
</table></td>
</tr>
</table>
EOH;
$no = 0;
foreach($tabs_data as $txt) {
echo <<<EOH
<div id="tabs_left_$no" style="display:none; height: 130px; overflow:hidden;">$txt</div>
EOH;
$no ++;
}
?>
<script>
function change_tabs_left(no)
{
var t1 = document.getElementById("tabs_left_0");
var t2 = document.getElementById("tabs_left_1");
var t3 = document.getElementById("tabs_left_2");
t1.style.display='none';
t2.style.display='none';
t3.style.display='none';
var objname = "tabs_left_"+no;
var obj = document.getElementById(objname);;
obj.style.display='block';
}
change_tabs_left(0);
</script>
<img src="<?=$g4[path]?>/img/recommend.gif"> 그누보드안에/이미지/recommend.gif
이렇게 해주시면 되고요. 이미지는 gif 애니매이션에서 만드시면 됩니다.
저작권이 있다면 이미지에 하나만드시죠. 만드는대 5분도 안걸릴껍니다.
원하신다면 하나 이쁘게 만들어드리죠