I usually use CSS to set the background colors of them.
I have a table in my dbase with a bunch of colors in it, then I do
something like this for the style tag.
<style>
<cfoutput query="getColors">
option.#getColors.colorHex# { color : #getColors.colorHex#; }
</cfoutput>
</style>
Then this for the select box.
<select name="Color">
<cfoutput query="getColors">
<option class="#getColors.colorHex#"
value="#getColors.colorName#">#getColors.colorName#</option>
</cfoutput>
</select>
______________________
steve oliver
atnet solutions, inc.
http://www.atnetsolutions.com
-----Original Message-----
From: Douglas Brown [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:56 PM
To: CF-Talk
Subject: Background image in select box
Is there a way to put a background image in a select box? What I want to
do is set up a admin page for a message board to allow the admin to
choose the colors for the site.
I would like to do something like so, but do not know how, or if it is
even possible.
<SELECT NAME="color_1">
<OPTION VALUE="" SELECTED>Please choose
<OPTION VALUE="##800FF9" style="background-image: 800FF9.gif;">
</SELECT>
There are two major products that come out of Berkeley: LSD and [Unix]
BSD. We don't believe this to be a coincidence.
Doug Brown
______________________________________________________________________
Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists