테이블속성연습
<html>
<head>
<script language="javascript">
<!--
function selectRow(idx) {
index = idx + 1;
// 각 테이블에서 짝수줄 홀수줄의 색을 달리하여 가독성을 높임
for(i=0; i<3; i++) {
if(i % 2 == 0) {
tblList.rows(i+1).style.backgroundColor = "ffffff";
} else {
tblList.rows(i+1).style.backgroundColor = "f4f4f4";
}
}
// 선택된 열의 색을 다른색으로 하여 반전
tblList.rows(index).style.backgroundColor = "eeeeff";
// 테스트로 Alert을 찍어봄
// 선택된 열의 숨어있는 부분의 정보를 읽어서 보여줌.
alert(
tblList.rows(index).cells(6).innerText + " " +
tblList.rows(index).cells(7).innerText + " " +
tblList.rows(index).cells(8).innerText
);
// IFRAME에 있을 경우로 가정하고 자신의 상위 프레임의 form에 값을 넣기 위해
// 상위 프레임의 setField 메소드를 호출
// parent.setField(
// tblList.rows(index).cells(6).innerText,
// tblList.rows(index).cells(7).innerText,
// tblList.rows(index).cells(8).innerText
// );
}
//-->
</script>
</head>
<body>
<table width="100%" id="tblList" cellspacing="1" cellpadding="0" bgcolor="d9d9d9">
<tr align="center" height="23">
<td width="16%" align="center">등록일</td>
<td width="18%" align="center">번호</td>
<td width="16%" align="center">이름</td>
<td width="16%" align="center">만료일</td>
<td width="16%" align="center">성별</td>
<td width="18%" align="center">비고</td>
<td style="visibility:hidden;position:absolute;"></td>
<td style="visibility:hidden;position:absolute;"></td>
<td style="visibility:hidden;position:absolute;"></td>
</tr>
<tr onClick="selectRow(0);" height="23" bgcolor="ffffff">
<td align="center">2004/10/10</td>
<td align="center">1</td>
<td align="center">김개똥</td>
<td align="center">2004/12/31</td>
<td align="center">남</td>
<td align="center"></td>
<td style="visibility:hidden;position:absolute;">20041010</td>
<td style="visibility:hidden;position:absolute;">20041231</td>
<td style="visibility:hidden;position:absolute;">M</td>
</tr>
<tr onClick="selectRow(1);" height="23" bgcolor="f4f4f4">
<td align="center">2004/08/01</td>
<td align="center">2</td>
<td align="center">박말숙</td>
<td align="center">2004/12/20</td>
<td align="center">여</td>
<td align="center"></td>
<td style="visibility:hidden;position:absolute;">20040801</td>
<td style="visibility:hidden;position:absolute;">20041220</td>
<td style="visibility:hidden;position:absolute;">F</td>
</tr>
<tr onClick="selectRow(2);" height="23" bgcolor="ffffff">
<td align="center">2004/05/01</td>
<td align="center">3</td>
<td align="center">한마리</td>
<td align="center">2004/12/31</td>
<td align="center">여</td>
<td align="center"></td>
<td style="visibility:hidden;position:absolute;">20040501</td>
<td style="visibility:hidden;position:absolute;">20041231</td>
<td style="visibility:hidden;position:absolute;">F</td>
</tr>
</table>
</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
<head>
<script language="javascript">
<!--
function selectRow(idx) {
index = idx + 1;
// 각 테이블에서 짝수줄 홀수줄의 색을 달리하여 가독성을 높임
for(i=0; i<3; i++) {
if(i % 2 == 0) {
tblList.rows(i+1).style.backgroundColor = "ffffff";
} else {
tblList.rows(i+1).style.backgroundColor = "f4f4f4";
}
}
// 선택된 열의 색을 다른색으로 하여 반전
tblList.rows(index).style.backgroundColor = "eeeeff";
// 테스트로 Alert을 찍어봄
// 선택된 열의 숨어있는 부분의 정보를 읽어서 보여줌.
alert(
tblList.rows(index).cells(6).innerText + " " +
tblList.rows(index).cells(7).innerText + " " +
tblList.rows(index).cells(8).innerText
);
// IFRAME에 있을 경우로 가정하고 자신의 상위 프레임의 form에 값을 넣기 위해
// 상위 프레임의 setField 메소드를 호출
// parent.setField(
// tblList.rows(index).cells(6).innerText,
// tblList.rows(index).cells(7).innerText,
// tblList.rows(index).cells(8).innerText
// );
}
//-->
</script>
</head>
<body>
<table width="100%" id="tblList" cellspacing="1" cellpadding="0" bgcolor="d9d9d9">
<tr align="center" height="23">
<td width="16%" align="center">등록일</td>
<td width="18%" align="center">번호</td>
<td width="16%" align="center">이름</td>
<td width="16%" align="center">만료일</td>
<td width="16%" align="center">성별</td>
<td width="18%" align="center">비고</td>
<td style="visibility:hidden;position:absolute;"></td>
<td style="visibility:hidden;position:absolute;"></td>
<td style="visibility:hidden;position:absolute;"></td>
</tr>
<tr onClick="selectRow(0);" height="23" bgcolor="ffffff">
<td align="center">2004/10/10</td>
<td align="center">1</td>
<td align="center">김개똥</td>
<td align="center">2004/12/31</td>
<td align="center">남</td>
<td align="center"></td>
<td style="visibility:hidden;position:absolute;">20041010</td>
<td style="visibility:hidden;position:absolute;">20041231</td>
<td style="visibility:hidden;position:absolute;">M</td>
</tr>
<tr onClick="selectRow(1);" height="23" bgcolor="f4f4f4">
<td align="center">2004/08/01</td>
<td align="center">2</td>
<td align="center">박말숙</td>
<td align="center">2004/12/20</td>
<td align="center">여</td>
<td align="center"></td>
<td style="visibility:hidden;position:absolute;">20040801</td>
<td style="visibility:hidden;position:absolute;">20041220</td>
<td style="visibility:hidden;position:absolute;">F</td>
</tr>
<tr onClick="selectRow(2);" height="23" bgcolor="ffffff">
<td align="center">2004/05/01</td>
<td align="center">3</td>
<td align="center">한마리</td>
<td align="center">2004/12/31</td>
<td align="center">여</td>
<td align="center"></td>
<td style="visibility:hidden;position:absolute;">20040501</td>
<td style="visibility:hidden;position:absolute;">20041231</td>
<td style="visibility:hidden;position:absolute;">F</td>
</tr>
</table>
</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
게시글 목록
| 번호 | 제목 |
|---|---|
| 11797 | |
| 11796 |
기타
Progress 로딩바
|
| 29161 |
HTML
체크박스 전체선택 소스
|
| 11795 | |
| 11794 | |
| 11793 | |
| 11789 | |
| 11784 | |
| 29160 | |
| 11781 |
Flash
도와주세요..
2
|
| 11778 |
PHP
SSL 관련 링크
2
|
| 24966 | |
| 24964 | |
| 24963 |
제안서
회사약식제안서_기타
|
| 24961 | |
| 24960 | |
| 24950 |
제안서
홈페이지개발제안서_개발
9
|
| 24948 | |
| 24947 | |
| 24946 | |
| 24945 | |
| 24944 |
계약서
표준임대차계약서_부동산
|
| 24943 | |
| 24942 | |
| 24941 | |
| 24940 | |
| 24939 | |
| 29158 | |
| 11777 |
MySQL
Logrotate
|
| 11774 |
JavaScript
startssl 자동실행
2
|
| 11772 | |
| 11771 | |
| 11770 |
MySQL
mysql error code
|
| 11769 |
MySQL
Mysql - ErrCode
|
| 11765 | |
| 11764 |
기타
날짜 맞추기
|
| 11763 | |
| 11758 | |
| 29148 |
HTML
괜찮은 레이어 팝업창 소스
9
|
| 11752 | |
| 11747 | |
| 11746 | |
| 29147 | |
| 11744 |
JavaScript
플래쉬 초보입니다...질문좀 ^^
1
|
| 11735 |
Flash
퀵메뉴 - 수정해서 쓰세요!^^
8
|
| 29145 | |
| 11733 |
기타
히든필드 처리하기
1
|
| 11731 |
JavaScript
경고창의 폰트 조절.....
1
|
| 11730 | |
| 24937 | |
| 11728 | |
| 11727 | |
| 11725 | |
| 11717 | |
| 29138 | |
| 11716 | |
| 11715 |
JavaScript
특정 프로세스가 연 파일 보기.
|
| 11714 | |
| 11711 |
기타
CS3 간단 리뷰
2
|
| 11710 |
Flash
플래시 파일명 대신 외부파일 호출
|
| 11708 |
Flash
플래시 파일명 대신 외부파일 호출
1
|
| 11700 |
MySQL
mysql 원격접속방법
7
|
| 11697 | |
| 24936 | |
| 24935 | |
| 24934 | |
| 24933 | |
| 24932 | |
| 24931 | |
| 24930 | |
| 24929 | |
| 24928 | |
| 24927 | |
| 24926 |
계약서
주식양수도계약서_경리
|
| 24925 | |
| 24922 |
제안서
제안서_기업일반
2
|
| 24921 |
계약서
전세계약서_일반계약
|
| 24920 |
계약서
전세계약서_부동산
|
| 24919 | |
| 24918 | |
| 24917 | |
| 24916 | |
| 24915 |
계약서
장비임대 계약서_영업
|
| 24914 | |
| 24913 | |
| 11696 |
기타
메뉴를 찾습니다
|
| 11694 | |
| 24912 | |
| 24911 | |
| 24910 | |
| 24909 | |
| 24908 | |
| 24907 | |
| 24906 | |
| 11692 | |
| 24905 | |
| 24904 | |
| 24903 | |
| 24902 |
계약서
연봉제근로계약서
|
| 24901 |
계약서
연봉계약서-근로_기타
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기