Q: Local time display for website?

C

Christopher Krokos

Where can I get a code to display a local time on my site?

Thanks,
Chris
 
T

Thomas A. Rowe

In your IE Address bar type:

? JavaScript Date & Time Scripts

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
M

MD Websunlimited

T

Tom Pepper Willett

Bob:

Prolly because their visitors don't have clocks, watches, or clock on the
computer?

I did it years ago as a "newbie" because I thought you had to have every
conceivable bell and whistle on a web site. In those days, I designed for
what I thought I wanted, not what the visitor needed.

Including: "This site best viewed in Internet Explorer...." ;-)


--
=====================================================
Tom Pepper Willett [Microsoft MVP - FrontPage]
----------------------------------------------------------------------------
-------------------
Microsoft FrontPage:
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
http://msdn.microsoft.com/office/understanding/frontpage/

=====================================================
| I've always wondered why people want to do this?
|
| Bob Lehmann
|
| | > Where can I get a code to display a local time on my site?
| >
| > Thanks,
| > Chris
|
|
 
B

Bob Lehmann

But, did you have the "Lake" applet? Then you would have really been cookin'
with gas!

How times have changed. I remember when I was interviewing for jobs back in
'97ish, and the first question was always "Do you know how to do frames?".
Bleeding edge stuff, ya know.

It's kinda funny, but now-a-days if you don't possess at least some
capability in *nix, Windows, ASP, PHP, MSSQL, MySQL, Java/JSP/Struts,
JavaScript, all the relevant tools for using the aforementioned and - oh
yeah, HTML - you won't have a chance. The skillset I had 5 years ago,
wouldn't even get me an interview for the job I have now, which requires all
of the above - except ASP.

Bob Lehmann
 
T

Tom Pepper Willett

Good, God no, Bob. I drew the line at the Lake applet.

Tom

| But, did you have the "Lake" applet? Then you would have really been
cookin'
| with gas!
|
| How times have changed. I remember when I was interviewing for jobs back
in
| '97ish, and the first question was always "Do you know how to do frames?".
| Bleeding edge stuff, ya know.
|
| It's kinda funny, but now-a-days if you don't possess at least some
| capability in *nix, Windows, ASP, PHP, MSSQL, MySQL, Java/JSP/Struts,
| JavaScript, all the relevant tools for using the aforementioned and - oh
| yeah, HTML - you won't have a chance. The skillset I had 5 years ago,
| wouldn't even get me an interview for the job I have now, which requires
all
| of the above - except ASP.
|
| Bob Lehmann
|
| | > Bob:
| >
| > Prolly because their visitors don't have clocks, watches, or clock on
the
| > computer?
| >
| > I did it years ago as a "newbie" because I thought you had to have every
| > conceivable bell and whistle on a web site. In those days, I designed
for
| > what I thought I wanted, not what the visitor needed.
| >
| > Including: "This site best viewed in Internet Explorer...." ;-)
| >
| >
| > --
| > =====================================================
| > Tom Pepper Willett [Microsoft MVP - FrontPage]
|
--------------------------------------------------------------------------
| --
| > -------------------
| > Microsoft FrontPage:
| > http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| > http://msdn.microsoft.com/office/understanding/frontpage/
| > To assist you in getting the best answers for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > =====================================================
| > | > | I've always wondered why people want to do this?
| > |
| > | Bob Lehmann
| > |
| > | | > | > Where can I get a code to display a local time on my site?
| > | >
| > | > Thanks,
| > | > Chris
| > |
| > |
| >
| >
|
|
 
C

Christopher Krokos

Some people, less than 5% prefer first business contact by phone.
Unfortunetly they have no idea about currect time in various parts of
the world and I am in Thailand now...

Personally I hate doing business by phone...

Chris
 
C

Christopher Krokos

How about my original question, where can I get a FREE code to display
a local time on my site?

If you guys think it is silly and useless tool, just forget...

Have a great day :)
Chris


But gosh, it shimmered and stuff ! How cool is that ????

Bob Lehmann

Tom Pepper Willett said:
Good, God no, Bob. I drew the line at the Lake applet.

Tom

