<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A Colorful Clock With CSS &amp; jQuery</title>
	<atom:link href="http://tutorialzine.com/2009/12/colorful-clock-jquery-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/</link>
	<description>Web Development Tutorials &#38; Resources</description>
	<lastBuildDate>Wed, 16 May 2012 02:12:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Chris</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-23644</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 05 May 2012 20:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-23644</guid>
		<description>Hey, all I did was go through the css and change anything with a 200 to 50, and anything with a 100 to 25. Assuming that each image is 50x50px. However, I did run into a problem with the rotating of the images. The right div shows all the time, aka the left div does not cover it. So &lt;30 seconds you can see the whole image rotating but once it hits 30 it will stop and the left part of the image will start moving. I didn&#039;t touch any of the z index values and I have gone through everything but still no luck, still looks good, but it would be nice to have that part working.</description>
		<content:encoded><![CDATA[<p>Hey, all I did was go through the css and change anything with a 200 to 50, and anything with a 100 to 25. Assuming that each image is 50x50px. However, I did run into a problem with the rotating of the images. The right div shows all the time, aka the left div does not cover it. So &lt;30 seconds you can see the whole image rotating but once it hits 30 it will stop and the left part of the image will start moving. I didn't touch any of the z index values and I have gone through everything but still no luck, still looks good, but it would be nice to have that part working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CK</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-23516</link>
		<dc:creator>CK</dc:creator>
		<pubDate>Thu, 26 Apr 2012 10:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-23516</guid>
		<description>the time of day (AM/PM) would be awesome (displayed in the middle od the hours circle)...</description>
		<content:encoded><![CDATA[<p>the time of day (AM/PM) would be awesome (displayed in the middle od the hours circle)...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Qasim</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-23431</link>
		<dc:creator>Muhammad Qasim</dc:creator>
		<pubDate>Sun, 22 Apr 2012 10:28:15 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-23431</guid>
		<description>Hi, The countdown is no longer available at the provided site as its launched now. Have you got it posted somewhere else?

Regards</description>
		<content:encoded><![CDATA[<p>Hi, The countdown is no longer available at the provided site as its launched now. Have you got it posted somewhere else?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: proball</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-23322</link>
		<dc:creator>proball</dc:creator>
		<pubDate>Sat, 14 Apr 2012 05:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-23322</guid>
		<description>Any one know how to display time of day (AM or PM).</description>
		<content:encoded><![CDATA[<p>Any one know how to display time of day (AM or PM).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John M</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-23315</link>
		<dc:creator>John M</dc:creator>
		<pubDate>Fri, 13 Apr 2012 16:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-23315</guid>
		<description>Thanks for consolidating what eight bit studios published. Don&#039;t forget to make this changw if you add an additional circle:

line: 62: for(var i=0;i&lt;3;i++)
to
line: 62: for(var i=0;i&lt;4;i++)

If you don&#039;t make that change, it will not work.

Thanks dude!</description>
		<content:encoded><![CDATA[<p>Thanks for consolidating what eight bit studios published. Don't forget to make this changw if you add an additional circle:</p>
<p>line: 62: for(var i=0;i&lt;3;i++)<br />
to<br />
line: 62: for(var i=0;i&lt;4;i++)</p>
<p>If you don't make that change, it will not work.</p>
<p>Thanks dude!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter piper</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-23232</link>
		<dc:creator>peter piper</dc:creator>
		<pubDate>Mon, 09 Apr 2012 00:11:48 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-23232</guid>
		<description>Anyone know of a tweek to get this looking OK in IE as well, its disjointed in IE and jumps about</description>
		<content:encoded><![CDATA[<p>Anyone know of a tweek to get this looking OK in IE as well, its disjointed in IE and jumps about</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colby</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-23187</link>
		<dc:creator>Colby</dc:creator>
		<pubDate>Fri, 06 Apr 2012 01:34:19 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-23187</guid>
		<description>I just finished getting this to work as a countdown timer.  All you need to do is:

Change: 

&lt;pre&gt;
setInterval(function(){
		
	var currentTime = new Date();
	var h = currentTime.getHours();
	var m = currentTime.getMinutes();
	var s = currentTime.getSeconds();
			
	animation(gVars.green, s, 60);
	animation(gVars.blue, m, 60);
	animation(gVars.orange, h, 24);
		
	},1000);
}
&lt;/pre&gt;

to:

&lt;pre&gt;
setInterval(function(){
  var currentTime   = new Date();
  var futureTime = new Date(&#039;May 28, 2012&#039;);
  var dd = futureTime-currentTime;

  var h=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
  var m=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
  var s=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);

  animation(gVars.green, s, 60);
  animation(gVars.orange, m, 60);
  animation(gVars.blue, h, 24);

 },1000);
}
&lt;/pre&gt;

as well as Change:

&lt;pre&gt;
if(angle&lt;=180)
{
	// The left part is rotated, and the right is currently hidden:
	element = clock.rotateLeft;
}
&lt;/pre&gt;

to:

&lt;pre&gt;
if(angle&lt;=180)
{
	// The left part is rotated, and the right is currently hidden:
	element = clock.rotateLeft;
	clock.rotateRight.hide();
}
&lt;/pre&gt;

With that you can also add in the days if you want which you would just add a new color to the : // The colors of the dials:
&lt;pre&gt;
var colors = [&#039;orange&#039;,&#039;blue&#039;,&#039;green&#039;];
&lt;/pre&gt;
and then add the days to the code above which would make it:

&lt;pre&gt;
setInterval(function(){
   var currentTime   = new Date();
   var futureTime = new Date(&#039;May 28, 2012&#039;);
   var dd = futureTime-currentTime;

   var d=Math.floor((dd%(60*60*1000*24*365))/(24*60*60*1000)*1);
   var h=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
   var m=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
   var s=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);

   animation(gVars.green, s, 60);
   animation(gVars.orange, m, 60);
   animation(gVars.blue, h, 24);
   animation(gVars.pink, d, 85);

  },1000);	
}
&lt;/pre&gt;

Also for scaling it down what you do is:

Change: 

&lt;pre&gt;
element.css(&quot;left&quot;,-Math.floor((element.width()-200)/2));
element.css(&quot;top&quot;,-Math.floor((element.height()-200)/2));
&lt;/pre&gt;

to:

&lt;pre&gt;
element.css(&quot;left&quot;,-Math.floor((element.width()-50)/2));
element.css(&quot;top&quot;,-Math.floor((element.height()-50)/2));
&lt;/pre&gt;

if thats the size you want.  Whatever the size you want that is where you need to change it as well as in the stylesheet.  Anywhere it says 200 change to 50 and anywhere it says 100 change to 25.  Basically the size you want it and half of the size you want it.

I hope this was helpful : ) 

If you go to http://www.idance-productions.com you can see a working example of it.</description>
		<content:encoded><![CDATA[<p>I just finished getting this to work as a countdown timer.  All you need to do is:</p>
<p>Change: </p>
<pre>
setInterval(function(){

	var currentTime = new Date();
	var h = currentTime.getHours();
	var m = currentTime.getMinutes();
	var s = currentTime.getSeconds();

	animation(gVars.green, s, 60);
	animation(gVars.blue, m, 60);
	animation(gVars.orange, h, 24);

	},1000);
}
</pre>
<p>to:</p>
<pre>
setInterval(function(){
  var currentTime   = new Date();
  var futureTime = new Date('May 28, 2012');
  var dd = futureTime-currentTime;

  var h=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
  var m=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
  var s=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);

  animation(gVars.green, s, 60);
  animation(gVars.orange, m, 60);
  animation(gVars.blue, h, 24);

 },1000);
}
</pre>
<p>as well as Change:</p>
<pre>
if(angle&lt;=180)
{
	// The left part is rotated, and the right is currently hidden:
	element = clock.rotateLeft;
}
</pre>
<p>to:</p>
<pre>
if(angle&lt;=180)
{
	// The left part is rotated, and the right is currently hidden:
	element = clock.rotateLeft;
	clock.rotateRight.hide();
}
</pre>
<p>With that you can also add in the days if you want which you would just add a new color to the : // The colors of the dials:</p>
<pre>
var colors = ['orange','blue','green'];
</pre>
<p>and then add the days to the code above which would make it:</p>
<pre>
setInterval(function(){
   var currentTime   = new Date();
   var futureTime = new Date('May 28, 2012');
   var dd = futureTime-currentTime;

   var d=Math.floor((dd%(60*60*1000*24*365))/(24*60*60*1000)*1);
   var h=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
   var m=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
   var s=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);

   animation(gVars.green, s, 60);
   animation(gVars.orange, m, 60);
   animation(gVars.blue, h, 24);
   animation(gVars.pink, d, 85);

  },1000);
}
</pre>
<p>Also for scaling it down what you do is:</p>
<p>Change: </p>
<pre>
element.css(&quot;left&quot;,-Math.floor((element.width()-200)/2));
element.css(&quot;top&quot;,-Math.floor((element.height()-200)/2));
</pre>
<p>to:</p>
<pre>
element.css(&quot;left&quot;,-Math.floor((element.width()-50)/2));
element.css(&quot;top&quot;,-Math.floor((element.height()-50)/2));
</pre>
<p>if thats the size you want.  Whatever the size you want that is where you need to change it as well as in the stylesheet.  Anywhere it says 200 change to 50 and anywhere it says 100 change to 25.  Basically the size you want it and half of the size you want it.</p>
<p>I hope this was helpful : ) </p>
<p>If you go to http://www.idance-productions.com you can see a working example of it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maor</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-23046</link>
		<dc:creator>maor</dc:creator>
		<pubDate>Fri, 30 Mar 2012 13:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-23046</guid>
		<description>how can i put multi number of clocks in the same webpage??</description>
		<content:encoded><![CDATA[<p>how can i put multi number of clocks in the same webpage??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maor</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-23045</link>
		<dc:creator>maor</dc:creator>
		<pubDate>Fri, 30 Mar 2012 13:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-23045</guid>
		<description>currentTime.getHours()%12</description>
		<content:encoded><![CDATA[<p>currentTime.getHours()%12</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maddy</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-22821</link>
		<dc:creator>Maddy</dc:creator>
		<pubDate>Wed, 21 Mar 2012 00:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-22821</guid>
		<description>Does anyone have a working version of the 50px plugin, or know precisely how to scale it down? I love this, but I can&#039;t get the rings to work in place in Safari or Mozilla.</description>
		<content:encoded><![CDATA[<p>Does anyone have a working version of the 50px plugin, or know precisely how to scale it down? I love this, but I can't get the rings to work in place in Safari or Mozilla.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Object Caching 355/356 objects using apc
Content Delivery Network via cdn.tutorialzine.com

Served from: tutorialzine.com @ 2012-05-16 18:06:32 -->
