Menu

#1 Question

1.0
open
None
2015-05-30
2015-05-30
VD
No

Could I ask some questions about using of clocks ?

Discussion

  • Miguel Alejan. Moreno Barrientos

    Hi. Which are your questions?

     
  • VD

    VD - 2015-05-30

    Where should I place that code in the left column exactly ? Can I use these clocks offline ?
    Thank you

     
  • Miguel Alejan. Moreno Barrientos

    If you mean the Javascript Code, the common place to put it is into the onload function (the page must be loaded when starts clocks). For instance;

    <html>
    <head>
        <title>Your page</title>
        <script src="clocklib_v0.1.js"/></script>
        <script>
        var clocks;
        window.onload = function() {
            clocks = new Clock( 1000 );
            clocks.startStop();
        }
        </script>
    </head>
    <body>
    body code...
    </body>
    

    Clocklib use your computer system time (not server time), so you can use it in an offline page, with your computer hour, if you mean that.

     

Log in to post a comment.