User:Lhridley/vector.js

function setRowNumber { var tableName; var skipRows;   // don't number header rows tableName = document.getElementById('numberedTable'); skipRows = 1; for( rowNbr=skipRows + 1; rowNbr < tableName.rows.length ; rowNbr++) {    var cell = tableName.rows[rowNbr].cells[0] ; var rowNbrText = rowNbr - skipRows; cell.innerHTML = rowNbrText; cell.innerText = rowNbrText; } } addOnloadHook( setRowNumber );