How do I access this style of this element with javascript?

Discussion in 'Javascript' started by George Hester, Jul 20, 2004.

  1. Microsoft Internet Explorer.

    Here is the css for the element:

    td.clsMenu { font-size:85%;
    position: relative;
    visibility: visible;
    border-style: none; }
    td.clsMenu a:active { text-decoration: none; color: #00FF00; border-width: 3px; border-style: outset; border-color: #00FF00 #00FF00 #00FF00 #00FF00; }
    td.clsMenu a:hover { text-decoration: none; color: #0042FE; border-width: 3px; border-style: outset; border-color: #0042FE #0042FE #0042FE #0042FE; }

    I have this <td with an id an I can refer to it in script. This <td contains an image. It works sort of like this:

    The image has a border. When the mouse hovers over the image the border changes #0042FE from #FCCCCF.
    But as you can see above I get a mouse over on the <td class="clsMenu" element which also turns #0042FE.
    When the user mousedown the image's border changes #00FF00. But the <td class="clsMenu" doesn't change to
    #00FF00 as it seems it should by the above. It stays #0042FE. I'd like to change it #00FF00. Any suggestions
    how to refer to this element in javascript to change that? It is NOT border here. For in fact border-style is set to
    none as you see above. Thanks.

    --
    George Hester
    __________________________________
    George Hester, Jul 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. Hardeep Rakhra
    Replies:
    8
    Views:
    641
    Hardeep Rakhra
    Jan 15, 2004
  2. Spartanicus
    Replies:
    2
    Views:
    542
  3. HANM
    Replies:
    2
    Views:
    710
    Joseph Kesselman
    Jan 29, 2008
  4. Ken Varn
    Replies:
    0
    Views:
    447
    Ken Varn
    Apr 26, 2004
  5. Amir Hardon
    Replies:
    0
    Views:
    259
    Amir Hardon
    May 31, 2004
Loading...

Share This Page