
July 16th, 2001, 09:22 AM
|
|
|
|
The only way you can accomplish what you want programmatically, is if you have the content of your table coming from a seperate source (e.g.: a database or array) than the actual HTML of the table itself. If this is the case, then as you perform the loop in your code (either server-side code or client-side code, depending on whether you are using a database or array, respectively) for populating the table from the database, simply check the state of a boolean variable before you write each row (tr) and set the class accordingly. After you write the row, change the state of the variable so that you will be writing the other class the next time through.
__________________
 Michael
|