Forum Moderators: open
<html><head>
<script type="text/javascript">function go()
{
var select, colors, color, select, k;
colors = ['#FF0066','#FF3366','#FF6666','#FF9966','#FFCC66','#FFFF66'];
select = document.getElementById('select');
options = select.options;
for(k=0;color=colors[k];k++)
{
options[k] = new Option(color,color)
options[k].style.backgroundColor = color;
}
mozChangeBG(select);
}// Moz doesn't use BG of selected option.
// Need to change select BG manually
function mozChangeBG(select)
{
if(document.all&&!window.opera) return;
select.style.backgroundColor
= select.options[select.selectedIndex].value;
}</script>
</head>
<body>
<select id="select" onchange="mozChangeBG(this)">
</select>
<button onclick="go()"> go </button>
</body>
</html>