Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

make admin users change colors

Status
Not open for further replies.

zxmax

Technical User
Nov 24, 2003
179
CA
i have a table output from a database with every row changes colors, here is my code:

<cfif CurrentRow Mod 2>
<cfset BackColor="ffcc00">
<cfelse>
<cfset BackColor="DAE3E7">
</cfif>

that works just fine, but i would like to have the user to be able to change the colors , is that possible ?
so something like a popup with all the rainbow colors, and he could choose the 2 colors ..

Thanks in advance
 
You can create a form that essentially allows a user to choose different colors. The user then submits the form. Next, CF will receive the color values and set variables (session, cookie, etc) for each color. Then when you run your row color condition, use the variables that you set instead of hard code.
 
Thanks Tooled, easier then i thought, Thanks for the Tip :)
One more question though, can i have a color picker ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top