sreticentv
07-30-2006, 07:51 PM
I'm trying to dynamically change the background of a <TD> using javascript and it works in IE, but not firefox. Any suggestions would be much appreciated, here are some snippets.
The html looks like this
<TR height=24>
<TD class=topiclefttext id="Newstopic001"
background="lpnet_files/forumleft.gif" colSpan=2>....</TR>
my javascript looks like:
document.getElementById("Newstopic001").background = imagePath
in IE this works, but in firefox it doesn't.
The html looks like this
<TR height=24>
<TD class=topiclefttext id="Newstopic001"
background="lpnet_files/forumleft.gif" colSpan=2>....</TR>
my javascript looks like:
document.getElementById("Newstopic001").background = imagePath
in IE this works, but in firefox it doesn't.