Paint row by row in table

Paint row by row in table

Hello friends. Long time. I want to be fabulous.
I need help to paint row by row in a table with click.
I got this:

  1. $(document).ready(function() {
  2.     $('tr.rows_table td').click(function(){
  3.         
  4.    $row= $(this).closest('tr');
  5.         $row_fixed=$('td.row_fixed');
  6.         
  7. $row.toggleClass('odd1');
  8. $row_fixed.css('background-color', '#93F');
  9. $row_fixed.css('color','#FFF');
  10.         
  11.     });                       
  12. });


The idea is:

Case 1:


Case 2: