hi,
How can this script be functional with layers in NN4?
This script automatically alternates colors of table rows
to work with NC4x you have to use div-layers, which means _positioned_ divs (I would not use the old-fashioned layer-tag). Nc4x is _not_ able to change the color of tablecells after the document-rendering is done.
If there are _no_ other div-layers it is simple, because document.layers is an array of all layer-objects. So You are able to loop through all available layer-objects and change the css properties like color, position etc. Using "%" (modulo) You can set the color depending of the array key.
If there are other layers You have to find a way to exclude them, depending on Your source-code.
hth + regards Joachim