codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
<script language="javascript">
function tabella_bicolore(){
	//1. Raggruppiamo tutti i tag <tr>
	var righe= document.getElementsByTagName("tr")
	alert("Entra")
	for(i=0;i<righe.length;i+=2){
	Core.addClass(righe[i],"alt")
}
}
</script>
<style type="text/css">
tr.alt{
	background-color:#009;
}
</style>
</head>

<body>
<table border="1" width="100%">
<tr>
<td>
Ciao
</td>
</tr>
<tr>
<td>
Ciao
</td>
</tr>
<tr>
<td>
Ciao
</td>
</tr>
<tr>
<td>
Ciao
</td>
</tr>
<tr>
<td>
Ciao
</td>
</tr>
<tr>
<td>
Ciao
</td>
</tr>
</table>
<input type="button" onclick="tabella_bicolore();" />
</body>
</html>
Vorrei fare una tabella una riga si e una no colorata, cosa sbaglio? Ho preso spunto da un libro che sto seguendo

Dice che Core non è definito!