<?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>PHP MySQL jQuery CSS Tutorials, Resources and Freebies</description>
	<lastBuildDate>Sat, 31 Jul 2010 18:09:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Greg J Preece</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-8053</link>
		<dc:creator>Greg J Preece</dc:creator>
		<pubDate>Thu, 22 Jul 2010 11:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-8053</guid>
		<description>IE6 does not like the CSS class selectors used within the plugin, such as leading to z-index not being applied correctly, mangled animations, pain, misery, suffering - the usual when dealing with IE6.  

Replacing them with ID selectors, while a complete pain, does fix the problem with the animation.

Also, I have been unable to get the TwinHelix IE PNG Fix to work correctly with this plugin and IE6, so grey backgrounds made everything rather ugly, but working around that was much easier - I just replaced the PNG files with transparent GIFs.  Job done!

Thank you very much for the code, as well as its excellent documentation.  I am currently in the process of mangling it into a countdown timer for use within our system.</description>
		<content:encoded><![CDATA[<p>IE6 does not like the CSS class selectors used within the plugin, such as leading to z-index not being applied correctly, mangled animations, pain, misery, suffering &#8211; the usual when dealing with IE6.  </p>
<p>Replacing them with ID selectors, while a complete pain, does fix the problem with the animation.</p>
<p>Also, I have been unable to get the TwinHelix IE PNG Fix to work correctly with this plugin and IE6, so grey backgrounds made everything rather ugly, but working around that was much easier &#8211; I just replaced the PNG files with transparent GIFs.  Job done!</p>
<p>Thank you very much for the code, as well as its excellent documentation.  I am currently in the process of mangling it into a countdown timer for use within our system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JLam</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-7483</link>
		<dc:creator>JLam</dc:creator>
		<pubDate>Tue, 13 Jul 2010 07:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-7483</guid>
		<description>change this in  tzineclock.js 

element.css(&quot;left&quot;,-Math.floor((element.width()-50)/2));
element.css(&quot;top&quot;,-Math.floor((element.height()-50)/2));</description>
		<content:encoded><![CDATA[<p>change this in  tzineclock.js </p>
<p>element.css(&#8220;left&#8221;,-Math.floor((element.width()-50)/2));<br />
element.css(&#8220;top&#8221;,-Math.floor((element.height()-50)/2));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kittu</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-7299</link>
		<dc:creator>Kittu</dc:creator>
		<pubDate>Fri, 09 Jul 2010 13:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-7299</guid>
		<description>So nice..... First thanks to Martin for this nice article .. I have a small problem. Ii changed the images into 50 X 50 size and modifies some of the css of the timer ( jquery.tzineClock.css file) like below..... for getting a small timer...

#fancyClock{
	height:50px;
	border:0px;
	width:150px;
}
.clock{
	/* The .clock div. Created dynamically by jQuery */
	background-color:white;
	height:50px;
	width:50px;
	position:relative;
	overflow:hidden;
	float:left;
}

.clock .rotate{
	/* There are two .rotate divs - one for each half of the background */
	position:absolute;
	width:50px;
	height:50px;
		top:0;
	left:0;
}

.rotate.right{
	display:none;
	z-index:9;
}

.clock .bg, .clock .front{
	width:25px;
	height:50px;
	background-color:white;
	position:absolute;
	top:0;
}

.clock .display{
	/* Holds the number of seconds, minutes or hours respectfully */
	position:absolute;
	width:50px;
	font-family:&quot;Lucida Sans Unicode&quot;, &quot;Lucida Grande&quot;, sans-serif;
	z-index:20;
	color:black;/*#F5F5F5;*/
	font-size:15px;
	text-align:center;
	top:15px;
	left:0;
	
	/* CSS3 text shadow: */
	text-shadow:4px 4px 5px #333333;
}

/* The left part of the background: */

.clock .bg.left{ left:0; }

/* Individual styles for each color: */
.orange .bg.left{ background:url(img/bg_orange.png) no-repeat left top; }
.green .bg.left{ background:url(img/bg_green.png) no-repeat left top; }
.blue .bg.left{	background:url(img/bg_blue.png) no-repeat left top; }

/* The right part of the background: */
.clock .bg.right{ left:25px; }

.orange .bg.right{ background:url(img/bg_orange.png) no-repeat right top; }
.green .bg.right{ background:url(img/bg_green.png) no-repeat right top; }
.blue .bg.right{ background:url(img/bg_blue.png) no-repeat right top; }


.clock .front.left{
	left:0;
	z-index:8;
}


Then it is working fine for Moziall firefox and Google chrome. but it is not working correctly in IE.It just displays the digits... not the circle images..... I have spent lot of time.... but no use... what is the  problem with my code.</description>
		<content:encoded><![CDATA[<p>So nice&#8230;.. First thanks to Martin for this nice article .. I have a small problem. Ii changed the images into 50 X 50 size and modifies some of the css of the timer ( jquery.tzineClock.css file) like below&#8230;.. for getting a small timer&#8230;</p>
<p>#fancyClock{<br />
	height:50px;<br />
	border:0px;<br />
	width:150px;<br />
}<br />
.clock{<br />
	/* The .clock div. Created dynamically by jQuery */<br />
	background-color:white;<br />
	height:50px;<br />
	width:50px;<br />
	position:relative;<br />
	overflow:hidden;<br />
	float:left;<br />
}</p>
<p>.clock .rotate{<br />
	/* There are two .rotate divs &#8211; one for each half of the background */<br />
	position:absolute;<br />
	width:50px;<br />
	height:50px;<br />
		top:0;<br />
	left:0;<br />
}</p>
<p>.rotate.right{<br />
	display:none;<br />
	z-index:9;<br />
}</p>
<p>.clock .bg, .clock .front{<br />
	width:25px;<br />
	height:50px;<br />
	background-color:white;<br />
	position:absolute;<br />
	top:0;<br />
}</p>
<p>.clock .display{<br />
	/* Holds the number of seconds, minutes or hours respectfully */<br />
	position:absolute;<br />
	width:50px;<br />
	font-family:&#8221;Lucida Sans Unicode&#8221;, &#8220;Lucida Grande&#8221;, sans-serif;<br />
	z-index:20;<br />
	color:black;/*#F5F5F5;*/<br />
	font-size:15px;<br />
	text-align:center;<br />
	top:15px;<br />
	left:0;</p>
<p>	/* CSS3 text shadow: */<br />
	text-shadow:4px 4px 5px #333333;<br />
}</p>
<p>/* The left part of the background: */</p>
<p>.clock .bg.left{ left:0; }</p>
<p>/* Individual styles for each color: */<br />
.orange .bg.left{ background:url(img/bg_orange.png) no-repeat left top; }<br />
.green .bg.left{ background:url(img/bg_green.png) no-repeat left top; }<br />
.blue .bg.left{	background:url(img/bg_blue.png) no-repeat left top; }</p>
<p>/* The right part of the background: */<br />
.clock .bg.right{ left:25px; }</p>
<p>.orange .bg.right{ background:url(img/bg_orange.png) no-repeat right top; }<br />
.green .bg.right{ background:url(img/bg_green.png) no-repeat right top; }<br />
.blue .bg.right{ background:url(img/bg_blue.png) no-repeat right top; }</p>
<p>.clock .front.left{<br />
	left:0;<br />
	z-index:8;<br />
}</p>
<p>Then it is working fine for Moziall firefox and Google chrome. but it is not working correctly in IE.It just displays the digits&#8230; not the circle images&#8230;.. I have spent lot of time&#8230;. but no use&#8230; what is the  problem with my code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexo</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-5029</link>
		<dc:creator>Alexo</dc:creator>
		<pubDate>Mon, 26 Apr 2010 22:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-5029</guid>
		<description>DUH!!! Someone already answer my question...should have read before opening my mouth!
Regardless...amazing stuff!! I&#039;m hooked!</description>
		<content:encoded><![CDATA[<p>DUH!!! Someone already answer my question&#8230;should have read before opening my mouth!<br />
Regardless&#8230;amazing stuff!! I&#8217;m hooked!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexo</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-5028</link>
		<dc:creator>Alexo</dc:creator>
		<pubDate>Mon, 26 Apr 2010 22:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-5028</guid>
		<description>Dude!! Nice!!! Excellent!!Party On!! just kidding, but that is so cool...can it be a countdown for  any or  certain event?</description>
		<content:encoded><![CDATA[<p>Dude!! Nice!!! Excellent!!Party On!! just kidding, but that is so cool&#8230;can it be a countdown for  any or  certain event?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xiao</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-4971</link>
		<dc:creator>Xiao</dc:creator>
		<pubDate>Sat, 24 Apr 2010 16:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-4971</guid>
		<description>So Cool ~~~I love it~~~thanks for sharing</description>
		<content:encoded><![CDATA[<p>So Cool ~~~I love it~~~thanks for sharing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: controlsea</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-4039</link>
		<dc:creator>controlsea</dc:creator>
		<pubDate>Mon, 22 Mar 2010 15:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-4039</guid>
		<description>very nice!~I like it very much~May be I can make use of it in my website~</description>
		<content:encoded><![CDATA[<p>very nice!~I like it very much~May be I can make use of it in my website~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eight bit studios</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-3480</link>
		<dc:creator>eight bit studios</dc:creator>
		<pubDate>Tue, 09 Mar 2010 01:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-3480</guid>
		<description>Love this, Martin.  Super nice work.  I made a few edits to make things countdown properly and give days leading up to the event.  Thought I&#039;d share my edits here and many thanks to Kris for getting things started!

added another dial:

// The colors of the dials:
		var colors = [&#039;pink&#039;,&#039;blue&#039;,&#039;orange&#039;,&#039;green&#039;];


created day dial:


setInterval(function(){

        var currentTime = new Date();
        currentTime = Date.parse(currentTime);
        var futureTime = Date.parse(&#039;September 23, 2011 12:00:00&#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, 24);

        },1000);

And then, Kris, this is to help hide that other half after 30 secs:

if(angle&lt;=180)
		{
			// The left part is rotated, and the right is currently hidden:
			element = clock.rotateLeft;
			clock.rotateRight.hide();
		}

Thanks again!  See it in action at &lt;a href=&quot;http://drumlineapp.com&quot; rel=&quot;nofollow&quot;&gt;drumlineapp.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Love this, Martin.  Super nice work.  I made a few edits to make things countdown properly and give days leading up to the event.  Thought I&#8217;d share my edits here and many thanks to Kris for getting things started!</p>
<p>added another dial:</p>
<p>// The colors of the dials:<br />
		var colors = ['pink','blue','orange','green'];</p>
<p>created day dial:</p>
<p>setInterval(function(){</p>
<p>        var currentTime = new Date();<br />
        currentTime = Date.parse(currentTime);<br />
        var futureTime = Date.parse(&#8216;September 23, 2011 12:00:00&#8242;);<br />
        var dd = futureTime-currentTime;</p>
<p>        var d=Math.floor((dd%(60*60*1000*24*365))/(24*60*60*1000)*1);<br />
        var h=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);<br />
        var m=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);<br />
        var s=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);</p>
<p>        animation(gVars.green, s, 60);<br />
        animation(gVars.orange, m, 60);<br />
        animation(gVars.blue, h, 24);<br />
        animation(gVars.pink, d, 24);</p>
<p>        },1000);</p>
<p>And then, Kris, this is to help hide that other half after 30 secs:</p>
<p>if(angle&lt;=180)<br />
		{<br />
			// The left part is rotated, and the right is currently hidden:<br />
			element = clock.rotateLeft;<br />
			clock.rotateRight.hide();<br />
		}</p>
<p>Thanks again!  See it in action at <a href="http://drumlineapp.com" rel="nofollow">drumlineapp.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pintus</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-2743</link>
		<dc:creator>pintus</dc:creator>
		<pubDate>Wed, 10 Feb 2010 13:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-2743</guid>
		<description>Amazing !</description>
		<content:encoded><![CDATA[<p>Amazing !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: legolas</title>
		<link>http://tutorialzine.com/2009/12/colorful-clock-jquery-css/#comment-2271</link>
		<dc:creator>legolas</dc:creator>
		<pubDate>Sun, 17 Jan 2010 07:02:25 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=580#comment-2271</guid>
		<description>very helpful. thanks for sharing.</description>
		<content:encoded><![CDATA[<p>very helpful. thanks for sharing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: tutorialzine.com @ 2010-08-01 02:49:09 -->