17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 716 Views |
-
<% if Odd %> doesn't work

7 December 2007 at 11:44pm
Hello,
I have been trying to use <% if Odd %> to alternate background colours of a list. This works for the first and second entries. However, the third and greater entries have the same background colour as the second entry.
<% if Odd %>
<tr class="bg_colour1">
<% else %>
<tr class="bg_colour2">
<% end_if %>However, <% if Even %> works fine and provides an alternative method to achieve the same result.
<% if Even %>
<tr class="bg_colour2">
<% else %>
<tr class="bg_colour1">
<% end_if %>Anyone experienced the same issue?
Cheers,
Gary
| 716 Views | ||
|
Page:
1
|
Go to Top |