| But, did you have the "Lake" applet? Then you would have really been
cookin'
| with gas!
|
| How times have changed. I remember when I was interviewing for jobs back
in
| '97ish, and the first question was always "Do you know how to do frames?".
| Bleeding edge stuff, ya know.
|
| It's kinda funny, but now-a-days if you don't possess at least some
| capability in *nix, Windows, ASP, PHP, MSSQL, MySQL, Java/JSP/Struts,
| JavaScript, all the relevant tools for using the aforementioned and - oh
| yeah, HTML - you won't have a chance. The skillset I had 5 years ago,
| wouldn't even get me an interview for the job I have now, which requires
all
| of the above - except ASP.
|
| Bob Lehmann
|
| | > Bob:
| >
| > Prolly because their visitors don't have clocks, watches, or clock on
the
| > computer?
| >
| > I did it years ago as a "newbie" because I thought you had to have every
| > conceivable bell and whistle on a web site. In those days, I designed
for
| > what I thought I wanted, not what the visitor needed.
| >
| > Including: "This site best viewed in Internet Explorer...." ;-)
| >
| >
| > --
| > =====================================================
| > Tom Pepper Willett [Microsoft MVP - FrontPage]
|

--------------------------------------------------------------------------
| --
| > -------------------
| > Microsoft FrontPage:
| > http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| > http://msdn.microsoft.com/office/understanding/frontpage/
| > To assist you in getting the best answers for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > =====================================================
| > | > | I've always wondered why people want to do this?
| > |
| > | Bob Lehmann
| > |
| > | | > | > Where can I get a code to display a local time on my site?
| > | >
| > | > Thanks,
| > | > Chris
| > |
| > |
| >
| >
|
|
 
R

Ronx

I also question why designers want to display local time on a web page - it
is pointless.
I am in UK, local time (as I write this) is 11:27 AM. But I can see this
in the bottom right hand corner of my monitor.
I suspect that what you want me to see is the time in Thailand - which
definitely is *not* local, to me.
One solution is a server-side script (asp, Perl-cgi, php, whatever your
host supports) to display the Server's system time, adjusted for time
difference between the locations of the server and yourself, and daylight
saving if applicable.
The actual code depends on what's supported by your host.
 
F

Fuse - News

Here's javascript coding we put together for showing the Date and Time:

<!-- START DATE & TIME -->
<script language="JavaScript1.2">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");
// End -->
</script><!-- END DATE & TIME -->

To change how the Date and Time show, you alter this part:

document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");





Christopher Krokos said:
How about my original question, where can I get a FREE code to display
a local time on my site?

If you guys think it is silly and useless tool, just forget...

Have a great day :)
Chris


But gosh, it shimmered and stuff ! How cool is that ????

Bob Lehmann

Tom Pepper Willett said:
Good, God no, Bob. I drew the line at the Lake applet.

Tom

| But, did you have the "Lake" applet? Then you would have really been
cookin'
| with gas!
|
| How times have changed. I remember when I was interviewing for jobs back
in
| '97ish, and the first question was always "Do you know how to do frames?".
| Bleeding edge stuff, ya know.
|
| It's kinda funny, but now-a-days if you don't possess at least some
| capability in *nix, Windows, ASP, PHP, MSSQL, MySQL, Java/JSP/Struts,
| JavaScript, all the relevant tools for using the aforementioned and - oh
| yeah, HTML - you won't have a chance. The skillset I had 5 years ago,
| wouldn't even get me an interview for the job I have now, which requires
all
| of the above - except ASP.
|
| Bob Lehmann
|
| | > Bob:
| >
| > Prolly because their visitors don't have clocks, watches, or clock on
the
| > computer?
| >
| > I did it years ago as a "newbie" because I thought you had to have every
| > conceivable bell and whistle on a web site. In those days, I designed
for
| > what I thought I wanted, not what the visitor needed.
| >
| > Including: "This site best viewed in Internet Explorer...." ;-)
| >
| >
| > --
| > =====================================================
| > Tom Pepper Willett [Microsoft MVP - FrontPage]
|
------------------------------------------------------------------------- -
 
B

Bob Lehmann

3 people already answered your question.

Here, have another - Google for JavaScript DateTime.

Bob Lehmann

Christopher Krokos said:
How about my original question, where can I get a FREE code to display
a local time on my site?

If you guys think it is silly and useless tool, just forget...

