I have written this piece of code which will change the background colour of a table cell and the text colour of a link within it. This will only work in IE. Does anyone have any pointers on how to get it to work with Netscape?
Cheers,
Duncan
Code:
function changeButtonColor(id) {
if(document.getElementById) {
cell = document.getElementById(id+"Tab");
cell.background = "buttons/orangedot.gif";
theLink = document.getElementById(id+"Link");
theLink.style.color = "black";
} else {
// Netscape bit
}
}
Cheers,
Duncan