Page 1 of 1

Display Date and Time on my Webpage

Posted: Wed Oct 10, 2007 12:55 pm
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

Re: Display Date and Time on my Webpage

Posted: Wed Oct 10, 2007 2:47 pm
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

works great

Posted: Wed Oct 10, 2007 3:28 pm
by jstorm13
Thanks,

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

Jason