944,021 Members | Top Members by Rank

Ad:
0

Alternating row colors

by on Sep 20th, 2004
Change Your_Query to match your query name, Your_data to match your field name(s), and change the colors (ffffff and dadada) to match the colors you want.
ColdFusion Code Snippet (Toggle Plain Text)
  1. <tr bgcolor="#iif(Your_Query.CurrentRow MOD(2) eq 1,de('ffffff'),de('dadada'))#"><td>#Your_data#</td></tr>
Message:
Previous Thread in ColdFusion Forum Timeline: CF 6.1 problems..Junior Programmer - NEED HELP!
Next Thread in ColdFusion Forum Timeline: how to get pass url variables from one page to another page with out knowing them?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC