RE: Continuous Clock

2001-01-25 Thread James Maltby

Java is the only way - and even that is rusty at the best of times - the
worst I've seen involved http refresh every second

James

-Original Message-
From: Cami Lawson [mailto:[EMAIL PROTECTED]]
Sent: 25 January 2001 16:50
To: CF-Talk
Subject: Continuous Clock


I have a display clock that shows the time the user accessed the page but
now they want a clock that shows the current time continuously.  I have
figured out countdown timers but is there an easy way to display the current
time continuously?

TIA
cami
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock

2001-01-25 Thread Christopher Olive, CIO

you need to look into java, javscript, or some other client side scripting.

try www.irt.org and their JS FAQ if you want to use javascript.  it's
WONDERFUL.

chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com



-Original Message-
From: Cami Lawson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 11:50 AM
To: CF-Talk
Subject: Continuous Clock


I have a display clock that shows the time the user accessed the page but
now they want a clock that shows the current time continuously.  I have
figured out countdown timers but is there an easy way to display the current
time continuously?

TIA
cami
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock

2001-01-25 Thread Johnson, Dana

SCRIPTfunction 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



CFOUTPUT
CFSET USER = CGI.REMOTE_USER
cfset Current_time = timeformat(now())
cfset hour = hour(now())
cfset day = dayofweek(now())
cfif hour(now()) lt 6 
DIV ALIGN="center"h2bWhat are you doing up/B/H2/DIV
H2 ALIGN="center"#UCASE(REMOVECHARS(USER,1,7))#/H2
   /cfif
cfif hour(now()) GTE 6 and hour(now()) lt 11 
DIV ALIGN="center"h2bGood morning!!!/B/H2/DIV
H2 ALIGN="center"#UCASE(REMOVECHARS(USER,1,7))#/H2
H2 ALIGN="center"FONT SIZE="4" COLOR="Blue"Quote of the
day/font/FONT/H2
/cfif  
cfif hour(now()) GTE 11 and hour(now()) LTE 12 
DIV ALIGN="center"h2bWelcome Users/B/H2/DIV 
H2 ALIGN="center"#UCASE(REMOVECHARS(USER,1,7))#/H2
H2 ALIGN="center"FONT SIZE="4" COLOR="Blue"Quote of the
day/font/FONT/H2
/cfif  

cfif hour(now()) GT 12 and hour(now()) LTE 16
DIV ALIGN="center"h2bGood afternoon!!/B/H2/DIV
H2 ALIGN="center"#UCASE(REMOVECHARS(USER,1,7))#/H2
H2 ALIGN="center"FONT SIZE="4" COLOR="Blue"Quote of the
day/font/FONT/H2  
/cfif  
cfelseIF  hour(now()) GTE 17
DIV ALIGN="center"h2bGood evening!!/B/H2/DIV
H2 ALIGN="center"#UCASE(REMOVECHARS(USER,1,7))#/H2
H2 ALIGN="center"FONT SIZE="4" COLOR="Blue"Quote of the
day/font/FONT/H2
/cfif  
/CFOUTPUT




Dana E. Johnson
Sr. Web Developer
CIT
VTF/Technology Financing Services
[EMAIL PROTECTED]
(904) 620-7458



-Original Message-
From: Cami Lawson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 10:50 AM
To: CF-Talk
Subject: Continuous Clock


I have a display clock that shows the time the user accessed the page but
now they want a clock that shows the current time continuously.  I have
figured out countdown timers but is there an easy way to display the current
time continuously?

TIA
cami
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock

2001-01-25 Thread Jeff Sarsoun

I don't know about the JAVA applet that refreshes the whole page to show the
sys time. I do know that most applets use a technique that just re-draws the
paint method, many can be found with a search of clock applets on any search
engine.

Jeff Sarsoun

-Original Message-
From: James Maltby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 12:09 PM
To: CF-Talk
Subject: RE: Continuous Clock


Java is the only way - and even that is rusty at the best of times - the
worst I've seen involved http refresh every second

James

-Original Message-
From: Cami Lawson [mailto:[EMAIL PROTECTED]]
Sent: 25 January 2001 16:50
To: CF-Talk
Subject: Continuous Clock


I have a display clock that shows the time the user accessed the page but
now they want a clock that shows the current time continuously.  I have
figured out countdown timers but is there an easy way to display the current
time continuously?

