----- Original Message -----
From: <[EMAIL PROTECTED]>
Sent: 28 July 2000 00:11
> coolness. Now to make it work with Netscape...
I got it working great - only problem it is that in is running the CPU on the
PC running the browser to view the page with the clock on to 100% and pegs it
there.
I noticed when the animated banners weren't animated any more :-)
Anyone else seeing that with that code - or have I missed a line out
somewhere?
Thanks.
Adrian Cooper.
>
> <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>
------------------------------------------------------------------------------
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.