flamingsquirrel

cfloop Example

Use cfloop to change a class on every odd row.

<cfloop from=”1″ to=”something” index=”idx”>
<li <cfif idx mod 2>class=”odd”</cfif>>

One Response to “cfloop Example”

  1. AliasPoorYorik commented on

    You can do the same thing with a query:

    <cfloop query=”myQuery”>
    <li <cfif myQuery.CurrentRow mod 2>class=”odd”</cfif>>

    </cfloop>

Leave a Reply