Have a great day :)
Chris


But gosh, it shimmered and stuff ! How cool is that ????

Bob Lehmann

Tom Pepper Willett said:
Good, God no, Bob. I drew the line at the Lake applet.

Tom

| But, did you have the "Lake" applet? Then you would have really been
cookin'
| with gas!
|
| How times have changed. I remember when I was interviewing for jobs back
in
| '97ish, and the first question was always "Do you know how to do frames?".
| Bleeding edge stuff, ya know.
|
| It's kinda funny, but now-a-days if you don't possess at least some
| capability in *nix, Windows, ASP, PHP, MSSQL, MySQL, Java/JSP/Struts,
| JavaScript, all the relevant tools for using the aforementioned and - oh
| yeah, HTML - you won't have a chance. The skillset I had 5 years ago,
| wouldn't even get me an interview for the job I have now, which requires
all
| of the above - except ASP.
|
| Bob Lehmann
|
| | > Bob:
| >
| > Prolly because their visitors don't have clocks, watches, or clock on
the
| > computer?
| >
| > I did it years ago as a "newbie" because I thought you had to have every
| > conceivable bell and whistle on a web site. In those days, I designed
for
| > what I thought I wanted, not what the visitor needed.
| >
| > Including: "This site best viewed in Internet Explorer...." ;-)
| >
| >
| > --
| > =====================================================
| > Tom Pepper Willett [Microsoft MVP - FrontPage]
|
------------------------------------------------------------------------- -
 
C

Christopher Krokos

Thanks for the script. Tried to make it work with no success. Have few
questions...

(1) Where do I insert the script to? head or body of the page...
(2) How to align time/date display center, left, etc..?
(3) Have a current javascript to open pictures in the same size
windows, any conflict with the time/date script?

Chris



Here's javascript coding we put together for showing the Date and Time:

<!-- START DATE & TIME -->
<script language="JavaScript1.2">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");
// End -->
</script><!-- END DATE & TIME -->

To change how the Date and Time show, you alter this part:

document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");





Christopher Krokos said:
How about my original question, where can I get a FREE code to display
a local time on my site?

If you guys think it is silly and useless tool, just forget...

Have a great day :)
Chris


But gosh, it shimmered and stuff ! How cool is that ????

Bob Lehmann

Good, God no, Bob. I drew the line at the Lake applet.

Tom

| But, did you have the "Lake" applet? Then you would have really been
cookin'
| with gas!
|
| How times have changed. I remember when I was interviewing for jobs back
in
| '97ish, and the first question was always "Do you know how to do
frames?".
| Bleeding edge stuff, ya know.
|
| It's kinda funny, but now-a-days if you don't possess at least some
| capability in *nix, Windows, ASP, PHP, MSSQL, MySQL, Java/JSP/Struts,
| JavaScript, all the relevant tools for using the aforementioned and - oh
| yeah, HTML - you won't have a chance. The skillset I had 5 years ago,
| wouldn't even get me an interview for the job I have now, which requires
all
| of the above - except ASP.
|
| Bob Lehmann
|
| | > Bob:
| >
| > Prolly because their visitors don't have clocks, watches, or clock on
the
| > computer?
| >
| > I did it years ago as a "newbie" because I thought you had to have
every
| > conceivable bell and whistle on a web site. In those days, I designed
for
| > what I thought I wanted, not what the visitor needed.
| >
| > Including: "This site best viewed in Internet Explorer...." ;-)
| >
| >
| > --
| > =====================================================
| > Tom Pepper Willett [Microsoft MVP - FrontPage]
|
------------------------------------------------------------------------- -
| --
| > -------------------
| > Microsoft FrontPage:
| > http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| > http://msdn.microsoft.com/office/understanding/frontpage/
| > To assist you in getting the best answers for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > =====================================================
| > | > | I've always wondered why people want to do this?
| > |
| > | Bob Lehmann
| > |
| > | | > | > Where can I get a code to display a local time on my site?
| > | >
| > | > Thanks,
| > | > Chris
| > |
| > |
| >
| >
|
|
 
F

Fuse - News

You place the script in the location you want the date and time to display
at.

You align the time by using changing the <right> in the code below to what
ever you need it to do <center> <left>, etc. remember to change the closing
tag too.
document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");

