VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497
Live Chat

Alternate row colours on shopa_editdisplay.asp

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
Back Search other topics Submit a Ticket