PDA
Partners

View Full Version : Tutorial : Adding Javascript live time to your website


Fabolous05
June 27th, 2004, 06:52 PM
First I just want to make it clear that I did not make this.

The script was made by Mark Plachetta (http://www.zip.com.au/~astroboy/)

you can download the .js file from my website, http://members.shaw.ca/designs604/liveclock.js

Open a HTML file and insert this

<script language="javascript" src="liveclock.js">

/*
Live Clock Script-
By Mark Plachetta (astro@bigpond.net.auŠ) based on code from DynamicDrive.com
For full source code, 100's more DHTML scripts, and Terms Of Use,
visit http://www.dynamicdrive.com
*/

</script>
<body onLoad="show_clock()">


make sure you save it in to the same directory as the liveclock.js or edit the 'src=' tag accordingly.

Now you can have a live clock on your website




A website in this in action is at http://members.shaw.ca/designs604 write undernearth splash image

Fabolous05
June 27th, 2004, 06:54 PM
Looks like he no longer supports this script anymore, but for reference his new URL is, http://www.zip.com.au/~astroboy/



oh, and you can edit prefs in liveclock.js using notepad

such as displaying the date, which font, which color etc.