// mouse in/out fixedColumn's fixedtable, change background color and fixed color on click. function tableNavigation() { osjs(function($) { $(".navigateable tr").each(function(i) { $(this).mouseover(function() { $(this).children("td").addClass('tdOverClass'); }); $(this).mouseout(function() { $(this).children("td").removeClass('tdOverClass'); }); $(this).click(function() { if($(this).children("td").hasClass('selected')){ $(".navigateable .selected").removeClass('selected'); }else{ $(".navigateable .selected").removeClass('selected'); $(this).children("td").addClass('selected'); } }); }); }); } and this style sheet
.tdOverClass{ background-color: blue !important; } .fixedFoot{ display:none; } .selected { background-color: blue !important; }
"<script type='text/javascript'> osjs(function($) { $('#"+TableId+"').addClass('navigateable'); }); tableNavigation(); </script>" where tableid is an webblock input parameter that is the table id. then you insert the webblock after the table you want and pass the tableredcord.id