lazyrunner50
Programmer
I have a table whose cells I want to be able to change when the user rolls over them. I keep getting errors, and seeing as how IE is so helpful explaining what the errors are, I can't figure it out!! Here's what I have so far:
and here's the changeOpacity function
Code:
<a href="mySite.asp?somePassedVal=2" onMouseover=changeOpacity('dark', 'item2') onMouseout=changeOpacity('light', 'item2') >
<TD class='tableHeadingText' style='filter:alpha(opacity=70); cursor:hand' id='item2' BGCOLOR='#EBED3E'>
Blah, blah, blah
</TD>
</a>
Code:
function changeOpacity(lightOrDark, theElement)
{
if(lightOrDark = 'light')
getElementByID("theElement").style = 'filter:alpha(opacity=70);'
else
getElementByID("theElement").style = 'filter:alpha(opacity=90);'
}