Preserved Topic: JavaScript Time & Date that updates itself |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Plano, TX |
posted 12-03-2001 20:50
I have this script (seen below) that displays (in the status bar) the time and date (which is always updating itself), but I need to have access to it with the actual Webpage itself (such as in the navigation bar, in plain text, not in a form text field)... can anyone help me? |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 12-03-2001 20:53
sdna2k: Why not put it in a form and then use CSS to get rid of the borders and change the background colour. I'm sure there are scripts out there that do what you want but that might be the simplest method. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 12-03-2001 20:59 |
Bipolar (III) Inmate From: Plano, TX |
posted 12-03-2001 21:01
I'me already using a variation of this script inside form elements, and I know it's picky, but I hate the text field look (even when camouflaged that way), and just wanted that clean "regular" text look so it would fit in with the navigation and graphics more smoothly. |
Bipolar (III) Inmate From: Plano, TX |
posted 12-03-2001 21:04
mr.maX: |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 12-03-2001 21:07
sdna2k: The reason I suggested doing things that way was the crossbrowser issues (OK it would have looked like a form in NS4.x but it would have worked). I'm sure there is a way around this - mr.maX should be able to sort it out I'd have thought!! |
Bipolar (III) Inmate From: Plano, TX |
posted 12-03-2001 21:09
Emperor: |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 12-03-2001 21:14
This cannot be done in NN3 since it doesn't have support for DHTML. But, it can be done in most major web browsers (NN4/6, Mozilla & IE). Anyway, to make it work in NN4 and older versions of IE, add the following function: |
Bipolar (III) Inmate From: Plano, TX |
posted 12-03-2001 21:30
I'm getting greedy now... but how easy would that first DIV thing be to integrate into a table? And can the date/time output be colored and bolded with tags? |
Bipolar (III) Inmate From: Plano, TX |
posted 12-03-2001 21:39
mr.maX: |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 12-03-2001 21:41 |