TIA
cami
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Continuous Clock

2001-01-25 Thread Ken Wilson

I've used a variation of this one without problems:

http://javascript.internet.com/clocks/dynamic-clock.html


- Original Message -
From: "Cami Lawson" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 11:49 AM
Subject: Continuous Clock


 I have a display clock that shows the time the user accessed the page but
now they want a clock that shows the current time continuously.  I have
figured out countdown timers but is there an easy way to display the current
time continuously?

 TIA
 cami



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock

2001-01-25 Thread Joshua Tipton

Do a form within a form that will refresh every second.  That way the entire
page wont reload all the time.



-Original Message-
From: James Maltby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 12:09 PM
To: CF-Talk
Subject: RE: Continuous Clock


Java is the only way - and even that is rusty at the best of times - the
worst I've seen involved http refresh every second

James

-Original Message-
From: Cami Lawson [mailto:[EMAIL PROTECTED]]
Sent: 25 January 2001 16:50
To: CF-Talk
Subject: Continuous Clock


I have a display clock that shows the time the user accessed the page but
now they want a clock that shows the current time continuously.  I have
figured out countdown timers but is there an easy way to display the current
time continuously?

TIA
cami
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock

2001-01-25 Thread JustinMacCarthy

or JavaScript  as below

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+seconds+ap;

  Clock.innerHTML = timeString;

  window.setTimeout("tick();", 100);
}

window.onload = tick;
--
/script
br


div id=ReplaceMe style="font-family: verdana; font-size: 20;"What you type
in below will replace this HTML/div



Justin

-Original Message-
From: James Maltby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 5:09 PM
To: CF-Talk
Subject: RE: Continuous Clock


Java is the only way - and even that is rusty at the best of times - the
worst I've seen involved http refresh every second

James

-Original Message-
From: Cami Lawson [mailto:[EMAIL PROTECTED]]
Sent: 25 January 2001 16:50
To: CF-Talk
Subject: Continuous Clock


I have a display clock that shows the time the user accessed the page but
now they want a clock that shows the current time continuously.  I have
figured out countdown timers but is there an easy way to display
the current
time continuously?

TIA
cami

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Continuous Clock

2001-01-25 Thread Jon Hall

The only way to actually show the seconds ticking is with javascript and a
form field, or a java applet. You could use cascading style sheets to change
the look of the form field to look more like a clock then... Check out the
irt.org page that someone reccommended earlier. They have a very nice
tutorial on time, and clocks with javascript.

jon
- Original Message -
From: "Cami Lawson" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 11:49 AM
Subject: Continuous Clock


 I have a display clock that shows the time the user accessed the page but
now they want a clock that shows the current time continuously.  I have
figured out countdown timers but is there an easy way to display the current
time continuously?

 TIA
 cami



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock - plus date with no DHTML

2001-01-25 Thread ron

 I have a display clock that shows the time the user accessed the
 page but now they want a clock that shows the current time
 continuously.  I have figured out countdown timers but is there
 an easy way to display the current time continuously?

Here's a simple one that doesn't rely on DHTML, shows the date too, updates
every second, and flashes the colon (don't do that in public) so you know
it's running. Watch for line wrap on the new Array line!!:

script language="JavaScript"!--
// set clock variables
var blink=false
var monthArray = new
Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec
')
var dn="AM"
var myclock = ''

function showTime(){
 var Digital=new Date()
 var monthNumber=Digital.getMonth()
 var month=monthArray[monthNumber]
 var day=Digital.getDate()
 var hours=Digital.getHours()
 var minutes=Digital.getMinutes()
 if (hours11){
   dn="PM"
   if (hours12)hours=hours-12
  }else{
   dn="AM"
 }
 if (hours==0)  hours=12
 if (minutes=9)minutes="0"+minutes
 myclock = month+' '+day+' - '
 if(blink==false){
   blink=true
   myclock += hours+':'+minutes+' '+dn
  }else{
   blink=false
   myclock += hours+' '+minutes+' '+dn
 }
 document.myClockForm.clockdisplay.value=myclock;
 setTimeout("showTime()",1000);
}
//--
/script

form name=myClockForm
input name=clockdisplay type=text style="font-family:Lucida
Console,monospace;background-color:black;color:lime;font-size:9px;text-align
:center;" class=clockdisplay value="" size=19 noedit
/form


Ron Allen Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]





