Highlight rows width prototype
zobrazení:
function hlRows(){ var cells = $$('tbody.hl td') for (var i=0; i < cells.length; i++) { cells[i].onmouseover = function () { this.up().addClassName('hl'); } cells[i].onmouseout = function () { this.up().removeClassName('hl'); } } } css --- tr.hl td { background-color: #ffa; }