Shouldn't conflict with any other javascript, but you'll have to check it
out on a page to make sure, as you never know.





Christopher Krokos said:
Thanks for the script. Tried to make it work with no success. Have few
questions...

(1) Where do I insert the script to? head or body of the page...
(2) How to align time/date display center, left, etc..?
(3) Have a current javascript to open pictures in the same size
windows, any conflict with the time/date script?

Chris



Here's javascript coding we put together for showing the Date and Time:

<!-- START DATE & TIME -->
<script language="JavaScript1.2">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");
// End -->
</script><!-- END DATE & TIME -->

To change how the Date and Time show, you alter this part:

document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");





Christopher Krokos said:
How about my original question, where can I get a FREE code to display
a local time on my site?

If you guys think it is silly and useless tool, just forget...

Have a great day :)
Chris


On Sat, 12 Jun 2004 19:49:29 -0600, "Bob Lehmann"

But gosh, it shimmered and stuff ! How cool is that ????

Bob Lehmann

Good, God no, Bob. I drew the line at the Lake applet.

Tom

| But, did you have the "Lake" applet? Then you would have really been
cookin'
| with gas!
|
| How times have changed. I remember when I was interviewing for
jobs
back
in
| '97ish, and the first question was always "Do you know how to do
frames?".
| Bleeding edge stuff, ya know.
|
| It's kinda funny, but now-a-days if you don't possess at least some
| capability in *nix, Windows, ASP, PHP, MSSQL, MySQL, Java/JSP/Struts,
| JavaScript, all the relevant tools for using the aforementioned
and -
oh
| yeah, HTML - you won't have a chance. The skillset I had 5 years ago,
| wouldn't even get me an interview for the job I have now, which requires
all
| of the above - except ASP.
|
| Bob Lehmann
|
| | > Bob:
| >
| > Prolly because their visitors don't have clocks, watches, or
clock
on
the
| > computer?
| >
| > I did it years ago as a "newbie" because I thought you had to have
every
| > conceivable bell and whistle on a web site. In those days, I designed
for
| > what I thought I wanted, not what the visitor needed.
| >
| > Including: "This site best viewed in Internet Explorer...." ;-)
| >
| >
| > --
| > =====================================================
| > Tom Pepper Willett [Microsoft MVP - FrontPage]
|


------------------------------------------------------------------------
-
-
| --
| > -------------------
| > Microsoft FrontPage:
| > http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| > http://msdn.microsoft.com/office/understanding/frontpage/
| > To assist you in getting the best answers for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > =====================================================
| > | > | I've always wondered why people want to do this?
| > |
| > | Bob Lehmann
| > |
| > | | > | > Where can I get a code to display a local time on my site?
| > | >
| > | > Thanks,
| > | > Chris
| > |
| > |
| >
| >
|
|
 
C

Christopher Krokos

Thank you for explanation. I am sure that everyone on
<microsoft.public.frontpage.client> knows well what you are talking
about except me, a poor biochemist :-( I don't even know what script's
closing tag is...sorry

If you could, please kindly set the whole script to show a local time
and date in Bangkok, Thailand. All I know is how to copy and paste
this bloody thing into my site. If you have no time my loss...

Anyway, thank you for all your help...

Christopher A Krokos
WoodCiti Thailand
http://www.the-wood.com/
http://www.woodroyal.com/




You place the script in the location you want the date and time to display
at.

You align the time by using changing the <right> in the code below to what
ever you need it to do <center> <left>, etc. remember to change the closing
tag too.
document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");

Shouldn't conflict with any other javascript, but you'll have to check it
out on a page to make sure, as you never know.





Christopher Krokos said:
Thanks for the script. Tried to make it work with no success. Have few
questions...

(1) Where do I insert the script to? head or body of the page...
(2) How to align time/date display center, left, etc..?
(3) Have a current javascript to open pictures in the same size
windows, any conflict with the time/date script?

Chris



Here's javascript coding we put together for showing the Date and Time:

<!-- START DATE & TIME -->
<script language="JavaScript1.2">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");
// End -->
</script><!-- END DATE & TIME -->

To change how the Date and Time show, you alter this part:

document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");





How about my original question, where can I get a FREE code to display
a local time on my site?

If you guys think it is silly and useless tool, just forget...

Have a great day :)
Chris


