You're not specifying which color you want to apply to the element.
You need to use the functions as follows:
function highlight(col,color) {
for(i=1; i<=100; i++) document.getElementById(col+i).style.backgroundColor=color;
}
And then you'll want to pass HEX Color Codes onto the function, like this:
onmouseover="highlight('colOne', '#fff')" would be white.
You can look up the color codes here: http://www.addedbytes.com/cheat-shee...t-sheet-v1.png
I managed to fix this, there was a typo in one of my cell id's
But, now its thrown up a couple of new problems.
For the rows of my column i'm using the <tr class="mycssclass"> to set the row style using css, this lets me highlight rows a specific colour depending on the cell values etc.
But my onmouseout code breaks the css. Is there anyway in the onmouseout event I can set the cell to the backcolor it was before the onmouseover event?
Bookmarks