Agreed.  Here is what the code should look like.

<tr bgcolor="#<cfoutput>#IIf(CurrentRow Mod 2, DE('ffffff'),
DE('99ccff'))#</cfoutput>">

I have been doing this successfully for a while now.

Another way of doing it, is set a Counter and then loop.  Based on the count
you can set any color.  I have done it with up to 4 colored rows, but 4000
colors would be no different (except a very long template).

Vance Duke
Applications Developer


----- Original Message -----
From: "Nick McClure" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 23, 2000 8:26 PM
Subject: Re: I've got the alternating table row color blues


> Check your <cfoutput> </cfoutput> tags
>
> This sounds like the browser is trying to make a color out of
> #IIf(CurrentRow Mod 2, DE('ffffff'), DE('99ccff'))#
> and not the colors you want.
>
> At 02:23 PM 5/23/2000 -0400, you wrote:
> >Well .. it's not even blue, really ...
> >
> >I have this line:
> >
> ><tr bgcolor="#IIf(CurrentRow Mod 2, DE('ffffff'), DE('99ccff'))#">
> >
> >but instead of alternating the colors between white and light blue, it
> >combines/averages/mixes them somehow into this sick green color and all
of
> >the rows are that same 'mixed' color.  Has anyone ever run into this
before?
> >
> >.Todd
> >
> >
>
>---------------------------------------------------------------------------
---
> >Archives: http://www.eGroups.com/list/cf-talk
> >To Unsubscribe visit
> >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
or
> >send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> >the body.
>
> --
> Nick McClure [EMAIL PROTECTED]
> Technical Director 606.245.9656
> squareFish Media www.squareFish.com
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to