|
|
|
20년 전
|
조회 1,565
|
|
|
|
20년 전
|
조회 2,179
|
|
|
|
20년 전
|
조회 1,942
|
|
|
|
20년 전
|
조회 1,584
|
|
|
|
20년 전
|
조회 2,086
|
|
|
|
20년 전
|
조회 1,768
|
|
|
|
20년 전
|
조회 1,785
|
|
|
|
20년 전
|
조회 1,543
|
|
|
|
20년 전
|
조회 2,038
|
|
|
|
20년 전
|
조회 1,861
|
|
|
|
20년 전
|
조회 2,225
|
|
|
|
20년 전
|
조회 1,529
|
|
|
|
20년 전
|
조회 2,317
|
|
|
|
20년 전
|
조회 1,946
|
|
|
|
20년 전
|
조회 1,647
|
|
|
|
20년 전
|
조회 1,571
|
|
|
|
20년 전
|
조회 1,928
|
|
|
|
20년 전
|
조회 1,685
|
|
|
|
20년 전
|
조회 2,029
|
|
|
|
20년 전
|
조회 1,697
|
댓글 1개
//제목 부분
<a href=javascript:list_view('<?=$i?>')>
<?=$list[$i][wr_subject]?>
</a>
//내용 부분
<td id = "ID" style="display:none" colspan="11">
<?=$list[$i][wr_content]?>
</a></td>
// 스크립트 부분.
헤드와 /헤드사이에 넣어 주세요
<script>
function list_view(idx) {
for(i=0; i<ID.length; i++) { //전체 내용의 수 만큼 루프
if(i == idx) ID[idx].style.display = (ID[idx].style.display == 'none') ? 'block' : 'none'; //현재 클릭한 내용의 상태 바꿔줌
else ID[i].style.display = 'none'; //나머지는 모두 안보이게
}
}
</script>
근데 엔터가 안먹히는군요 -_-;; 이건 또 어떻게 해야 될까나;;