| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Toggles in Perl (or other langs)|
I use this 4 liner alot to flip between colors in generated tables (used on home page and within thread displays here):
$bg=0 if $bg > 1;
$bgcolor ="ffffff" if $bg;
Example <tr bgcolor="#$bgcolor">
Got a quicker way to to the 4 lines?
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved