----- Original Message -----
From: "Paul Ihrig" <[EMAIL PROTECTED]>
Sent: 27 July 2000 20:34
Great - thanks very much! Just got to get the date the right way round now
<g>.
Adrian Cooper.
> This works for me:
>
> Hope it helps
> -paul
>
> <HTML><HEAD>
> <TITLE>Got the Time , Buddy?</TITLE>
> </HEAD>
> <FONT face="Arial"><SPAN style="FONT-FAMILY: Arial">
> <CFSET todayDate = #DateFormat(Now(), "mm/dd/yyyy")#>
> <TABLE WIDTH="602" BORDER="0" CELLSPACING="0" CELLPADDING="0" VSPACE="0"
> HSPACE="0">
> <TR>
> <TD WIDTH="16%"> </TD>
> <TD WIDTH="16%"><B><CFOUTPUT>#todayDate#</CFOUTPUT></B> </TD>
> <TD WIDTH="68%">
> <CFPARAM NAME="Attributes.Font" DEFAULT="Arial">
> <CFPARAM NAME="Attributes.FontSize" DEFAULT="14">
> <CFPARAM NAME="Attributes.FontColor" DEFAULT="Black">
> <CFPARAM NAME="Attributes.Border" DEFAULT="NO">
> <CFPARAM NAME="Attributes.BorderWidth" DEFAULT="0">
> <CFPARAM NAME="Attributes.BGColor" DEFAULT="White">
> <CFPARAM NAME="Attributes.Padding" DEFAULT="0">
> <CFPARAM NAME="Attributes.ShowSeconds" DEFAULT="Yes">
> <CFPARAM NAME="Attributes.ShowAMPM" DEFAULT="Yes">
> <CFPARAM NAME="Attributes.Ticks" DEFAULT="100">
> <CFOUTPUT>
> <DIV ID="Clock" STYLE="font-family: #Attributes.Font#; font-size:
> #Attributes.FontSize#; color:#Attributes.FontColor#">
>
> </DIV></CFOUTPUT>
> <SCRIPT>function tick() {
> var hours, minutes, seconds, ap;
> var intHours, intMinutes, intSeconds;
> var today;
>
> today = new Date();
>
> intHours = today.getHours();
> intMinutes = today.getMinutes();
> intSeconds = today.getSeconds();
>
> if (intHours == 0) {
> hours = "12:";
> ap = "Midnight";
> } else if (intHours < 12) {
> hours = intHours+":";
> ap = "A.M.";
> } else if (intHours == 12) {
> hours = "12:";
> ap = "Noon";
> } else {
> intHours = intHours - 12
> hours = intHours + ":";
> ap = "P.M.";
> }
>
> if (intMinutes < 10) {
> minutes = "0"+intMinutes+":";
> } else {
> minutes = intMinutes+":";
> }
>
> if (intSeconds < 10) {
> seconds = "0"+intSeconds+" ";
> } else {
> seconds = intSeconds+" ";
> }
>
> timeString = hours+minutes<CFIF #Attributes.ShowSeconds# eq
> "Yes">+seconds</CFIF><CFIF #Attributes.ShowAMPM# eq "Yes">+ap</CFIF>;
>
> Clock.innerHTML = timeString;
> <CFOUTPUT>
> window.setTimeout("tick();", #Attributes.Ticks#);
> }
> </CFOUTPUT>
> window.onload = tick;
> </SCRIPT>
> </TD>
> </TABLE>
>
> </SPAN></FONT>
> </BODY>
> </HTML>
>
>
> -----Original Message-----
> From: Adrian Cooper [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, July 27, 2000 11:09 AM
> To: [EMAIL PROTECTED]
> Subject: Digital clock display
>
> Somewhat OT I know - but does anyone know of a piece of code for displaying
> a
> nice digital clock and peferably date on a CF based Website?
>
> Thanks.
>
> Adrian.
>
>
> ----------------------------------------------------------------------------
> --
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> ----------------------------------------------------------------------------
--
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.