Web Analytics Made Easy -
StatCounter Changing Classes - CodingForum

Announcement

Collapse
No announcement yet.

Changing Classes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing Classes

    Is there a way to change the class of a section in a table??

    like:

    TD=document.getElementsByTagName("td)

    TD[1].=====


    From there I'm kinda lost I know there is a way to do it but I'm not sure. Oh by the way the class I'm refering to is from a style sheet. It already has one class I just want to change it's class then change it back (making a highlight effect when highlighted)

  • #2
    Code:
    <td onMouseOver="this.className = 'hilight'" onMouseOut="this.className = 'regular'">

    Comment


    • #3
      thanks it's not written how I needed it but I got the info I wanted.

      Comment

      Working...
      X