게시글 앞에 아이콘이 깜박 깜박거리게 하는 방법좀..

제목 없음.png
완젼 초짜라서 어느 소스를 가져와서 질문해야 할지도 모릅니다. 위에 보시는 그림처럼
앞부분이 점이 아니라, 별표, 네모, 혹은 세모 아이콘으로 만들어서 계속 깜박거리게 만들고 싶습니다.
어디에 어느부분을 바꿔야 할지좀 알려주세요 ^^;

첨부파일

제목 없음.png (6.7 KB)
0회 2011-07-12 19:21
|

댓글 8개

소스있으면 바로 수정 가능합니다.
latest.php확인해보세요
그런데요 그부분은 아무효과를 안주시는게 눈이 편합니다.
http://www.okban.co.kr/contents/list.asp?TB=buy_ps 음... 이 사이트처럼 앞에서 반짝이는거요. new 말구요.. ^^;;
http://www.okban.co.kr/images/img_board/recommend.gif
그럼 이놈을 넣어주시면 됩니다. latest.php 같은 내용인데요?^^;;
오!!!!!!! 그거 어떻게 만드셨나요!!! 오!!!!!! --;;;;; 이게 저의 latest.lib.php에요. 그런데 이게 아닐거 같네요. 메인 고칠때 저거 손대지 않았거든요. 손댔던 파일은 index.bbs.tab.1.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분도 안걸릴껍니다.
원하신다면 하나 이쁘게 만들어드리죠
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
14년 전 조회 845
14년 전 조회 1,056
14년 전 조회 1,038
14년 전 조회 828
14년 전 조회 1,553
14년 전 조회 994
14년 전 조회 1,564
14년 전 조회 789
14년 전 조회 2,088
14년 전 조회 934
14년 전 조회 1,048
14년 전 조회 1,547
14년 전 조회 941
14년 전 조회 1,029
14년 전 조회 860
14년 전 조회 819
14년 전 조회 772
14년 전 조회 1,157
14년 전 조회 1,722
14년 전 조회 1,577