Ahm.. es lo mismo..
Código Javascript
:
Ver originalfunction ColorFilas (current) {
var tables = document.getElementsByTagName("table");
for (var i = 0; i < tables.length; i++) {
if (tables[i].className.match(/Cebra/))
TablaColor(tables[i], current);
}
}
Código Javascript
:
Ver originalfunction TablaColor (table, current) {
if(current==null)
current="impar";
var trs = table.getElementsByTagName("tr");
for (var i = 0; i < trs.length; i++) {
trs[i].className += " " + current;
current = current == "par" ? "impar" : "par";
}
}