this code is not work in Netscape but working in IE
please send the code for Netscape
thanks in advance
pawan
----- Original Message -----
From: Albetski, Allan <aalbetski@a...>
To: JavaScript HowTo <javascript_howto@p...>
Sent: Thursday, June 20, 2002 1:05 AM
Subject: [javascript_howto] RE: Swaping CSS
> <script>
> var lPrevRowIndex
> var lRowIndex
> </script>
> <table border="1" id="myTable">
> <tr><td id="row">This is row 1</td></tr>
> <tr><td id="row">This is row 2</td></tr>
> <tr><td id="row">This is row 3</td></tr>
> <tr><td id="row">This is row 4</td></tr>
> <tr><td id="row">This is row 5</td></tr>
> </table>
>
> <script for=row event=onmouseover>
> myTable.rows(lPrevRowIndex).style.backgroundColor=""
> lRowIndex = parentNode.rowIndex
> myTable.rows(lRowIndex).style.backgroundColor="wheat"
> lPrevRowIndex = lRowIndex
> </script>
>
> -----Original Message-----
> From: joee@v... [mailto:joee@v...]
> Sent: Wednesday, June 19, 2002 4:25 PM
> To: JavaScript HowTo
> Subject: [javascript_howto] Swaping CSS
>
>
> I have a table that holds any amout of rows. I want to be able to
> highlight the row when a user clicks on a row. If a uesr clicks on another
> row I want to highlight that row and change the any rows that have been
> clicked before. I need to change the bgColor, the font-color and the font-
> weight in the row.
>
> Thanks
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
>
>