Click to See Complete Forum and Search --> : select and image
danituziel
12-24-2003, 09:40 AM
how can i show in the select tag an image
if at all it is possible!
<select>
<option><img src="red-brick.gif"></option>
</select>
is this possible?
if not can somebody sudjest something else?
fredmv
12-24-2003, 10:46 AM
See attachment.
PeOfEo
12-24-2003, 10:46 AM
It is not possible, Not that I have seen. You might put them inside of a list and use option (radio) buttons. EDIT: Heh Fred, you stole my idea before I had it posted. Edit again: wait never mind, Lol, but good idea with a background image.
fredmv
12-24-2003, 11:01 AM
Thanks. However, it appears to only work correctly under Mozilla.
PeOfEo
12-24-2003, 11:30 AM
such is life. Well radio buttons might be needed if one option needs to be selected and you need an image :(. What are you using this for anyway. Maybe we can think of some more stuff for you.
danituziel
12-25-2003, 01:24 AM
i need to show a list of workers and to sign each one with different colors
when one needs confirmation - yellow
when one needs to complete the report - red
when both - blue
now, i just color the background but i thought it is possible to put images which make it look beteer.
any ideas?
:)
fredmv
12-25-2003, 04:13 AM
<select style="width: 400px;">
<option style="background-color: #f00;">
Option 1
</option>
<option style="background-color: #00f;">
Option 2
</option>
<option style="background-color: #ff0;">
Option 3
</option>
</select>
danituziel
12-25-2003, 04:17 AM
this is the way i do it now.
i asked for a different way,
but thanx anyway...