Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternating sides

Status
Not open for further replies.

izachar

Technical User
Joined
Oct 7, 2000
Messages
84
Location
CA
My graphic desiger asked me to display a page where a picture and description is on the first row and the description and picture are on the next row. Like this it should alternate until the end of the query. I understand how to alternate colors in a table but how do I alternante the display of data?

thanks
 
<table>
<CFOUTPUT query=&quot;foobar&quot;<CFIF currentrow mod 2><tr><td>a</td><td>b</td></tr>
<CFELSE><tr><td>b</td><td>a</td></tr></CFIF></CFOUTPUT>
</table>
hope this helps,
Tony
 
Code:
<table>
<CFOUTPUT query=&quot;foobar&quot;>
 <CFIF currentrow mod 2>
  <tr><td>a</td><td>b</td></tr>
 <CFELSE>
  <tr><td>b</td><td>a</td></tr>
 </CFIF>
 </CFOUTPUT>
</table>

hope this helps,
Tony
 
thank you I guess It was obvious but I could not picture it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top