Jump to content


Auto Updating Clock...


4 replies to this topic

#1 nygorn

    Young Padawan

  • Members
  • Pip
  • 53 posts
  • Gender:Male
  • Location:Sweden

Posted 18 July 2007 - 06:16 PM

I was surfing the net and there i was looking at Fragbite.se.
and i saw this cool auto updating clock.
With that i mean it updates only the clock every seconds.
Is that possible in php or is it like asp or jsp ?

#2 _*Creative Insanity_*

  • Guests

Posted 18 July 2007 - 07:26 PM

Man what one cluttered site that is..
That clock is javascript.

<script language="JavaScript">
var weekdays = new Array("Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag");

clock_time = new Date(2007, 6, 19, 2, 28, 34);

// Funktionen anropas från onLoad i BODY
function updateClock ()

Edited by Creative Insanity, 18 July 2007 - 07:26 PM.


#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 19 July 2007 - 01:27 AM

PHP and ASP i know can't achieve this. JSP i know nothing about. Only a client-side language like JS could do this (as creative so nicely pointed out).

If you don't feel like translating that, a tutorial search should turn up a half-dozen or more results.

#4 _*Creative Insanity_*

  • Guests

Posted 19 July 2007 - 01:31 AM

Click here and enter a search of clock and you will get flooded with all kinds of JS clocks.

#5 pirateXcore

    Young Padawan

  • Members
  • Pip
  • 281 posts
  • Gender:Male

Posted 19 July 2007 - 02:25 AM

If you wanted to do this in a more "creative"/"original" way, you could try doing it in flash. :closedeyes:





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users