Why not just use...

<link
href="/webs/020/css/standard_#lcase(monthAsString(month(now()))#.css"
rel="stylesheet" type="text/css"> 

Then create standard_january.css etc.

Martin Parry
http://www.beetrootstreet.co.uk

-----Original Message-----
From: Joe Rinehart [mailto:[EMAIL PROTECTED] 
Sent: 14 December 2004 14:02
To: CF-Talk
Subject: Re: CSS filename in Application.cfm

Hey Stuart,

This'd live best on myPage.cfm - it's usually not a good idea to put
anything that actually creates output into your application.cfm.  One
basic reason is that Murphy's law states that there will eventually be
some page where you don't want to use it.

-joe


On Tue, 14 Dec 2004 08:53:12 -0500, Stuart Kidd <[EMAIL PROTECTED]>
wrote:
> 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:187530
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