Jump to content

Can anyone help me with this JS clock ?


n000bie

Recommended Posts

Download the js files, include them in your html file (put this between <head> and </head>:

<script language="javascript" src="coolclock.js"></script>

 

Then put this somewhere in your file:

(between <body> and </body>

<canvas id="c1" class="CoolClock"></canvas>

 

After you get that working, start worrying about skins.

Link to comment
Share on other sites

I have done all the stuff but it is still not displaying

 

This is inside head tag

<!--[if IE]><script type="text/javascript" src="excanvas.js"></script><![endif]--> 
        <script type="text/javascript" src="coolclock.js"></script>
        <script type="text/javascript" src="moreskins.js"></script>

 

and inside body

<canvas id="c1" class="CoolClock:classic" width="170" height="170" style="width: 170px; height: 170px; border:1px solid red;"/>

 

I don't see the clock in the browser only a border and when I right click I see View image, save image options. I can't figure out why the clock is not displaying.

 

Anyway thanks for reply...

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.