On Sat, 12 Jun 2004 19:49:29 -0600, "Bob Lehmann"

But gosh, it shimmered and stuff ! How cool is that ????

Bob Lehmann

Good, God no, Bob. I drew the line at the Lake applet.

Tom

| But, did you have the "Lake" applet? Then you would have really been
cookin'
| with gas!
|
| How times have changed. I remember when I was interviewing for jobs
back
in
| '97ish, and the first question was always "Do you know how to do
frames?".
| Bleeding edge stuff, ya know.
|
| It's kinda funny, but now-a-days if you don't possess at least some
| capability in *nix, Windows, ASP, PHP, MSSQL, MySQL, Java/JSP/Struts,
| JavaScript, all the relevant tools for using the aforementioned and -
oh
| yeah, HTML - you won't have a chance. The skillset I had 5 years ago,
| wouldn't even get me an interview for the job I have now, which
requires
all
| of the above - except ASP.
|
| Bob Lehmann
|
| | > Bob:
| >
| > Prolly because their visitors don't have clocks, watches, or clock
on
the
| > computer?
| >
| > I did it years ago as a "newbie" because I thought you had to have
every
| > conceivable bell and whistle on a web site. In those days, I
designed
for
| > what I thought I wanted, not what the visitor needed.
| >
| > Including: "This site best viewed in Internet Explorer...." ;-)
| >
| >
| > --
| > =====================================================
| > Tom Pepper Willett [Microsoft MVP - FrontPage]
|
------------------------------------------------------------------------ -
-
| --
| > -------------------
| > Microsoft FrontPage:
| > http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| > http://msdn.microsoft.com/office/understanding/frontpage/
| > To assist you in getting the best answers for FrontPage support
see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > =====================================================
| > | > | I've always wondered why people want to do this?
| > |
| > | Bob Lehmann
| > |
| > | | > | > Where can I get a code to display a local time on my site?
| > | >
| > | > Thanks,
| > | > Chris
| > |
| > |
| >
| >
|
|
 
S

Stefan B Rusynko

See http://javascript.internet.com/clocks/date-time-long.html




