+ Reply to Thread
Results 1 to 3 of 3

Thread: Tutorial : Adding Javascript live time to your website

  1. #1
    Active Member Fabolous05 is on a distinguished road
    Join Date
    Jun 2004
    Location
    Surrey, BC
    Posts
    151

    Tutorial : Adding Javascript live time to your website

    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
    Code:
    <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
    Fabo@VolantaStudios.com
    Head Designer
    Volantą Studios

  2. #2
    Active Member Fabolous05 is on a distinguished road
    Join Date
    Jun 2004
    Location
    Surrey, BC
    Posts
    151
    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.
    Fabo@VolantaStudios.com
    Head Designer
    Volantą Studios

  3. #3
    Newbie mith is on a distinguished road
    Join Date
    Mar 2011
    Posts
    2
    Nevertheless, what needed to be done was pretty obvious. I had to make up some file inputs dynamically and that's quite easy.
    One can make any html element and attach it to a viewed document. For those who do not know it, it is called Document Object Model, meaning elements in a documents are all objects with their properties, methods etc. I trust there are only two html elements that can not be dynamically added and those are frame and iframe, though IE should support the later one, too. For that fact, Mozilla is following the pattern.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts