nemrod.se Various guides and experiments

Table Stripe


Background:
I just wanted to make a better presentation of the member register I’ve been doing, so I made this tablestripe plugin that zebra stripes a table as well as highlighting the one the mouse is currently over.
Usage:
Simply run “$(‘tabletorunon’).tablestripe();”. You’ll have to do the CSS yourself, though. Every second row gets .striped and the one the mouse is currently over gets .mouseover. Stylesheet them as you see fit. :)
Shortcomings:
I’m not 100% sure how it behaves if you’ve got tables nested within another table, but I guess it shouldn’t really be a problem. Haven’t tested it with rowspan or anything either.
Example/demonstration:
Example HTML file
Download link:
jquery.tablestripe.js

Posted in jQuery plugins | Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *