Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 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
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Code:
    <td onMouseOver="this.className = 'hilight'" onMouseOut="this.className = 'regular'">

  • #3
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks it's not written how I needed it but I got the info I wanted.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •