PDA

View Full Version : Combo-Box Viewer


xektor
09-05-2006, 04:23 PM
1) Script Title:

Combo-Box Viewer

2) Script URL (on DD):

http://www.dynamicdrive.com/dynamicindex17/comboviewer.htm

3) Describe problem:

Can't make the links inside the form text with different than the default colour. Any ideas how to overcome this?

jscheuer1
09-06-2006, 02:58 AM
Which form? The combo box or the larger display area? For the text in the combo box (these are not actual links):

<select name="dropmsgoption" size="1" style="color:red;background-color:lightblue;" onChange="expandone()">
<option selected>What is JavaScript?</option>
<option>Difference betwen Java and JavaScript</option>
<option>What is DHTML?</option>
</select>

If you mean link text in the larger area, put this in the style section in the head:

.dropcontent a {
color:red;
}

If you have other styles defined for link pseudo classes like :link, :active, :visited, :hover - then you will need to define these pseudo classes for the .dropcontent a selector as well if you want them to be different than the others in IE.

xektor
09-06-2006, 07:10 AM
Thanks, John!