| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|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