<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta name="author" content="Quaese" />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
<!--
// Gewünschte Hintergrundfarbe
var colorBG = "#e2e9e9"
function markRow(objCheckbox){
// Falls die Checkbox angewählt wurde
if(objCheckbox.checked == true){
colorRow = colorBG;
}else{
colorRow = "";
}
// Tabellenzeile ermitteln
objRow = document.getElementById('tableID').rows;
// Alle Zellen durchlaufen
for(var i=1; i<objRow[objCheckbox.value].cells.length; i++){
objRow[objCheckbox.value].cells[i].style.backgroundColor = colorRow;
}
}
//-->
</script>
<style type="text/css">
<!--
body{ background: #efefef;}
#tableID{ }
#tableID td{ border-right: 1px solid #AFAFAF;
cellpadding: 0;}
#tableID td.inhaltTD, #tableID td.inhaltBottomTD{ border-top: 1px solid #AFAFAF;
border-right: 1px solid #AFAFAF;
cellpadding: 0;
width: 100px;}
#tableID td.inhaltBottomTD{ border-bottom: 1px solid #AFAFAF;}
-->
</style>
</head>
<body>
<table cellspacing="0" id="tableID">
<tr>
<td><input type="checkbox" value="0" onclick="markRow(this);" /></td>
<td class="inhaltTD">Zelle (0,0)</td>
<td class="inhaltTD">Zelle (0,1)</td>
<td class="inhaltTD">Zelle (0,2)</td>
</tr>
<tr>
<td><input type="checkbox" value="1" onclick="markRow(this);" /></td>
<td class="inhaltTD">Zelle (1,0)</td>
<td class="inhaltTD">Zelle (1,1)</td>
<td class="inhaltTD">Zelle (1,2)</td>
</tr>
<tr>
<td><input type="checkbox" value="2" onclick="markRow(this);" /></td>
<td class="inhaltBottomTD">Zelle (2,0)</td>
<td class="inhaltBottomTD">Zelle (2,1)</td>
<td class="inhaltBottomTD">Zelle (2,2)</td>
</tr>
</table>
</body>
</html>