Results 1 to 3 of 3

Thread: JavaScript and Style Sheets

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    2

    Question JavaScript and Style Sheets

    Hi, I am having problems getting javascript to change the style or class properties of an html tag. What I have is a table cell with a style sheet border around it. Then I use OnMouseOver to change the color:

    PTable.rows[i].cells[0].Style = "border-color: #5555FF";

    It doesn't give me an error... but it doesn't change the color either. I tried the same thing with the class property. Any ideas?

    Thanks.

  2. #2
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727
    i just use this and it works fine with style sheets.


    <tr onMouseOver="this.style.background = '#cccccc'" onmouseout="this.style.background='none'" style="cursor:none">

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    2

    Thumbs up

    Ah you gave me an idea... and it worked... sweet. Thanks for the input.

Posting Permissions

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



Click Here to Expand Forum to Full Width