Hi Semikolon,
This is how the original code looks that Godstruth was kind enough to come up with for me.
IN THE HEAD OF THE PAGE I HAVE THIS:
------------------------------------------------------------ -----<script language="JavaScript">
function ON(num) {
document.getElementById("cell" + num).bgColor = "#cccccc";
};
function OFF(num) {
document.getElementById("cell" + num).bgColor = "#ffffff";
};
</script>
------------------------------------------------------------ -----
THE ACTUAL MENU LOOKS LIKE THIS:
<tr>
<td id="cell1" onMouseover="ON(1);" onMouseout="OFF(1);" onClick="link1.click();"><a href="default.asp"id="link1">cell 1</a></td>
</tr>
<tr>
<td id="cell2" onMouseover="ON(2);" onMouseout="OFF(2);" onClick="link2.click();"><a href="default.asp" id="link2">cell 2</a></td>
</tr>
------------------------------------------------------------ ------
My question is then how do I use two seperate color gifs instead of the HEX colours written in the head (i.e.Mouseover= Pic1.gif Mouseout= Pic2.gif)?
I tried adding the images to the head of the script, but everytime I hovered over a cell the image was continously have to be redownloaded. How can I rewite the head to display two different image gifs so that they do not have to be downloaded each time?
Kind Regards from Finland
Maxi:)