Ho provato a trasformare il codice come consigliato, ma anche cosi non ho nessun risultato:
codice:
if (Cont >= 2){
var Max = document.getElementById('td_4_1').innerHTML;
document.getElementById('td_4_1').style= "color:green";
for (var i=2; i>Cont; i++){
if (document.getElementById('td_4_'+i).innerHTML > Max) {
for (f=1; f=i; f++){
document.getElementById('td_4_'+f).style= "color:white";
};
Max = document.getElementById('td_4_'+i).innerHTML;
document.getElementById('td_4_'+i).style= "color:green";
};
};
};