The heck you say.
I've done this many times in PHP -
$toggle=!$toggle; echo($toggle?"odd":"even");
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Tom Muck" <tommuck@NO-SPAM-hotmail.com> wrote in
message
news:f9t51p$c9p$1@forums.macromedia.com...
> If it is a static table then the PHP code won't do
anything either. A
> toggle only works on a dynamic table where a loop is
involved.
>
> Tom
>
>
> "Murray *ACE*" <forums@HAHAgreat-web-sights.com>
wrote in message
> news:f9suis$4vp$1@forums.macromedia.com...
>> Preferably just the way I showed in my original PHP
snippet.
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do
so!)
>> ==================
>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>> ==================
>>
>>
>> "Murray *ACE*"
<forums@HAHAgreat-web-sights.com> wrote in message
>> news:f9su9i$4jp$1@forums.macromedia.com...
>>> There is no loop. It's a static data table. I
need it all to be self
>>> contained in a single statement.
>>>
>>> --
>>> Murray --- ICQ 71997575
>>> Adobe Community Expert
>>> (If you *MUST* email me, don't LAUGH when you do
so!)
>>> ==================
>>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>>> ==================
>>>
>>>
>>> "Tom Muck" <tommuck@NO-SPAM-hotmail.com>
wrote in message
>>> news:f9strn$46a$1@forums.macromedia.com...
>>>>
>>>> "Murray *ACE*"
<forums@HAHAgreat-web-sights.com> wrote in message
>>>> news:f9sptl$t2g$1@forums.macromedia.com...
>>>>> There is no recordset. It's a static
page in a curiously CF site (all
>>>>> to only use cfincludes) that I have been
asked to 'fix'. So - would
>>>>> it be -
>>>>>
>>>>> <tr class="#IIF(toggle/mod2,
DE('odd'), DE('even'))#">#toggle =
>>>>> !toggle#
>>>>
>>>> Ah, you said "data table", which led me to
believe there was data in
>>>> it. :-)
>>>>
>>>> No, it would be:
>>>>
>>>> Initialize the toggle:
>>>>
>>>> <cfset toggle = 0>
>>>>
>>>> Inside the loop, increment it:
>>>>
>>>> <cfset toggle = toggle + 1>
>>>>
>>>> Then in the tag:
>>>>
>>>> <tr class="#IIF(toggle MOD 2, DE('odd'),
DE('even'))#">
>>>>
>>>> Tom
>>>>
>>>
>>>
>>
>>
>
>