jQuery Zebra Stripes

    Place inside document ready.
    [javascript]
    // make zebra stripes
    var zebraodd = "#364146";
    var zebraeven = "#102227";
    $("table.zebra tr:odd, ul.zebra li:odd").css("background-color", zebraodd);
    $("table.zebra tr:even, ul.zebra li:even").css("background-color", zebraeven);
    [/javascript]

    Leave a Reply