Set the name of the css filename in application.cfm (or another file) and
then use the variable in the proper place.

That way, you are keeping as much HTML in the proper place.  

-----Original Message-----
From: Stuart Kidd [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 14, 2004 8:53 AM
To: CF-Talk
Subject: CSS filename in Application.cfm

Hi guys,

I would like my site to use a particular stylesheet depending on the month.

Would it be better to do this in the Application.cfm or on the actual .cfm
page.

My code is not tested and there could be an error, i don't use 

Application.cfm
<cfset thisEdition = #DatePart("m", UKTodayDate)#>

myPage.cfm
<link href="/webs/020/css/standard_#thisEdition#.css" rel="stylesheet"
type="text/css">

OR

Everything on myPage.cfm?

Thanks,

Saturday 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187526
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to