It's going to depend a little on how the script works, but at a guess it's
something like
function Days2Xmas(date)
{
...
}
This is probably in a file something like Days2Xmas.udf.
If so, simply cfinclude the file. Then you can treat Days2Xmas like any
other CF function. So, to figure how long from now to Christmas, you'd call
something like
<cfoutput>
There are #days2xmas(now())# days until Christmas.
</cfoutput>
--Ben Doom
Programmer & General Lackey
Moonbow Software
: -----Original Message-----
: From: Tim Laureska [mailto:hometeam@;goeaston.net]
: Sent: Wednesday, October 30, 2002 2:01 PM
: To: CF-Talk
: Subject: new to CFSCRIPT
:
:
: Hello All.. I visited CFLib.org today for the first time and stumbled
: across a cfscript that calculates the number of days till Christmas..
: I'd like to make use of that on a site, but am not familiar with how to
: incorporate cfscripts into a page.. Can someone give me a starting
: pointer here?
:
: Thanks in Advance
: Tim Laureska
:
:
:
:
:
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com