~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Continuous Clock

2001-01-25 Thread Billy Cravens

It'd be cool if it worked in Netscape.

-- 
Billy Cravens
HR Web Development, Sabre
[EMAIL PROTECTED]



Ken Wilson wrote:
 
 I've used a variation of this one without problems:
 
 http://javascript.internet.com/clocks/dynamic-clock.html
 
 - Original Message -
 From: "Cami Lawson" [EMAIL PROTECTED]
 To: "CF-Talk" [EMAIL PROTECTED]
 Sent: Thursday, January 25, 2001 11:49 AM
 Subject: Continuous Clock
 
  I have a display clock that shows the time the user accessed the page but
 now they want a clock that shows the current time continuously.  I have
 figured out countdown timers but is there an easy way to display the current
 time continuously?
 
  TIA
  cami
 
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Continuous Clock

2001-01-25 Thread Cami Lawson

thanks to all, this is what finally worked, I needed to make sure it was EST

SCRIPTfunction tick() {
  var hours, minutes, seconds, ap;
  var intHours, intMinutes, intSeconds;
  var today;

  today = new Date();
  timezoneoffset = today.getTimezoneOffset();
  today.setTime(today.getTime() + timezoneoffset*60*1000);
  today.setTime(today.getTime() + -5*60*60*1000);

  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 IsDefined("Attributes.ShowSeconds") AND Attributes.ShowSeconds eq
"Yes"+seconds/CFIF
CFIF IsDefined("Attributes.ShowAMPM") AND Attributes.ShowAMPM eq
"Yes"+ap/CFIF;

  Clock.innerHTML = timeString;
CFOUTPUT
  window.setTimeout("tick();", #Attributes.Ticks#);
}
/CFOUTPUT
window.onload = tick;
/SCRIPT
div id="Clock" title="Clock"/div

- Original Message -
From: "Jon Hall" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 12:12 PM
Subject: Re: Continuous Clock


 The only way to actually show the seconds ticking is with javascript and a
 form field, or a java applet. You could use cascading style sheets to
change
 the look of the form field to look more like a clock then... Check out the
 irt.org page that someone reccommended earlier. They have a very nice
 tutorial on time, and clocks with javascript.

 jon
 - Original Message -
 From: "Cami Lawson" [EMAIL PROTECTED]
 To: "CF-Talk" [EMAIL PROTECTED]
 Sent: Thursday, January 25, 2001 11:49 AM
 Subject: Continuous Clock


  I have a display clock that shows the time the user accessed the page
but
 now they want a clock that shows the current time continuously.  I have
 figured out countdown timers but is there an easy way to display the
current
 time continuously?
 
  TIA
  cami
 
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock

2001-01-25 Thread Tim Fields

Just be aware that it's not Netscape compatible due to the innerHTML

-Original Message-
From: JustinMacCarthy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 10:02 AM
To: CF-Talk
Subject: RE: Continuous Clock


or JavaScript  as below

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+seconds+ap;

  Clock.innerHTML = timeString;

  window.setTimeout("tick();", 100);
}

window.onload = tick;
--
/script
br


div id=ReplaceMe style="font-family: verdana; font-size: 20;"What you type
in below will replace this HTML/div



Justin

-Original Message-
From: James Maltby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 5:09 PM
To: CF-Talk
Subject: RE: Continuous Clock


Java is the only way - and even that is rusty at the best of times - the
worst I've seen involved http refresh every second

James

-Original Message-
From: Cami Lawson [mailto:[EMAIL PROTECTED]]
Sent: 25 January 2001 16:50
To: CF-Talk
Subject: Continuous Clock


I have a display clock that shows the time the user accessed the page but
now they want a clock that shows the current time continuously.  I have
figured out countdown timers but is there an easy way to display
the current
time continuously?

TIA
cami

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock - plus date with no DHTML

2001-01-25 Thread Clint Tredway

pretty cool, but it doesn't show anything... :) (and yes I fixed the wrapping issues)

--
Clint Tredway
www.factorxsoftware.com
--

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Continuous Clock

2001-01-25 Thread Cami Lawson

