TheConeHead
Programmer
Here is an example of some code that I use a lot to make alternate rows of tables have differing background colors (for readability) - I know it can be shortened and am looking for options - thanks!
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)
Code:
bgcolor=0;
while (blah == blah) {
<tr if (bgcolor==1) { bgcolor="#cccccc" }>
if (bgcolor==0) {
bgcolor=1;
} else {
bgcolor=0;
}
blah++;
}
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)