Closed Thread Icon

Topic awaiting preservation: Simple clock (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12258" title="Pages that link to Topic awaiting preservation: Simple clock (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Simple clock <span class="small">(Page 1 of 1)</span>\

 
Ducati
Paranoid (IV) Inmate

From: in your head
Insane since: Feb 2001

posted posted 06-11-2002 13:41

Hey guys... how can I put a simple clock in the corner of my website?? Nothing fancy, just simple 10:21 a.m. format in like 11px Arial Font???

Thanks..

I know its simple but I can't find any info on the internet on how to do it..

Can I do it without using SSI and just go with visitors computer clock???

MAX

Xdreamer.ch
Maniac (V) Inmate

From: Switzerland
Insane since: Mar 2001

posted posted 06-11-2002 14:27

in php?

I made it with a function

code:
<?PHP
Function GetTime()
{
$localtime = getdate();
RETURN $localtime;
}

$localtime = GetTime($localtime);
PRINT "$localtime[hours]:$localtime[minutes] Uhr<BR>";
?>



hope it helps

cu
~Xdreamer.ch~
-------------------------------
to stupid for transparent sigs

Ducati
Paranoid (IV) Inmate

From: in your head
Insane since: Feb 2001

posted posted 06-11-2002 14:31

uuh.. can you explain this thing to me?? LOL its all Greek to me my friend.. I am not that good with programming... =)

what do I do with that code you posted???

MAX

Xdreamer.ch
Maniac (V) Inmate

From: Switzerland
Insane since: Mar 2001

posted posted 06-11-2002 14:48

do you got ICQ/AIM Max?

cu
~Xdreamer.ch~
-------------------------------
to stupid for transparent sigs

RypTide
Nervous Wreck (II) Inmate

From: Manassas VA, USA
Insane since: May 2002

posted posted 06-11-2002 14:52

You would simply put that chunk where you wanted the clock to go...

or you could leave it at the top of your page, and take out the PRINT line. Then wherever you wanted the clock to display, you could do:

<?= $localtime[hours].":".$localtime[minutes] ?>


Hope this helps. Good Luck!

RypTide

"Music is the vernacular of the human soul" ~ Geoffrey Latham

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 06-11-2002 18:21

But if you actually want it to work I would take a look at JavaScript.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 06-12-2002 04:25

If it's apache with XSSI turned on you can use SSI as well

(JS is sometimes better since it will give the local time instead of the server time)



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

Ducati
Paranoid (IV) Inmate

From: in your head
Insane since: Feb 2001

posted posted 06-12-2002 04:43

Got it figured out =)

Used JavaScript in a form, then i put css to it to make it nice

Thanks guys and thanks Xdreamer

MAX

« BackwardsOnwards »

Show Forum Drop Down Menu