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

Discussion in 'Javascript' started by Justin, Sep 28, 2003.

  1. Justin

    Justin Guest

    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
     
    Justin, Sep 28, 2003
    #1
    1. Advertisements

  2. .... which really don't say very much about the correctness of the code
    ....
    Referring to a named element as a property of the global object only
    "works" in IE.
    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
     
    Lasse Reichstein Nielsen, Sep 28, 2003
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.