Interested in the easiest way to alternate colors over the web? Here's some simple HTML combined with CSS to give the view look your users want!
Code
In the view you plan to use for the web:
Insert a new column to be the very first column and paste in this code:
"[<SCRIPT language=javascript> document.write('<TR valign=top
BGColor=' + (" + @DocNumber + " % 2 ? 'F0F4F0' : 'FFFFFF') + '><TD
valign=top>'); </SCRIPT>]"
Append a column to the end of your view and paste in this code:
"[</TD></TR>]"
Save and close your view.
Create your $$ViewTemplateDefault.
1) Set the Web Access Display properties set to "Using Views display property"
2) Paste the following code as pass-thru-html any where on the form:
<style type="text/css"><!--TD{padding-right:10px}; --></style>
This code will adjust your view column spacing for the web. Set the spacing to
whatever fits your scenario.
Good Luck!