Does anyone know how I add a clock to my website

  erkmatrix 10:16 29 Jun 2005

Hi can anyone tell me how I can add a clock and date to my Frontpage website. I have frontpage 2000 and only see a last updated clock stamp which is not what I want, I want one to change with normal time.

I did see some on a site but they had javascript and I couldn't get them to work when I put in the code into my html .

If anyone could help, that would be great

  De Marcus 10:27 29 Jun 2005

click here

I've never used them so check them out fully before uploading to your site.

  Eric10 10:47 29 Jun 2005

This is for a simple digital clock and was given in a recent Bravenet Newsletter. Put this script in the <head> section of your page:

<script type="text/javascript">

var timer = null

function stop() {



function start() {

var time = new Date()

var hours = time.getHours()

var minutes = time.getMinutes()

minutes=((minutes < 10) ? "0" : "") + minutes

var seconds = time.getSeconds()

seconds=((seconds < 10) ? "0" : "") + seconds

var clock = hours + ":" + minutes + ":" + seconds

document.forms[0].display.value = clock

timer = setTimeout("start()",1000)



Change the body tag to: <body onload="start()" onunload="stop()">

Then put this code where you want the clock to appear:


<input type="text" name="display" style="background-color: #E8EFFA; font: bold 11px verdana; width: 63px;">


You can change the colour, font size and width here to suit what you want.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Honor 9 Lite review

How Social Media has Propelled Political Graphic Design and Art in the Last Decade

The best kids apps for iPhone & iPad 2018

HomePod d’Apple : date de sortie, prix et fiche technique