thanks, it is an inner office page and they only use IE
- Original Message -
From: "Tim Fields" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 4:29 PM
Subject: RE: Continuous Clock


 Just be aware that it's not Netscape compatible due to the innerHTML

 -Original Message-
 From: JustinMacCarthy [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 25, 2001 10:02 AM
 To: CF-Talk
 Subject: RE: Continuous Clock


 or JavaScript  as below

 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+seconds+ap;

   Clock.innerHTML = timeString;

   window.setTimeout("tick();", 100);
 }

 window.onload = tick;
 --
 /script
 br


 div id=ReplaceMe style="font-family: verdana; font-size: 20;"What you
type
 in below will replace this HTML/div



 Justin

 -Original Message-
 From: James Maltby [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 25, 2001 5:09 PM
 To: CF-Talk
 Subject: RE: Continuous Clock
 
 
 Java is the only way - and even that is rusty at the best of times - the
 worst I've seen involved http refresh every second
 
 James
 
 -Original Message-
 From: Cami Lawson [mailto:[EMAIL PROTECTED]]
 Sent: 25 January 2001 16:50
 To: CF-Talk
 Subject: Continuous Clock
 
 
 I have a display clock that shows the time the user accessed the page but
 now they want a clock that shows the current time continuously.  I have
 figured out countdown timers but is there an easy way to display
 the current
 time continuously?
 
 TIA
 cami
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Continuous Clock

2001-01-25 Thread Ken Wilson

 It'd be cool if it worked in Netscape.


Yeah, that would be nice. I got spoiled working on that IE-only Intranet.
;)

Ken



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock - plus date with no DHTML

2001-01-25 Thread Katrina Chapman

You need to call it.  Something like.

head

script language="JavaScript"!--
// set clock variables
var blink=false
var monthArray = new
Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec
')
var dn="AM"
var myclock = ''

function showTime(){

"removed to save bandwidth"

//--
/script

/head

body onload="showTime()"

form name=myClockForm
input name=clockdisplay type=text
style="font-family:LucidaConsole,monospace;background-color:black;color:lime
;font-size:9px;text-align:center;" class=clockdisplay value="" size=19
noedit
/form

/body

-Original Message-
From: Clint Tredway [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 8:22 PM
To: CF-Talk
Subject: RE: Continuous Clock - plus date with no DHTML


pretty cool, but it doesn't show anything... :) (and yes I fixed the
wrapping issues)

--
Clint Tredway
www.factorxsoftware.com
--
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock - plus date with no DHTML

2001-01-25 Thread ron

Ya gotta start 'er up:

body onLoad="showTime();"

-ron

 -Original Message-
 From: Clint Tredway [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 25, 2001 2:22 PM
 To: CF-Talk
 Subject: RE: Continuous Clock - plus date with no DHTML
 
 
 pretty cool, but it doesn't show anything... :) (and yes I fixed 
 the wrapping issues)
 
 --
 Clint Tredway
 www.factorxsoftware.com
 --
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock

2001-01-25 Thread Jason Larson

Try the following code in your HTML

span id=tick2
/span

 script
 !--

 function show2(){
 var Digital=new Date()
 var hours=Digital.getHours()
 var minutes=Digital.getMinutes()
 var seconds=Digital.getSeconds()
 var dn="AM"
 if (hours12){
 dn="PM"
 hours=hours-12
 }
 if (hours==0)
 hours=12
 if (minutes=9)
 minutes="0"+minutes
 if (seconds=9)
 seconds="0"+seconds
 var ctime="font face='Tahoma' color='#00' size='1'bCurrent
time:/b  "+hours+":"+minutes+":"+seconds+" "+dn+"/font"
 if (!document.all)
 document.write(ctime)
 else
 tick2.innerHTML=ctime
 }
 function loadclock(){
 if (document.all)
 setInterval("show2()",1000)
 }
 if (!document.all)
 show2()
 //--
 /script


Jason

-Original Message-
From: Cami Lawson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 9:50 AM
To: CF-Talk
Subject: Continuous Clock


I have a display clock that shows the time the user accessed the page but
now they want a clock that shows the current time continuously.  I have
figured out countdown timers but is there an easy way to display the current
time continuously?

TIA
cami
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Continuous Clock

2001-01-25 Thread Johnson, Dana

I can get it to work on Netscape if you like
email me 

Cami: glad to see it work for you the code is used for our intranet and we
also are I.E. 

Dana E. Johnson
Sr. Web Developer
CIT
VTF/Technology Financing Services
[EMAIL PROTECTED]
(904) 620-7458



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists