답변 2개
채택된 답변
+20 포인트
해당 게시판 스킨 폴더 style.css 에서
.bo_notice td {background:#f5f6fa}
바로 아래에 이렇게 5가지 색상을 추가하고(#fff 부분 원하는 색으로 변경)
.bo_bgcolor1 td {background:#fff}
.bo_bgcolor2 td {background:#fff}
.bo_bgcolor3 td {background:#fff}
.bo_bgcolor4 td {background:#fff}
.bo_bgcolor5 td {background:#fff}
list.skin.php 파일에서
for ($i=0; $i<count($list); $i++) { 바로 아랫줄에 이렇게 추가하고
$bg_rand = rand(1,5);
바로 아래 <tr class="<?php if ($list[$i]['is_notice']) echo "bo_notice"; ?>">
여기를 이렇게 수정하면 랜덤하게 나올겁니다.
<?php if ($list[$i]['is_notice']) { ?>
<tr class="bo_notice">
<?php } else { ?>
<tr class="bo_bgcolor<?php echo $bg_rand ?>">
<?php } ?>
답변을 작성하려면 로그인이 필요합니다.