guys, I am tired, exhausted, my eyes are burning and I have this twich under the left eye...
Please, puh-leh-sah(!) tell me how to acces the backgroundcolor of a table?
here is what i am working on:
<table id="zero">
blabla
</table>
<a href="javascript:cb('zero')">change background</a>
--- now, this is my problem:
<script>
function cb(id)
{
document.all.id.style.bgColor=#000000;
}
</script>
-----
I shortened everything, of courze, and it is to be programmed in IE...
1.) do I have to use something else than RGB-coded colors?
2.) am I suppose to insert style? and what is he background colors reference? (As you see, I used bgcolor, as it said in my books)
3.)is it ok, if I only insert id in the reference standing for 'zero'?
[ It should be... 'cuz' it's not saying : document.all.id. is undefined...]
4.)should i use eval like in this: eval("document.all."+id+"style.baclgrooundcolor=#000000")
[5.) would that be the right way? cause this way (and some others) doesn;t work...]
k10