<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Countdown to extra profits</title>
	<link>http://askmichel.icoder.com/2006/05/21/countdown-to-extra-profits/</link>
	<description>i Code to help you profit!</description>
	<pubDate>Sat, 22 Nov 2008 05:15:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.3</generator>

	<item>
		<title>by: michel</title>
		<link>http://askmichel.icoder.com/2006/05/21/countdown-to-extra-profits/#comment-243</link>
		<pubDate>Sun, 09 Mar 2008 14:58:43 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/05/21/countdown-to-extra-profits/#comment-243</guid>
					<description>Hi dudu,

You would need to change the &lt;code&gt;goCountdown&lt;/code&gt; function to get &quot;hours, minutes, seconds&quot;. Try the codes like below:

&lt;code&gt;&amp;#60;span id=&amp;#34;&lt;span style=&quot;color:blue;&quot;&gt;countdown&lt;/span&gt;&amp;#34;&amp;#62;&lt;span style=&quot;color:gray;&quot;&gt;0&lt;/span&gt;&amp;#60;/span&amp;#62;
&amp;#60;script type=&amp;#34;text/javascript&amp;#34;&amp;#62;
&amp;#60;!--//
&amp;#160;&amp;#160;goCountdown(&amp;#34;&lt;span style=&quot;color:blue;&quot;&gt;countdown&lt;/span&gt;&amp;#34;,
&amp;#160;&amp;#160;&amp;#160;&amp;#160;60 * (60 * &lt;span style=&quot;color:red;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color:gray;&quot;&gt;/*hours*/&lt;/span&gt; + &lt;span style=&quot;color:red;&quot;&gt;30&lt;/span&gt; &lt;span style=&quot;color:gray;&quot;&gt;/*mins*/&lt;/span&gt;) + &lt;span style=&quot;color:red;&quot;&gt;30&lt;/span&gt; &lt;span style=&quot;color:gray;&quot;&gt;/*secs*/&lt;/code&gt;
&amp;#160;&amp;#160;);&lt;/code&gt;

