Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: table tag using javascript


Message #1 by soni29@h... on Sun, 25 Nov 2001 21:52:45
thanks Rob for correcting my mistake...

It should look like this... 

<tr onmouseover = "this.style.backgroundColor = ' red'"  onmouseout
"this.style.backgroundColor = 'white' ">

-----Original Message-----
From: Nyman, Robert [mailto:Robert.Nyman@i...]
Sent: Monday, November 26, 2001 7:37 AM
To: javascript
Subject: [javascript] RE: table tag using javascript


But again, the syntax will have to be like this:

<tr onmouseover = "this.style.backgroundColor = ' red'"  onmouseout
"this.style.backgroundColor = 'white' ">


/Robert



-----Original Message-----
From: Johnson, Israel [mailto:IJohnson@R...] 
Sent: den 26 november 2001 13:35
To: javascript
Subject: [javascript] RE: table tag using javascript


<tr onmouseover = "style.bgColor = ' red'"  onmouseout=  "style.bgColor = '
white' ">

	or 
use the class element with stylesheets in the javaScript event....



-----Original Message-----
From: soni29@h... [mailto:soni29@h...]
Sent: Sunday, November 25, 2001 4:53 PM
To: javascript
Subject: [javascript] table tag using javascript


hi,
i had a question, i wanted to make a table which has a white background 
(that i can do) once the user places his/her mouse over a certain row in 
the menu i want to change that rows color.  does anyone who know to use 
javascript to obtain this property of tag?
thank you.



  Return to Index