Then again, the best way to do it is probably:
<span class=colourchanger>#Arguments.status#</span>
And set this in your stylesheet
..... Having got that far, I can't find the syntax I need, but there's a
way to set a style depending on the content of a tag, so it looks like:
A.colourchanger:(content="ONLINE"){color=green}
A.colourchanger:(content="OFFLINE"){color=red}
My syntax is wrong, although the concept is right, but I can't find the
details... Can anyone finish that for me? (I know it's not a CF
solution, but hey)
-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: 03 March 2005 16:11
To: CF-Newbie
Subject: RE: change font color based on content[Scanned]
This floated my boat for all of 5 minutes:
<cffunction name="RightWayWrongWay" output="no" returntype="string">
<cfargument name="status" required="yes" type="string">
<cfargument name="who" required="no" default="adrian"
type="string">
<!--- The right way --->
<cfif ARGUMENTS.who EQ "adrian">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase Contribute 3 from House of Fusion, a Macromedia Authorized Affiliate
and support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=53
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:724
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54