Hello,
I'm having a problem dynamically changing the color of a table background.
I'm not sure exactly how to word this, but I'll give an example.
I have a function called greentored(prop name)
i want to be able to change the following to a different color:
document.all.pr opname.style.vi sibility
but substitute the propname with the variable that I'm sending over.
Here is what I had written before but it did not work, it should be easy to
understand what i'm trying to do:
function greentored(prop name) {
changecolor = "document.a ll." + propname + ".style.backgro und";
changecolor = "green";
}
I understand why this doesn't work because all i'm doing is reasigning
"changecolo r" to equal green, rather then setting the property of the first
instance of "changecolo r" to green. I hope I explained this well enough.
Thanks,
Billy