Display Date and Time on my Webpage

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jstorm13
Forum Newbie
Posts: 12
Joined: Wed Oct 10, 2007 12:40 pm

Display Date and Time on my Webpage

Post by jstorm13 »

I hope this is the correct place to post this.

My site, http://www.n17.com has a date/time display on the top right of the page.

It works great in IE but not in Mozilla or even Epiphany. Can someone help me out
with the fix? You can see the code in view/page source. If you need I can get you
a copy of the code.

It is written in Java.

Thanks for your help.

Jason
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Display Date and Time on my Webpage

Post by VladSun »

jstorm13 wrote:It is written in Java.
No, it written in JavaScript :)

Remove all if-blocks for Netscape from clock code. Also, make the inner code of "if-blocks" for MSIE unconditional - i.e. remove the "if".

Tested with FF2 and IE7
There are 10 types of people in this world, those who understand binary and those who don't
jstorm13
Forum Newbie
Posts: 12
Joined: Wed Oct 10, 2007 12:40 pm

works great

Post by jstorm13 »

Thanks,

did what you said and it works great now, thanks alot.

Jason
Post Reply