| Thank you for explanation. I am sure that everyone on
| <microsoft.public.frontpage.client> knows well what you are talking
| about except me, a poor biochemist :-( I don't even know what script's
| closing tag is...sorry
|
| If you could, please kindly set the whole script to show a local time
| and date in Bangkok, Thailand. All I know is how to copy and paste
| this bloody thing into my site. If you have no time my loss...
|
| Anyway, thank you for all your help...
|
| Christopher A Krokos
| WoodCiti Thailand
| http://www.the-wood.com/
| http://www.woodroyal.com/
|
|
|
|
| On Mon, 14 Jun 2004 09:44:19 -0400, "Fuse - News" <[email protected]>
| wrote:
|
| >You place the script in the location you want the date and time to display
| >at.
| >
| >You align the time by using changing the <right> in the code below to what
| >ever you need it to do <center> <left>, etc. remember to change the closing
| >tag too.
| >document.write("<right>" + lmonth + " ");
| >document.write(date + ", " + year + "</right>");
| >
| >Shouldn't conflict with any other javascript, but you'll have to check it
| >out on a page to make sure, as you never know.
| >
| >
| >
| >
| >
| >| >> Thanks for the script. Tried to make it work with no success. Have few
| >> questions...
| >>
| >> (1) Where do I insert the script to? head or body of the page...
| >> (2) How to align time/date display center, left, etc..?
| >> (3) Have a current javascript to open pictures in the same size
| >> windows, any conflict with the time/date script?
| >>
| >> Chris
| >>
| >>
| >>
| >> On Sun, 13 Jun 2004 09:41:30 -0400, "Fuse - News" <[email protected]>
| >> wrote:
| >>
| >> >Here's javascript coding we put together for showing the Date and Time:
| >> >
| >> ><!-- START DATE & TIME -->
| >> > <script language="JavaScript1.2">
| >> ><!-- Begin
| >> >var months=new Array(13);
| >> >months[1]="January";
| >> >months[2]="February";
| >> >months[3]="March";
| >> >months[4]="April";
| >> >months[5]="May";
| >> >months[6]="June";
| >> >months[7]="July";
| >> >months[8]="August";
| >> >months[9]="September";
| >> >months[10]="October";
| >> >months[11]="November";
| >> >months[12]="December";
| >> >var time=new Date();
| >> >var lmonth=months[time.getMonth() + 1];
| >> >var date=time.getDate();
| >> >var year=time.getYear();
| >> >if (year < 2000)
| >> >year = year + 1900;
| >> >document.write("<right>" + lmonth + " ");
| >> >document.write(date + ", " + year + "</right>");
| >> >// End -->
| >> ></script><!-- END DATE & TIME -->
| >> >
| >> >To change how the Date and Time show, you alter this part:
| >> >
| >> >document.write("<right>" + lmonth + " ");
| >> >document.write(date + ", " + year + "</right>");
| >> >
| >> >
| >> >
| >> >
| >> >
| >> >| >> >> How about my original question, where can I get a FREE code to display
| >> >> a local time on my site?
| >> >>
| >> >> If you guys think it is silly and useless tool, just forget...
| >> >>
| >> >> Have a great day :)
| >> >> Chris
| >> >>
| >> >>
| >> >> On Sat, 12 Jun 2004 19:49:29 -0600, "Bob Lehmann"
| >> >>
| >> >> >But gosh, it shimmered and stuff ! How cool is that ????
| >> >> >
| >> >> >Bob Lehmann
| >> >> >
| >> >> >| >> >> >> Good, God no, Bob. I drew the line at the Lake applet.
| >> >> >>
| >> >> >> Tom
| >> >> >>
| >> >> >> | >> >> >> | But, did you have the "Lake" applet? Then you would have really
| >been
| >> >> >> cookin'
| >> >> >> | with gas!
| >> >> >> |
| >> >> >> | How times have changed. I remember when I was interviewing for
| >jobs
| >> >back
| >> >> >> in
| >> >> >> | '97ish, and the first question was always "Do you know how to do
| >> >> >frames?".
| >> >> >> | Bleeding edge stuff, ya know.
| >> >> >> |
| >> >> >> | It's kinda funny, but now-a-days if you don't possess at least
| >some
| >> >> >> | capability in *nix, Windows, ASP, PHP, MSSQL, MySQL,
| >Java/JSP/Struts,
| >> >> >> | JavaScript, all the relevant tools for using the aforementioned
| >and -
| >> >oh
| >> >> >> | yeah, HTML - you won't have a chance. The skillset I had 5 years
| >ago,
| >> >> >> | wouldn't even get me an interview for the job I have now, which
| >> >requires
| >> >> >> all
| >> >> >> | of the above - except ASP.
| >> >> >> |
| >> >> >> | Bob Lehmann
| >> >> >> |
| >> >> >> | | >> >> >> | > Bob:
| >> >> >> | >
| >> >> >> | > Prolly because their visitors don't have clocks, watches, or
| >clock
| >> >on
| >> >> >> the
| >> >> >> | > computer?
| >> >> >> | >
| >> >> >> | > I did it years ago as a "newbie" because I thought you had to
| >have
| >> >> >every
| >> >> >> | > conceivable bell and whistle on a web site. In those days, I
| >> >designed
| >> >> >> for
| >> >> >> | > what I thought I wanted, not what the visitor needed.
| >> >> >> | >
| >> >> >> | > Including: "This site best viewed in Internet Explorer...."
| >;-)
| >> >> >> | >
| >> >> >> | >
| >> >> >> | > --
| >> >> >> | > =====================================================
| >> >> >> | > Tom Pepper Willett [Microsoft MVP - FrontPage]
| >> >> >> |
| >> >> >>
| >> >>
| >>
| >>>> ------------------------------------------------------------------------
| >-
| >> >-
| >> >> >> | --
| >> >> >> | > -------------------
| >> >> >> | > Microsoft FrontPage:
| >> >> >> | >
| >http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| >> >> >> | > http://msdn.microsoft.com/office/understanding/frontpage/
| >> >> >> | > To assist you in getting the best answers for FrontPage support
| >> >see:
| >> >> >> | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| >> >> >> | > =====================================================
| >> >> >> | > | >> >> >> | > | I've always wondered why people want to do this?
| >> >> >> | > |
| >> >> >> | > | Bob Lehmann
| >> >> >> | > |
| >> >> >> | > | | >> >> >> | > | > Where can I get a code to display a local time on my site?
| >> >> >> | > | >
| >> >> >> | > | > Thanks,
| >> >> >> | > | > Chris
| >> >> >> | > |
| >> >> >> | > |
| >> >> >> | >
| >> >> >> | >
| >> >> >> |
| >> >> >> |
| >> >> >>
| >> >> >>
| >> >> >
| >> >>
| >> >
| >> >
| >>
| >
| >
|
 