&lt;code&gt;&amp;#160;&amp;#160;function &lt;span style=&quot;color:blue;&quot;&gt;goCountdown&lt;/span&gt;(countID, secs) {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;var countObj = document.getElementById(countID);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;if (countObj) {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;if (0 &amp;#60; secs) {
&lt;span style=&quot;color:red;&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;var mins = Math.floor(secs / 60);&lt;/span&gt;
&lt;span style=&quot;color:red;&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;var seconds = secs - mins * 60;&lt;/span&gt;
&lt;span style=&quot;color:red;&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;var hours = Math.floor(mins / 60);&lt;/span&gt;
&lt;span style=&quot;color:red;&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;mins = mins - hours * 60;&lt;/span&gt;
&lt;span style=&quot;color:red;&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;var counterText = seconds + &amp;#34; seconds&amp;#34;;&lt;/span&gt;
&lt;span style=&quot;color:red;&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;if (hours &amp;#62; 0) {&lt;/span&gt;
&lt;span style=&quot;color:red;&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;counterText = hours + &amp;#34; hours &amp;#34; + mins + &amp;#34; minutes and &amp;#34; + counterText;&lt;/span&gt;
&lt;span style=&quot;color:red;&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;} else if (mins &amp;#62; 0) {&lt;/span&gt;
&lt;span style=&quot;color:red;&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;counterText = mins + &amp;#34; minutes and &amp;#34; + counterText;&lt;/span&gt;
&lt;span style=&quot;color:red;&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;}&lt;/span&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;countObj.innerHTML = &lt;span style=&quot;color:red;&quot;&gt;counterText;&lt;/span&gt;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;setTimeout(
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#34;goCountdown(&amp;#39;&amp;#34;+countID+&amp;#34;&amp;#39;,&amp;#34;+(secs-1)+&amp;#34;)&amp;#34;,
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;1000);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;} else {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;countObj.innerHTML = &amp;#34;Time has gone&amp;#34;;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;}
&amp;#160;&amp;#160;&amp;#160;&amp;#160;}
&amp;#160;&amp;#160;}
//--&amp;#62;
&amp;#60;/script&amp;#62;&lt;/code&gt;

Hope this helps.

Michel</description>
		<content:encoded><![CDATA[<p>Hi dudu,</p>
<p>You would need to change the <code>goCountdown</code> function to get &#8220;hours, minutes, seconds&#8221;. Try the codes like below:</p>
<p><code>&lt;span id=&quot;<span style="color:blue;">countdown</span>&quot;&gt;<span style="color:gray;">0</span>&lt;/span&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
&lt;!--//<br />
&nbsp;&nbsp;goCountdown(&quot;<span style="color:blue;">countdown</span>&quot;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;60 * (60 * <span style="color:red;">1</span> <span style="color:gray;">/*hours*/</span> + <span style="color:red;">30</span> <span style="color:gray;">/*mins*/</span>) + <span style="color:red;">30</span> <span style="color:gray;">/*secs*/</code><br />
&nbsp;&nbsp;);</code></p>
<p><code>&nbsp;&nbsp;function <span style="color:blue;">goCountdown</span>(countID, secs) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;var countObj = document.getElementById(countID);<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (countObj) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (0 &lt; secs) {<br />
<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var mins = Math.floor(secs / 60);</span><br />
<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var seconds = secs - mins * 60;</span><br />
<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var hours = Math.floor(mins / 60);</span><br />
<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mins = mins - hours * 60;</span><br />
<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var counterText = seconds + &quot; seconds&quot;;</span><br />
<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (hours &gt; 0) {</span><br />
<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;counterText = hours + &quot; hours &quot; + mins + &quot; minutes and &quot; + counterText;</span><br />
<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else if (mins &gt; 0) {</span><br />
<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;counterText = mins + &quot; minutes and &quot; + counterText;</span><br />
<span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;countObj.innerHTML = <span style="color:red;">counterText;</span><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setTimeout(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;goCountdown(&#39;&quot;+countID+&quot;&#39;,&quot;+(secs-1)+&quot;)&quot;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1000);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;countObj.innerHTML = &quot;Time has gone&quot;;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;}<br />
//--&gt;<br />
&lt;/script&gt;</code></p>
<p>Hope this helps.</p>
<p>Michel
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: dudu08</title>
		<link>http://askmichel.icoder.com/2006/05/21/countdown-to-extra-profits/#comment-240</link>
		<pubDate>Fri, 07 Mar 2008 23:56:34 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/05/21/countdown-to-extra-profits/#comment-240</guid>
					<description>Hi michael,

I like to know how to put &quot;hours&quot; minutes&quot; and &quot;seconds&quot; in this script. It will be great if can give some more time for the user. (Eg: 1 hour 30 minutes and 30 seconds)

Thank.</description>
		<content:encoded><![CDATA[<p>Hi michael,</p>
<p>I like to know how to put &#8220;hours&#8221; minutes&#8221; and &#8220;seconds&#8221; in this script. It will be great if can give some more time for the user. (Eg: 1 hour 30 minutes and 30 seconds)</p>
<p>Thank.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: michel</title>
		<link>http://askmichel.icoder.com/2006/05/21/countdown-to-extra-profits/#comment-22</link>
		<pubDate>Mon, 07 Aug 2006 15:31:42 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/05/21/countdown-to-extra-profits/#comment-22</guid>
					<description>Hi Sebastian,

Now you can twist this script with OTO.
Take a look at this
http://askmichel.icoder.com/2006/08/07/simple-oto-and-countdown-timer/

I hope this helps.</description>
		<content:encoded><![CDATA[<p>Hi Sebastian,</p>
<p>Now you can twist this script with OTO.<br />
Take a look at this<br />
<a href='http://askmichel.icoder.com/2006/08/07/simple-oto-and-countdown-timer/' rel='nofollow'>http://askmichel.icoder.com/2006/08/07/simple-oto-and-countdown-timer/</a></p>
<p>I hope this helps.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: novaliz</title>
		<link>http://askmichel.icoder.com/2006/05/21/countdown-to-extra-profits/#comment-4</link>
		<pubDate>Thu, 22 Jun 2006 20:24:56 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/05/21/countdown-to-extra-profits/#comment-4</guid>
					<description>Hi Michael,

thank you. Great Stuff here. I would love to know how I can twist this script to be show only one time after a certain event (e.g. a one time offer) that the user won't see again if he doesnt react within a frame of time.

Keep on with your work!

--Sebastian</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>thank you. Great Stuff here. I would love to know how I can twist this script to be show only one time after a certain event (e.g. a one time offer) that the user won&#8217;t see again if he doesnt react within a frame of time.</p>
<p>Keep on with your work!</p>
<p>&#8211;Sebastian
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
