<?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>dudo博客 &#187; JavaScript</title> <atom:link href="http://dudo.org/archives/tag/javascript/feed" rel="self" type="application/rss+xml" /><link>http://dudo.org</link> <description>华彩绽放，我最绚烂</description> <lastBuildDate>Wed, 18 May 2011 12:38:23 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Javascript的错还是浏览器的问题——2009年为何显示为109年</title><link>http://dudo.org/archives/2009010415265.html</link> <comments>http://dudo.org/archives/2009010415265.html#comments</comments> <pubDate>Sun, 04 Jan 2009 12:50:39 +0000</pubDate> <dc:creator>dudo</dc:creator> <category><![CDATA[CSS与JS]]></category> <category><![CDATA[Internet Explorer]]></category> <category><![CDATA[JavaScript]]></category> <guid
isPermaLink="false">http://dudo.limewebs.com/?p=264</guid> <description><![CDATA[<p>&#160;&#160;&#160; 在浏览几个网页时，发现有几个网站在显示时间时存在问题，比如今天是2009年1月4日，但是有的网站上却赫然写着今天是<strong>109年1月4日</strong>（这里有个例子就是<a
href="http://www.boc.cn" target="_blank">中国银行</a>的网站首页）。这是一个奇怪的问题，可看这些网站的代码，大致如下：</p><pre name="code" class="js">
var today;
today =[......]</pre><p
class='read-more'><a
href='http://dudo.org/archives/2009010415265.html'>Read more</a></p>]]></description> <content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp; 在浏览几个网页时，发现有几个网站在显示时间时存在问题，比如今天是2009年1月4日，但是有的网站上却赫然写着今天是<strong>109年1月4日</strong>（这里有个例子就是<a
href="http://www.boc.cn" target="_blank">中国银行</a>的网站首页）。这是一个奇怪的问题，可看这些网站的代码，大致如下：</p><pre name="code" class="js">
var today;
today =[......]</pre><p
class='read-more'><a
href='http://dudo.org/archives/2009010415265.html'>Read more</a></p><table
class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;"><tr><td
colspan="5"><b><font
size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td></tr><tr><td
width="102" valign="top" style="padding: 5px !important; margin: 0 !important;"> <a
target="_blank" title="SiteLink、Robots.txt、SiteMap几个问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdudo.org%2Farchives%2F2010073123628.html&from=http%3A%2F%2Fdudo.org%2Farchives%2F2009010415265.html"> <img
style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2010/10/02/721290.png" width="96px" height="96px" /><br
/> <font
size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">SiteLink、Robots.txt、SiteMap几个问题</font> </a></td><td
width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;"> <a
target="_blank" title="Yahoo!网站性能最佳体验的34条黄金守则——JavaScript和CSS" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdudo.org%2Farchives%2F2008051417218.html&from=http%3A%2F%2Fdudo.org%2Farchives%2F2009010415265.html"> <img
style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br
/> <font
size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Yahoo!网站性能最佳体验的34条黄金守则——JavaScript和CSS</font> </a></td><td
width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;"> <a
target="_blank" title="Apple将推出Windows版Safari浏览器？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdudo.org%2Farchives%2F200701161395.html&from=http%3A%2F%2Fdudo.org%2Farchives%2F2009010415265.html"> <img
style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br
/> <font
size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Apple将推出Windows版Safari浏览器？</font> </a></td><td
width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;"> <a
target="_blank" title="IE6及以下版本浏览器中A状态伪类Bug的解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdudo.org%2Farchives%2F2007122311180.html&from=http%3A%2F%2Fdudo.org%2Farchives%2F2009010415265.html"> <img
style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br
/> <font
size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">IE6及以下版本浏览器中A状态伪类Bug的解决办法</font> </a></td><td
width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;"> <a
target="_blank" title="说话间，两年就这样匆匆从指间流走，毕业了！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdudo.org%2Farchives%2F2007071821161.html&from=http%3A%2F%2Fdudo.org%2Farchives%2F2009010415265.html"> <img
style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2010/10/02/721534.jpg" width="96px" height="96px" /><br
/> <font
size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">说话间，两年就这样匆匆从指间流走，毕业了！</font> </a></td></tr><tr><td
colspan="5" align="right"> <a
style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件"> <font
size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font> </a></td></tr></table>]]></content:encoded> <wfw:commentRss>http://dudo.org/archives/2009010415265.html/feed</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>CSS Dock Menu：JS+CSS 仿苹果MAC机桌面导航菜单</title><link>http://dudo.org/archives/2008061911251.html</link> <comments>http://dudo.org/archives/2008061911251.html#comments</comments> <pubDate>Thu, 19 Jun 2008 08:17:00 +0000</pubDate> <dc:creator>dudo</dc:creator> <category><![CDATA[CSS与JS]]></category> <category><![CDATA[css]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Jquery]]></category> <guid
isPermaLink="false">http://dudo.limewebs.com/?p=250</guid> <description><![CDATA[<img
src="http://dudo.org/attachments/month_0806/d200862092722.jpg" border="0" alt="仿苹果机桌面菜单" /> 如果你是苹果机的疯狂粉丝，那么你一定会喜欢我设计的这款CSS Dock Menu。它采用了<a
href="http://jquery.com/" target="_blank">Jquery</a>的<a
href="http://www.dudo.org/default.asp?tag=JavaScript" target="_blank">JavaScript库</a>和Fisheye的界面，其中一些图标是我自己设计的。这里有两种样式：底部和顶部。下面我演示一下如何在你的Web页面中使用它： <strong>1、下载源文件</strong> <a
href="http://dudo.org/attachments/month_0806/b200861911438.zip" target="_blank">点击下载此文件</a>[......]<p
class='read-more'><a
href='http://dudo.org/archives/2008061911251.html'>Read more</a></p>]]></description> <content:encoded><![CDATA[<p><img
src="http://dudo.org/attachments/month_0806/d200862092722.jpg" border="0" alt="仿苹果机桌面菜单" /><br
/> 如果你是苹果机的疯狂粉丝，那么你一定会喜欢我设计的这款CSS Dock Menu。它采用了<a
href="http://jquery.com/" target="_blank">Jquery</a>的<a
href="http://www.dudo.org/default.asp?tag=JavaScript" target="_blank">JavaScript库</a>和Fisheye的界面，其中一些图标是我自己设计的。这里有两种样式：底部和顶部。下面我演示一下如何在你的Web页面中使用它：</p><p><strong>1、下载源文件</strong></p><p><a
href="http://dudo.org/attachments/month_0806/b200861911438.zip" target="_blank">点击下载此文件</a>[......]<p
class='read-more'><a
href='http://dudo.org/archives/2008061911251.html'>Read more</a></p> ]]></content:encoded> <wfw:commentRss>http://dudo.org/archives/2008061911251.html/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Yahoo!网站性能最佳体验的34条黄金守则——JavaScript和CSS</title><link>http://dudo.org/archives/2008051417218.html</link> <comments>http://dudo.org/archives/2008051417218.html#comments</comments> <pubDate>Wed, 14 May 2008 14:47:26 +0000</pubDate> <dc:creator>dudo</dc:creator> <category><![CDATA[网站开发]]></category> <category><![CDATA[css]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[网站性能]]></category> <category><![CDATA[雅虎]]></category> <guid
isPermaLink="false">http://dudo.limewebs.com/?p=216</guid> <description><![CDATA[<p>英文地址：<a
target="_blank" href="http://developer.yahoo.com/performance/rules.html">http://developer.yahoo.com/performance/rules.html</a><br
/> 中文地址：<a
href="http://www.dudo.org/article.asp?id=214" target="_blank">http://www.dudo.org/article.asp?id=216</a><br
/> &#160;&#160;&#160;&#160;&#160; 在<a
href="http://www.dudo.org/article.asp?id=214" target="_blank">第一部</a>分和<a
href="http://www.dudo.org/article.asp?id=215" target="_blank">第二部分</a>中我们分别介绍了改善[......]</p><p
class='read-more'><a
href='http://dudo.org/archives/2008051417218.html'>Read more</a></p>]]></description> <content:encoded><![CDATA[<p>英文地址：<a
target="_blank" href="http://developer.yahoo.com/performance/rules.html">http://developer.yahoo.com/performance/rules.html</a><br
/> 中文地址：<a
href="http://www.dudo.org/article.asp?id=214" target="_blank">http://www.dudo.org/article.asp?id=216</a><br
/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在<a
href="http://www.dudo.org/article.asp?id=214" target="_blank">第一部</a>分和<a
href="http://www.dudo.org/article.asp?id=215" target="_blank">第二部分</a>中我们分别介绍了改善[......]</p><p
class='read-more'><a
href='http://dudo.org/archives/2008051417218.html'>Read more</a></p> ]]></content:encoded> <wfw:commentRss>http://dudo.org/archives/2008051417218.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>top、clientTop、scrollTop、offsetTop</title><link>http://dudo.org/archives/200611010280.html</link> <comments>http://dudo.org/archives/200611010280.html#comments</comments> <pubDate>Tue, 31 Oct 2006 18:31:42 +0000</pubDate> <dc:creator>dudo</dc:creator> <category><![CDATA[CSS与JS]]></category> <category><![CDATA[JavaScript]]></category> <guid
isPermaLink="false">http://dudo.limewebs.com/?p=80</guid> <description><![CDATA[<p><img
alt="" border="0" src="http://dudo.org/attachments/month_0611/p200611123030.gif" /> <span
style="font-weight: bold; color: rgb(255,0,0)">以下示例代码：</span></p><div
id="myCode" style="overflow: auto; height: 300px">&#60;html&#62;<br
/> &#60;head&#62;<br
/> &#60;title&#62;51windows.Net &#60;/title&#62;<br
/> &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; cha[......]</div><p
class='read-more'><a
href='http://dudo.org/archives/200611010280.html'>Read more</a></p>]]></description> <content:encoded><![CDATA[<p><img
alt="" border="0" src="http://dudo.org/attachments/month_0611/p200611123030.gif" /> <span
style="font-weight: bold; color: rgb(255,0,0)">以下示例代码：</span></p><div
id="myCode" style="overflow: auto; height: 300px">&lt;html&gt;<br
/> &lt;head&gt;<br
/> &lt;title&gt;51windows.Net &lt;/title&gt;<br
/> &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; cha[......]</div><p
class='read-more'><a
href='http://dudo.org/archives/200611010280.html'>Read more</a></p> ]]></content:encoded> <wfw:commentRss>http://dudo.org/archives/200611010280.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>用JS实现“左中DIV”和“右中DIV”等高</title><link>http://dudo.org/archives/200609210265.html</link> <comments>http://dudo.org/archives/200609210265.html#comments</comments> <pubDate>Wed, 20 Sep 2006 18:38:37 +0000</pubDate> <dc:creator>dudo</dc:creator> <category><![CDATA[CSS与JS]]></category> <category><![CDATA[css]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[tips]]></category> <guid
isPermaLink="false">http://dudo.limewebs.com/?p=63</guid> <description><![CDATA[<p
class="code">&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;&#62;<br
/> &#038;l[......]</p><p
class='read-more'><a
href='http://dudo.org/archives/200609210265.html'>Read more</a></p>]]></description> <content:encoded><![CDATA[<p
class="code">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br
/> &#038;l[......]</p><p
class='read-more'><a
href='http://dudo.org/archives/200609210265.html'>Read more</a></p> ]]></content:encoded> <wfw:commentRss>http://dudo.org/archives/200609210265.html/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>常用的匹配正则表达式和实例</title><link>http://dudo.org/archives/200607202356.html</link> <comments>http://dudo.org/archives/200607202356.html#comments</comments> <pubDate>Thu, 20 Jul 2006 15:30:18 +0000</pubDate> <dc:creator>dudo</dc:creator> <category><![CDATA[CSS与JS]]></category> <category><![CDATA[JavaScript]]></category> <guid
isPermaLink="false">http://dudo.limewebs.com/?p=54</guid> <description><![CDATA[<p>匹配中文字符的正则表达式： [\u4e00-\u9fa5]<br
/> <br
/> 匹配双字节字符(包括汉字在内)：[^\x00-\xff]<br
/> <br
/> 应用：计算字符串的长度（一个双字节字符长度计2，ASCII字符计1）<br
/> <br
/> String.prototype.len=function(){return this.replace([[......]</p><p
class='read-more'><a
href='http://dudo.org/archives/200607202356.html'>Read more</a></p>]]></description> <content:encoded><![CDATA[<p>匹配中文字符的正则表达式： [\u4e00-\u9fa5]</p><p>匹配双字节字符(包括汉字在内)：[^\x00-\xff]</p><p>应用：计算字符串的长度（一个双字节字符长度计2，ASCII字符计1）</p><p>String.prototype.len=function(){return this.replace([[......]</p><p
class='read-more'><a
href='http://dudo.org/archives/200607202356.html'>Read more</a></p> ]]></content:encoded> <wfw:commentRss>http://dudo.org/archives/200607202356.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
