Thursday, May 31, 2007

Bitwise AND operator

To alternate the table background color:


rows [i].className = ((rows [i].index & 1) == 1) ? "alt" : "";

No comments: