You have to use cfcontent to have it output the image correctly.

> -----Original Message-----
> From: Che Vilnonis [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 18, 2006 4:29 PM
> To: CF-Talk
> Subject: RE: Quick CF & CSS question.
> 
> I think I can write something like this...
> 
>       background: url(../_hdrs/random.cfm);
> 
> Then, on random.cfm, can I do this?
> 
>       <cfoutput>header#DayOfWeek(Now())#.jpg</cfoutput>
> 
> I've seen some PHP sites do it this way, but I can't seem to get it to
> work
> quite yet.
> 
> ~Che
> 
> -----Original Message-----
> From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 18, 2006 4:17 PM
> To: CF-Talk
> Subject: Re: Quick CF & CSS question.
> 
> 
> Yes/No ... Yes if you go into your webserver and set .css files to be
> processed by your cold fusion server .. but that means all of your style
> sheets will be ran as CF templates at all times on the server.
> 
> 
> Paul Giesenhagen
> QuillDesign
> 417-885-1375
> http://www.quilldesign.com
> SiteDirector Shopping Cart Software
> 
> 
> ----- Original Message -----
> From: "Che Vilnonis" <[EMAIL PROTECTED]>
> To: "CF-Talk" <cf-talk@houseoffusion.com>
> Sent: Friday, August 18, 2006 3:09 PM
> Subject: Quick CF & CSS question.
> 
> 
> > I've got this line of code in a CSS file (default.css).
> >
> > background: url(../_hdrs/header1.jpg);
> >
> > I'd like to change it to have a random image generated using something
> > like
> > this
> >
> > background:
> > url(../_hdrs/header<cfoutput>#DayOfWeek(Now())#</cfoutput>.jpg);
> >
> > How can I do this with a CSS file? Can this be done w/o changing the
> > extension to .cfm?
> >
> > Thanks, Che
> >
> >
> >
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250333
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to