Alternate row colours on shopa_editdisplay.asp
Untitled Document
To make it easier to define each row in shopa_editdisplay.asp, you can add some code to alternate the row colours.
1. Open shopa_editdisplay.asp and locate the following lines (about line 367) -
' Now lets grab all the records
howmanyrecs=0
2. Add the following below -
dim rowcolor
rowcolor = 0
3. Locate the following line about 10 lines below the above -
response.write "<tr>"'tablerow
4. Change to -
if rowcolor=0 then
response.write "<tr>"'tablerow
rowcolor=1
else
response.write "<tr bgcolor='#cccccc'>"'tablerow
rowcolor=0
end if
You can change #cccccc to be any color code you want.
Times Viewed:
2325 |
Added By:
Claire Banks |
Date Created:
8/8/2007 |
Last Updated:
8/8/2007 |
|