Pretty simple in DHTML.

<HTML>
<HEAD>
<SCRIPT>
function doTime() {
        TheTime.innerHTML = new Date();
        setTimeout(doTime,1000);
}
</SCRIPT>
</HEAD>
<BODY onLoad="doTime()">

<SPAN ID="TheTime"></SPAN>

</BODY>
</HTML>

This is IE only, however. (But, let's face it, IE makes DHTML as easy as
pie. Netscape makes DHTML... well, not so easy.)

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Gonzo Rock [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 03, 2001 2:16 PM
> To: CF-Talk
> Subject: browser time display
> 
> 
> Curious if there is a way to show a constantly updating time 
> display in a browser... so that if the user idles for 30 
> minutes the time display keeps advancing showing the correct time?
> 
> thanks,
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to