by lvermeersch on Thu Sep 15, 2005 10:56 am
I can add my table code to make things more clear.
<table width=100% >
<tr> <td width=170px id="MenuafbSM1" background="Clown button.jpg">
<span id=MenutekstSM1 language="javascript" onmouseover="alert(document.getElementById('MenuafbSM1').background);" onclick="document.getElementById('ID_Scherm').contentWindow.document.location='Mijn vrienden_GEN.htm'"> Mijn vrienden</span>
</td>
</tr></table>
I now have used
onmouseover="alert(document.getElementById('MenuafbSM1').background);"
this gives Clown button.jpg as result but notice only the second time i hover over the span, the first time i get Undefined as a result.
Probably this causes to prevent the background cellchange
and i want to use
onmouseover="document.getElementById('MenuafbSM1').background='Clown button2.jpg';"
to change the cell background when hovering over span but this does not work.
(Don't bother about the table span construction, this has to be this way because it is generated code and has allso other functions.)