jcwilson00 (AT) hotmail (DOT) com (Justin) writes:
Quote:
Ok here is working code in IE, |
.... which really don't say very much about the correctness of the code
....
Quote:
td ID="TD1" width="478" height="553"
background="images/GUYONDOC.JPG" valign="top">. . . </td
TD1.background='images/GUYONDOC.JPG';" |
Referring to a named element as a property of the global object only
"works" in IE.
Quote:
The link image changes fine in both ie and netscape. But the
Background of TD1 only changes in IE. Please help get this working
in Netscape |
I assume you mean Netscape 6+ (i.e., a browser based on Mozilla),
since Netscape 4 can't access the td element at all.
Change the TD1.background... line to
---
document.getElementById("TD1").style.backgroundIma ge =
"url('images/GUYONDOC.JPG')";
---
/L
--
Lasse Reichstein Nielsen - lrn (AT) hotpop (DOT) com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'