hello
i have a similar example fro u
on mouse over i the color would display, use this logic and implement it
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head>
<body>
<table width="45%" height="43" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20" bordercolor="#FF0000"><a href="#" onMouseOver="MM_showHideLayers('red','','show');" onMouseOut="MM_showHideLayers('red','','hide');" ><font color="#FF0000">Red</font></a></td>
<td width="20"><a href="#" onMouseOver="MM_showHideLayers('blue','','show')" onMouseOut="MM_showHideLayers('blue','','hide');"> <font color="#0000FF">Blue</font>
</a></td>
<td width="20"><a href="#" onMouseOver="MM_showHideLayers('green','','show')" onMouseOut="MM_showHideLayers('green','','hide');" ><font color="#00FF00">Green</font></a>
</td>
<td width="20"><a href="#" onMouseOver="MM_showHideLayers('yellow','','show') " onMouseOut="MM_showHideLayers('yellow','','hide'); "><font color="#FFFF00">Yellow</font></a></td>
</tr>
<tr>
<td width="20"> </td>
<td width="20"> </td>
<td width="20"> </td>
<td width="20"> </td>
</tr>
</table>
<div id="red" style="position:absolute; left:9px; top:33px; width:61px; height:22px; z-index:7; visibility: hidden;" >
<table width="100%" height="100%" border="0"cellpadding="4" cellspacing="0" bgcolor="#FF0000">
<tr>
<td align="center">
</td>
</tr>
</table>
</div>
<div id="blue" style="position:absolute; left:71px; top:33px; width:71px; height:22px; z-index:7; visibility: hidden;" >
<table width="100%" height="100%" border="0"cellpadding="4" cellspacing="0" bgcolor="#0000FF">
<tr>
<td align="center">
</td>
</tr>
</table>
</div>
<div id="green" style="position:absolute; left:145px; top:32px; width:100px; height:22px; z-index:7; visibility: hidden;" >
<table width="100%" height="100%" border="0"cellpadding="4" cellspacing="0" bgcolor="#00FF00">
<tr>
<td align="center">
</td>
</tr>
</table>
</div>
<div id="yellow" style="position:absolute; left:248px; top:33px; width:105px; height:22px; z-index:7; visibility: hidden;" >
<table width="100%" height="100%" border="0"cellpadding="4" cellspacing="0" bgcolor="#FFFF00">
<tr>
<td align="center">
</td>
</tr>
</table>
</div>
</body>
</html>