<html>
<head>
<title></title>
<meta name='author' content='interkorea'>
<meta name='keywords' content=''>
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='pragma' content='no-cache'>
<meta http-equiv='content-type' content='text/html; charset=euc-kr'>
<link rel='stylesheet' href='/include/css.css' type='text/css'>
<script language='javascript' src='/include/main.js'></script>
<style type='text/css'>
.tableTR {color:#000000;background-color:#ececec; text-align:center; }
</style>
<script language='javascript'>
/***************************************************************************
*
* Date : 2005-01-21
* Copyright : aucd29
* E-mail : aucd29@daum.net
*
* 행복한 고니님꺼를 기초로 내 입맛내로 가공함
*
***************************************************************************/
function BgChanger(obj,color,clsName,fix)
{
var objTR = obj.getElementsByTagName('TR');
var len = objTR.length;
var fix = fix?fix:1;
var clsName = clsName?clsName:'';
for(i=fix; i<len; ++i)
{
objTR[i].onmouseover = new Function('this.style.backgroundColor="'+color+'"');
objTR[i].onmouseout = new Function('this.style.backgroundColor=""');
objTR[i].onclick = new Function('if(!this.className){ this.className="'+clsName+'";} else { this.className="";}');
}
}
</script>
</head>
<body>
<table cellspacing='0' align='center' cellpadding='3' border='1' width='95%' bordercolordark='white' bordercolorlight='#D6D6D6' onMouseOver="BgChanger(this,'#f7f7f7','tableTR')">
<tr class='tableTR'>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
</table>
</body>
</html>
<head>
<title></title>
<meta name='author' content='interkorea'>
<meta name='keywords' content=''>
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='pragma' content='no-cache'>
<meta http-equiv='content-type' content='text/html; charset=euc-kr'>
<link rel='stylesheet' href='/include/css.css' type='text/css'>
<script language='javascript' src='/include/main.js'></script>
<style type='text/css'>
.tableTR {color:#000000;background-color:#ececec; text-align:center; }
</style>
<script language='javascript'>
/***************************************************************************
*
* Date : 2005-01-21
* Copyright : aucd29
* E-mail : aucd29@daum.net
*
* 행복한 고니님꺼를 기초로 내 입맛내로 가공함
*
***************************************************************************/
function BgChanger(obj,color,clsName,fix)
{
var objTR = obj.getElementsByTagName('TR');
var len = objTR.length;
var fix = fix?fix:1;
var clsName = clsName?clsName:'';
for(i=fix; i<len; ++i)
{
objTR[i].onmouseover = new Function('this.style.backgroundColor="'+color+'"');
objTR[i].onmouseout = new Function('this.style.backgroundColor=""');
objTR[i].onclick = new Function('if(!this.className){ this.className="'+clsName+'";} else { this.className="";}');
}
}
</script>
</head>
<body>
<table cellspacing='0' align='center' cellpadding='3' border='1' width='95%' bordercolordark='white' bordercolorlight='#D6D6D6' onMouseOver="BgChanger(this,'#f7f7f7','tableTR')">
<tr class='tableTR'>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
</table>
</body>
</html>
'Web > Javascript' 카테고리의 다른 글
이미지 전환하기 (0) | 2013.09.26 |
---|---|
이미지 전환하기 (0) | 2013.09.26 |
row 색상변경 결정판~(...이려나?) 조회수:1495 (0) | 2013.09.26 |
그냥 selectbox 관련해서 만들어봣다. (0) | 2013.09.26 |
ObjectParseInt (0) | 2013.09.26 |