doOddEven usage is implemented in tablefilterNsort.js , so in order for it to do anything, you need to include the $xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true) line.
Also, from what I see in that file, it’s only applied when the table is made sortable, so I guess the table needs to also have the class ‘sortable’.
However, if all you need is to make a table that alternates colors between lines, you can use the bootstrap class for it, not the table.css and table.js (which are old implementations for sortable and filterable table for XWiki, from before XWiki had bootstrap and from when Internet Explorer was still a browser that the world was paying attention to ).
The bootstrap classes are described here CSS · Bootstrap , the one you want is table-striped.
That works like charm. Reading your link I found another very interesting class table-hover. This one I documented in our wiki and made it a bit more accessible: