* 게시물 목록에 마우스 오버, 아웃, 클릭 적용하기
* 게시물 목록에 마우스 오버 아웃 클릭 적용하기
원본에서 skin/board/basic/list.skin.php의 57행에 주석처리가 되어있습니다
이부분을 그대로 사용하여 마우스 오버시 그 줄 전체 색상 변경 및 클릭시 내용보기가 되게 하되 관리자로 로그인하여 체크박스가 있는 경우 체크박스 부분을 클릭했을 때는 체크가 되도록 합니다
글쓴이 부분에 나타나는 메뉴도 마찬가지로 적용됩니다
1. 55행~58행
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<tr height="29" <? if ($list[$i][is_notice]) { echo "bgcolor='#fdf5e6'"; }?> onmouseover="this.style.backgroundColor='#EEEEEE'" onMouseOut="this.style.backgroundColor='';" onclick="if(!chkbox) location.href='<?=$list[$i][href]?>'" style="cursor:pointer">
<td align="center">
2. 71~72행
<? if ($is_category) { ?><td width="70" align="center" onmouseover=chk_over(1) onmouseout=chk_over(0)><a href="<?=$list[$i][ca_name_href]?>"><font color=gray><?=$list[$i][ca_name]?></font></a></td><? } ?>
<? if ($is_checkbox) { ?><td width="40" align="center" onmouseover=chk_over(1) onmouseout=chk_over(0)><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>" ></td><? } ?>
글쓴이 출력부분
<td align="center" onmouseover=chk_over(1) onmouseout=chk_over(0)><?=$list[$i][name]?></td>
3. 마지막의 자바스크립트 부분에 아래내용 추가
chkboxover=0
function chk_over(vv){
if(vv==1) chkboxover=1
else chkboxover=0
}
원본에서 skin/board/basic/list.skin.php의 57행에 주석처리가 되어있습니다
이부분을 그대로 사용하여 마우스 오버시 그 줄 전체 색상 변경 및 클릭시 내용보기가 되게 하되 관리자로 로그인하여 체크박스가 있는 경우 체크박스 부분을 클릭했을 때는 체크가 되도록 합니다
글쓴이 부분에 나타나는 메뉴도 마찬가지로 적용됩니다
1. 55행~58행
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<tr height="29" <? if ($list[$i][is_notice]) { echo "bgcolor='#fdf5e6'"; }?> onmouseover="this.style.backgroundColor='#EEEEEE'" onMouseOut="this.style.backgroundColor='';" onclick="if(!chkbox) location.href='<?=$list[$i][href]?>'" style="cursor:pointer">
<td align="center">
2. 71~72행
<? if ($is_category) { ?><td width="70" align="center" onmouseover=chk_over(1) onmouseout=chk_over(0)><a href="<?=$list[$i][ca_name_href]?>"><font color=gray><?=$list[$i][ca_name]?></font></a></td><? } ?>
<? if ($is_checkbox) { ?><td width="40" align="center" onmouseover=chk_over(1) onmouseout=chk_over(0)><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>" ></td><? } ?>
글쓴이 출력부분
<td align="center" onmouseover=chk_over(1) onmouseout=chk_over(0)><?=$list[$i][name]?></td>
3. 마지막의 자바스크립트 부분에 아래내용 추가
chkboxover=0
function chk_over(vv){
if(vv==1) chkboxover=1
else chkboxover=0
}
댓글 3개
bbking
20년 전
좋네요..^^
뮤즈그라피
18년 전
음 그렇군요 ^^
13년 전
;
게시판 목록
그누4 팁자료실
그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.
나누면 즐거움이 커집니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3269 |
|
10년 전 | 6665 | |
| 3268 | 10년 전 | 7188 | ||
| 3267 |
또치하우스
|
11년 전 | 5003 | |
| 3266 |
네이비칼라
|
11년 전 | 5036 | |
| 3265 | 11년 전 | 5154 | ||
| 3264 | 11년 전 | 7045 | ||
| 3263 |
|
11년 전 | 7212 | |
| 3262 |
|
11년 전 | 6648 | |
| 3261 | 11년 전 | 5558 | ||
| 3260 | 11년 전 | 7411 | ||
| 3259 | 11년 전 | 6710 | ||
| 3258 | 11년 전 | 5519 | ||
| 3257 | 11년 전 | 10489 | ||
| 3256 | 11년 전 | 3827 | ||
| 3255 |
언제나해피
|
11년 전 | 7410 | |
| 3254 | 11년 전 | 4994 | ||
| 3253 | 11년 전 | 13099 | ||
| 3252 | 11년 전 | 4754 | ||
| 3251 |
노피노키오
|
11년 전 | 6833 | |
| 3250 |
|
11년 전 | 5813 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기