Here is the problem:
Link to form with color select
Notice in the color selector, the background color that I have given it
it the option statement changes on hover to a blue/gray.
Instead of background color change I would like the text to BOLD.
So on hovering over green, the text "green" goes green (bold) but
the background color stays green.
I have tried to do this with a onmouseover event but its not working.
Here is what I have:
Expand|Select|Wrap|Line Numbers
- <span class="select">Color:
- <select name="x_color" onChange="wrapText(document.getElementById('TheTextArea'),'[col='+this.value+']','[/col]');">
- <option style = "background-color: black; color: white;" value = 'black' selected= "selected" onMouseOver="background-color: black;">black </option>
- <option style = "background-color: blue;color: white;" value = 'blue' onMouseOver="background-color: blue;" >blue </option>
- <option style = "background-color: red;" value = 'red' onMouseOver="background-color: red;">red </option>
- <option style = "background-color: green;" value = 'green' onMouseOver="background-color: green;">green </option>
- <option style = "background-color: yellow;" value = 'yellow' onMouseOver="background-color: yellow;">yellow </option>
- <option style = "background-color: gray;" value = 'gray' onMouseOver="background-color: gray;">grey </option>
- <option style = "background-color: white" value = 'white' onMouseOver="background-color: white;">white </option>
- <option style = "background-color: brown;color: white;" value = 'brown' onMouseOver="background-color: brown;">brown </option>
- <option style = "background-color: orange;" value = 'orange' onMouseOver="background-color: orange;">orange </option>
- </select>
- </span>