Conditional formatting: Due date > ODate

Can someone give me some tips on how to do conditional formatting? For example: in my grid view, if the Due Date > ODate then the row is highlighted red or at least the Due Date is highlighted red. Any tips or instructions on how to do this?

In the onrecord / onload event:

if (<your condition>) {
sc_field_style({my_field}, ‘#33FF99’, ‘15px’, ‘#000000’, ‘Arial, sans-serif’, ‘bold’);
}