Help mouse over a link to change a diffrent cell's background in Netscape

J

Justin

Ok here is working code in IE,

<td ID="TD1" width="478" height="553"
background="images/GUYONDOC.JPG" valign="top">. . . </td>


<a href="texana.htm"
onmouseout="document.images['texana'].src='images/Dot1.bmp';
TD1.background='images/GUYONDOC.JPG';"
onmouseover="document.images['texana'].src='images/Dot2.bmp';
TD1.background='images/jw_cow.jpg';
test.background='images/jw_cow.jpg';">
<img border="0" src="images/Dot1.bmp" width="14" height="14"
NAME="texana">TEXANA WESTERN HISTORY</a>

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

Thank you
 
L

Lasse Reichstein Nielsen

Ok here is working code in IE,

.... which really don't say very much about the correctness of the code
....
<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.
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top