Sebastian Becker: Dynamische Zebrastreifentabelle in IE gehts, wie in NN4?

Beitrag lesen

Hello, Stefan ,

How can this script be functional with layers in NN4?

This script automatically alternates colors of table rows (one color for evens, one for odds) dynamically, meaning that no statically numbered names oder IDs have to be given to the rows. So rows can be deleted and inserted and the color stripes stay organized. There is no document.write command used, so the table can be edited WYSIWYGly in HTML-Editors as Dreamweaver.

Your code seems to work (tested with IE 5.5) - but actually it's not correct as you are using the same name and ID for different elements. This might cause problems in some browsers.

As the perentage of NS4 users is rapidly decreasing (presently about 10%) I wouldn't bother to offer them a "luxury feature" anyway ...

Regards,

Sebastian Becker