Wednesday, November 23, 2005
PHP: color every other row (aka striped rows, striping)
PHP example:
if you want every other row of a table to be colored, use the following syntax
This will color all odd rows: 1,3,5,7
<tr <?php if (++$i % 2) echo ' bgcolor="#ACEAF7" '; ?>>
This will color all event rows: 2,4,6,8
<tr <?php if ($i++ % 2) echo ' bgcolor="#ACEAF7" '; ?>>
No need to initialize or declare $i. And of course you can use any color code you want.
if you want every other row of a table to be colored, use the following syntax
This will color all odd rows: 1,3,5,7
<tr <?php if (++$i % 2) echo ' bgcolor="#ACEAF7" '; ?>>
This will color all event rows: 2,4,6,8
<tr <?php if ($i++ % 2) echo ' bgcolor="#ACEAF7" '; ?>>
No need to initialize or declare $i. And of course you can use any color code you want.
Tuesday, November 01, 2005
More suck
Wow. Well, I guess if you want to put EVERYTHING on one page then this is the way to do it.
Country Sounds
Country Sounds
More suck
Wow. Well, I guess if you want to put EVERYTHING on one page then this is the way to do it.
Country Sounds
Country Sounds
And now from our "Websites that Suck" department
Wow.
This
is
terrible.
Castle Records
Their slogan is "Our Clients & Our Artists Deserve The Best... The Very Best"
I'd hate to see their worst.
Feel free to click on some links. There are dozens and dozens of pages that suck. I thought that only the homepage would be this bad and the other pages would simply be one pagers that also sucked. I was so very wrong. The depth of suck here is unmeasurable.
This
is
terrible.
Castle Records
Their slogan is "Our Clients & Our Artists Deserve The Best... The Very Best"
I'd hate to see their worst.
Feel free to click on some links. There are dozens and dozens of pages that suck. I thought that only the homepage would be this bad and the other pages would simply be one pagers that also sucked. I was so very wrong. The depth of suck here is unmeasurable.