
Displaying the Current Date and Current Time
Why?
99% of the people who can run such scripts already have a clock on their
status bar.
These will give you differenet variations of the current date:
<script language="VBScript">
<!--
document.write(now())
document.write(date())
document.write(formatdatetime(date(),1))
document.write(formatdatetime(date(),2))
-->
</script>
For IE3 you can use a textbox if you really feel the need to use a ticking
clock. With IE4, it's a little easier with DHTML. IMHO, either one is a
waste of resources... but here are some samples:
http://www.lexitech.com/bobrich/ate7.htm
http://netbeta.sogang.ac.kr/~yhchoi/main.htm
http://165.194.17.47/project/jscript/clock/
http://www.mindspring.com/~farsyde/javascript/help/dhtmlclockhelp.html
http://ntwrks.com/~ivan/dhtml/ex_2.htm
http://www.eramp.net/~pmemo/ieclocks.html
If none of these are good enough, it's amazing what five minutes at
AltaVista can turn up! :)
______
ab/mvp
www.desktop.on.ca
www.swynk.com/friends/bertrand/
Quote:
>Hello everyone,
>On a web page, I want to display the current data and time and have it
>continuously update. There are two ways in which I want to display this
>information.
>#1. have a 1 row, 2 column table with the date in the first box, the time
>in the second box.
>#2. Just display the two next to each other.
>thanks,
>rich