Addressing Table Cell Contents in DOM using .all[nn] or ???

Discussion in 'Javascript' started by Earl T, Oct 20, 2004.

  1. Earl T

    Earl T Guest

    I just started doing relative DOM addressing to address contents of my
    objects. Most of it is very simple but I was wondering of the .all[]
    syntax is the most compatible and best was of addressing the objects
    withing a table cell?

    For example, I have a table with

    <TR onmouseover="TabOver(this)">
    <TD>
    <img src="spacer5.gif">
    </TD>
    </TR>

    And the function looks like

    function TabOver(TabRow)
    {
    TabRow.cells[0].all[0].src='/images/foo.gif'
    }

    Thanks

    Earl
     
    Earl T, Oct 20, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?RWFybCBUZWlncm9i?=

    Addressing Table Cell Contents in DOM using .all[nn] or ???

    =?Utf-8?B?RWFybCBUZWlncm9i?=, Oct 21, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    386
    =?Utf-8?B?RWFybCBUZWlncm9i?=
    Oct 22, 2004
  2. PJ6
    Replies:
    1
    Views:
    393
    darrel
    Aug 17, 2005
  3. Aaron
    Replies:
    0
    Views:
    392
    Aaron
    Dec 29, 2005
  4. Andrew Poulos
    Replies:
    7
    Views:
    185
    Richard Cornford
    Jan 18, 2005
  5. Replies:
    0
    Views:
    209
Loading...

Share This Page