A Conversation for Go Go Gadget, err, Gadget

GMT Clock...

Post 1

GOD

I would like to have a clock that runs to GMT on some pages thanks... smiley - smiley

smiley - fish


GMT Clock...

Post 2

Amy the Ant - High Manzanilla of the Church of the Stuffed Olive

Dear GOD

Here is the code for a GMT clock. Unfortunately it isn't very pretty and doesn't work with all versions of Netscape. It works with Internet Explorer though.


<!-- hide

var output = '<\/FORM><\/CENTER>';
document.write(output);

function showTheTime() {
var today = new Date();
var intro = "The time GMT is ";
var GMT = intro + today.toGMTString();
document.clock[0].value=GMT;
setTimeout("showTheTime()",1000);
}

showTheTime();
end hide -->


Amy the Ant


GMT Clock...

Post 3

GOD

Greetings Amy !!! smiley - smiley

Thanks for replying so promptly... smiley - smiley

I've had a bit of trouble unfortunately trying to get it work... smiley - sadface

Any other ideas ??? smiley - smiley

smiley - fish


GMT Clock...

Post 4

Amy the Ant - High Manzanilla of the Church of the Stuffed Olive

That's odd. It works on my page. Can you see the clock at the top of my page?


GMT Clock...

Post 5

Matthew Kershaw

* Just passing on a message from GOD... smiley - winkeye *

No, your page comes up with a netscape alert & the page doesn't show it like when I tried it on another page...

M.K*


GMT Clock...

Post 6

Amy the Ant - High Manzanilla of the Church of the Stuffed Olive

I did tell God A that I didn't think it worked in Netscape. It doesn't show up at all in my copy of Netscape but perhaps I have the Java alerts switched off. I'll stop being so lazy and make it work in Netscape too. smiley - smiley


New improved code!

Post 7

Amy the Ant - High Manzanilla of the Church of the Stuffed Olive


<!-- hide

var output = '<\/FORM><\/CENTER>';
document.write(output);

function showTheTime() {
var today = new Date();
var intro = "The time GMT is ";
var GMT = intro + today.toGMTString();
document.clock.box.value=GMT;
setTimeout("showTheTime()",1000);
}

showTheTime();
//end hide -->


New improved code!

Post 8

Matthew Kershaw

Thanks !!! smiley - smiley

I'll give it a try tommorrow... smiley - smiley

Who knows MAD GERALD might even give you a big wet sloppy kiss in person !!! smiley - bigeyes

M.K*


Key: Complain about this post