Greetings
I have a main page and I want to display a moving digital clock on it? is it possible? I tried to research it but wasnt successfull, if som1 has already done it, please help me. thanks alot.
Greetings
I have a main page and I want to display a moving digital clock on it? is it possible? I tried to research it but wasnt successfull, if som1 has already done it, please help me. thanks alot.
Subject: clock applet
You bookmark.nsf file has several clock applets that you could use.
In Designer, export the applet to your hard drive. (Each of the clock applets is comprised of 5 files.)
Then, on the page, select Create - Java Applet.
Click the Locate button, and select the directory where you exported the applet.
Click the Add/Replace All button. Then click OK.
The clock applet will appear on your page. In Designer, the applet will look like a grey box; it only “runs” when displayed in the Client.
Subject: JavaScript solution
This works for web forms:Place this code in the JS header (or your script library):
function setTimeDiv() {
var myLocalTime = new Date().toLocaleString();
var myDay = new Date().getUTCDay() ;
document.getElementById(“time”).innerHTML = myLocalTime + " " + myDay;
if (myDay > 5) {
document.getElementById("time").style.color = "red";
}
setTimeout(“setTimeDiv()”, 1000);
}
In the onLoad event place this:
setTimeDiv()
Somewhere on your form, put something like this:
/eva