Click to See Complete Forum and Search --> : Change bgcolor in a function with argument


dafella24
08-04-2003, 09:56 AM
function mouseover(t)
{
t = "#ff0000";

}


</script>
<TABLE bgColor="black" border="1">
<TR>
<TD id='t1' onmouseover="mouseover('t1.style.backgroundColor ')" onmouseout="this.bgColor='#000000'"></TD>
<TD onmouseover="mouseover('this.bgColor ')" onmouseout="this.bgColor='#000000'" ></TD>
</TR>
</TABLE>


I tried passing two different arguments, neither worked. Any ideas guys?
Thanx

David Harrison
08-04-2003, 04:45 PM
Here's a script I made a while ago, you can modify this to do what you want. If you get stuck let me know.