<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>5JUN&#039;s Blog &#187; 代码</title>
	<atom:link href="http://5jun.com/tag/%e4%bb%a3%e7%a0%81/feed" rel="self" type="application/rss+xml" />
	<link>http://5jun.com</link>
	<description>快乐生活！快乐工作！</description>
	<lastBuildDate>Wed, 01 Sep 2010 15:28:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>两种实用倒计时代码</title>
		<link>http://5jun.com/24.html</link>
		<comments>http://5jun.com/24.html#comments</comments>
		<pubDate>Fri, 15 Feb 2008 10:18:40 +0000</pubDate>
		<dc:creator>5JUN</dc:creator>
				<category><![CDATA[代码分享]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[倒计时]]></category>

		<guid isPermaLink="false">http://www.5jun.com/wp/?p=24</guid>
		<description><![CDATA[　　效果预览图片: 　　第一种倒计时代码: &#60;CENTER&#62; &#60;FONT color=#0066CC&#62;&#60;U&#62;距离北京奥运会还有&#60;/U&#62;&#60;/FONT&#62;&#60;BR&#62; &#60;SPAN id=span_dt_dt style=&#34;BORDER-TOP-WIDTH: 0px; FONT-WEIGHT: bold; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: red; BACKGROUND-COLOR:#eee; BORDER-RIGHT-WIDTH: 0px&#34;&#62; &#60;SCRIPT language=javascript&#62; &#60;!-- //document.write(&#34;&#34;); function show_date_time(){ window.setTimeout(&#34;show_date_time()&#34;, 1000); BirthDay=new Date(&#34;8-8-2008&#34;);//改成你的计时日期 today=new Date(); timeold=(BirthDay.getTime()-today.getTime()); sectimeold=timeold/1000 secondsold=Math.floor(sectimeold); msPerDay=24*60*60*1000 e_daysold=timeold/msPerDay daysold=Math.floor(e_daysold); e_hrsold=(e_daysold-daysold)*24; hrsold=Math.floor(e_hrsold); e_minsold=(e_hrsold-hrsold)*60; minsold=Math.floor((e_hrsold-hrsold)*60); seconds=Math.floor((e_minsold-minsold)*60); span_dt_dt.innerHTML=daysold+&#34;天&#34;+hrsold+&#34;小时&#34;+minsold+&#34;分&#34;+seconds+&#34;秒&#34; ; } show_date_time(); //--&#62; &#60;/SCRIPT&#62; &#60;/SPAN&#62; &#60;/CENTER&#62; 提示：你可以先修改部分代码再运行。 　　第二种倒计时代码: &#60;font color=&#34;#0066CC&#34;&#62;距离北京奥运会还有&#60;/font&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>　　效果预览图片:</p>
<p><img class="aligncenter" src="http://www.5jun.com/wp-content/uploads/pj/month_0802/20080217224409i.gif" border="0" alt="" /></p>
<p><strong>　　第一种倒计时代码:</strong></p>
<p><span id="more-24"></span></p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_UdQ132">
&lt;CENTER&gt;
  &lt;FONT color=#0066CC&gt;&lt;U&gt;距离北京奥运会还有&lt;/U&gt;&lt;/FONT&gt;&lt;BR&gt;
  &lt;SPAN id=span_dt_dt
style=&quot;BORDER-TOP-WIDTH: 0px; FONT-WEIGHT: bold; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: red; BACKGROUND-COLOR:#eee; BORDER-RIGHT-WIDTH: 0px&quot;&gt;
  &lt;SCRIPT language=javascript&gt;
&lt;!--
//document.write(&quot;&quot;);
function show_date_time(){
window.setTimeout(&quot;show_date_time()&quot;, 1000);
BirthDay=new Date(&quot;8-8-2008&quot;);//改成你的计时日期
today=new Date();
timeold=(BirthDay.getTime()-today.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=Math.floor(e_hrsold);
e_minsold=(e_hrsold-hrsold)*60;
minsold=Math.floor((e_hrsold-hrsold)*60);
seconds=Math.floor((e_minsold-minsold)*60);
span_dt_dt.innerHTML=daysold+&quot;天&quot;+hrsold+&quot;小时&quot;+minsold+&quot;分&quot;+seconds+&quot;秒&quot; ;
}
show_date_time();
//--&gt;
&lt;/SCRIPT&gt;
  &lt;/SPAN&gt;
&lt;/CENTER&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_UdQ132');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_UdQ132');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
<p><strong>　　第二种倒计时代码:</strong></p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_AGWd_9">
&lt;font color=&quot;#0066CC&quot;&gt;距离北京奥运会还有&lt;/font&gt;
&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;
var urodz= new Date(&quot;8/8/2008&quot;);&lt;!--------日期修改---------&gt;
var s=&quot;:&quot;;
var now = new Date();
var ile = urodz.getTime() - now.getTime();
var dni = Math.floor(ile / (1000 * 60 * 60 * 24));
if (dni &gt; 1)
document.write(&quot;&quot;+s+&quot;&lt;font color=Red&gt;&quot;+dni +&quot;&lt;/font&gt;天&quot;)
else if (dni == 1)
document.write(&quot;只有2天啦 &quot;)
else if (dni == 0)
document.write(&quot;只有1天啦&quot;)
else if (dni == -1)
document.write(&quot;&lt;b&gt;北京奥运会开幕了！&lt;/b&gt;&quot;)
else
document.write(&quot;已经过了&quot;);
&lt;/script&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_AGWd_9');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_AGWd_9');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://5jun.com/24.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>比较实用的倒记时代码</title>
		<link>http://5jun.com/5.html</link>
		<comments>http://5jun.com/5.html#comments</comments>
		<pubDate>Tue, 20 Nov 2007 15:49:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[代码分享]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[倒记时]]></category>
		<category><![CDATA[实用]]></category>

		<guid isPermaLink="false">http://www.5jun.com/wp/?p=5</guid>
		<description><![CDATA[比较实用的纯文字样式到记时代码，可以进行时间的修改． &#60;script type=&#34;text/javascript&#34;&#62; var urodz= new Date(&#34;August 9,2008&#34;); var s = &#34;2008北京奥运会&#34;; var now = new Date(); var ile = urodz.getTime() - now.getTime(); var dni = Math.floor(ile / (1000 * 60 * 60 * 24)); if (dni &#62; 1) document.write(&#34;今天离&#34;+s+&#34;还有&#34;+dni +&#34;天&#34;) else if (dni == 1) document.write(&#34;只有2天啦！&#34;) else if (dni == 0) document.write(&#34;只有1天啦！&#34;) else document.write(&#34;期待奥运会再次来到中国！&#34;); [...]]]></description>
			<content:encoded><![CDATA[<p>比较实用的纯文字样式到记时代码，可以进行时间的修改．</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_HeGCm1">
&lt;script type=&quot;text/javascript&quot;&gt;
var urodz= new Date(&quot;August 9,2008&quot;);
var s = &quot;2008北京奥运会&quot;;
var now = new Date();
var ile = urodz.getTime() - now.getTime();
var dni = Math.floor(ile / (1000 * 60 * 60 * 24));
if (dni &gt; 1)
document.write(&quot;今天离&quot;+s+&quot;还有&quot;+dni +&quot;天&quot;)
else if (dni == 1)
document.write(&quot;只有2天啦！&quot;)
else if (dni == 0)
document.write(&quot;只有1天啦！&quot;)
else
document.write(&quot;期待奥运会再次来到中国！&quot;);
&lt;/script&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_HeGCm1');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_HeGCm1');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://5jun.com/5.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
