Javascript people help me out!

Discussion in 'OT Technology' started by BeerSteak, Apr 18, 2005.

  1. BeerSteak

    BeerSteak New Member

    Joined:
    Sep 9, 2004
    Messages:
    451
    Likes Received:
    0
    Location:
    NYC / LA
    I'm trying to highlight the rows of a table on mouseover in another window. This seems like it should be the right code, but I keep getting syntax errors!!!

    wd.writeln( '<TR align=right onMouseOver="this.style.backgroundColor='rgb(255,255,0)';" >' );

    I get the error after the backgroundColor = ..... any help!

    PS: I m new to javascript. :o
     
  2. BeerSteak

    BeerSteak New Member

    Joined:
    Sep 9, 2004
    Messages:
    451
    Likes Received:
    0
    Location:
    NYC / LA
    got it.

    wd.writeln( "<TR align=right onMouseOver=this.style.backgroundColor='#FFFF00' onMouseOut=this.style.backgroundColor='#FFFFFF' bgcolor='#FFFFFF'>" );
     

Share This Page