F

Fuse - News

Do you want the time to be left justified, right justified or centered?

Time in Thailand, does this have to be in english or some other language?

I can provide the script with the alignment setup, but as for the langauage,
sorry cannot help you there.


Christopher Krokos said:
Thank you for explanation. I am sure that everyone on
<microsoft.public.frontpage.client> knows well what you are talking
about except me, a poor biochemist :-( I don't even know what script's
closing tag is...sorry

If you could, please kindly set the whole script to show a local time
and date in Bangkok, Thailand. All I know is how to copy and paste
this bloody thing into my site. If you have no time my loss...

Anyway, thank you for all your help...

Christopher A Krokos
WoodCiti Thailand
http://www.the-wood.com/
http://www.woodroyal.com/




You place the script in the location you want the date and time to display
at.

You align the time by using changing the <right> in the code below to what
ever you need it to do <center> <left>, etc. remember to change the closing
tag too.
document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");

Shouldn't conflict with any other javascript, but you'll have to check it
out on a page to make sure, as you never know.





Christopher Krokos said:
Thanks for the script. Tried to make it work with no success. Have few
questions...

(1) Where do I insert the script to? head or body of the page...
(2) How to align time/date display center, left, etc..?
(3) Have a current javascript to open pictures in the same size
windows, any conflict with the time/date script?

Chris



Here's javascript coding we put together for showing the Date and Time:

<!-- START DATE & TIME -->
<script language="JavaScript1.2">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");
// End -->
</script><!-- END DATE & TIME -->

To change how the Date and Time show, you alter this part:

document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");





How about my original question, where can I get a FREE code to display
a local time on my site?

If you guys think it is silly and useless tool, just forget...

Have a great day :)
Chris


On Sat, 12 Jun 2004 19:49:29 -0600, "Bob Lehmann"

But gosh, it shimmered and stuff ! How cool is that ????

Bob Lehmann

Good, God no, Bob. I drew the line at the Lake applet.

Tom

| But, did you have the "Lake" applet? Then you would have really been
cookin'
| with gas!
|
| How times have changed. I remember when I was interviewing for jobs
back
in
| '97ish, and the first question was always "Do you know how to do
frames?".
| Bleeding edge stuff, ya know.
|
| It's kinda funny, but now-a-days if you don't possess at least some
| capability in *nix, Windows, ASP, PHP, MSSQL, MySQL, Java/JSP/Struts,
| JavaScript, all the relevant tools for using the aforementioned and -
oh
| yeah, HTML - you won't have a chance. The skillset I had 5
years
ago,
| wouldn't even get me an interview for the job I have now, which
requires
all
| of the above - except ASP.
|
| Bob Lehmann
|
| | > Bob:
| >
| > Prolly because their visitors don't have clocks, watches, or clock
on
the
| > computer?
| >
| > I did it years ago as a "newbie" because I thought you had to have
every
| > conceivable bell and whistle on a web site. In those days, I
designed
for
| > what I thought I wanted, not what the visitor needed.
| >
| > Including: "This site best viewed in Internet Explorer...." ;-)
| >
| >
| > --
| > =====================================================
| > Tom Pepper Willett [Microsoft MVP - FrontPage]
|



-----------------------------------------------------------------------
-
-
-
| --
| > -------------------
| > Microsoft FrontPage:
| > http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
| > http://msdn.microsoft.com/office/understanding/frontpage/
| > To assist you in getting the best answers for FrontPage support
see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > =====================================================
| > | > | I've always wondered why people want to do this?
| > |
| > | Bob Lehmann
| > |
| > | | > | > Where can I get a code to display a local time on my site?
| > | >
| > | > Thanks,
| > | > Chris
| > |
| > |
| >
| >
|
|
 
Top