<?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>NANI</title>
	<atom:link href="http://nani.cc/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://nani.cc</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 05 Sep 2010 01:44:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>關於 JSON 的新物件</title>
		<link>http://nani.cc/?p=212</link>
		<comments>http://nani.cc/?p=212#comments</comments>
		<pubDate>Sun, 05 Sep 2010 01:44:20 +0000</pubDate>
		<dc:creator>Bike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[JSON]]></category>

		<guid isPermaLink="false">http://nani.cc/?p=212</guid>
		<description><![CDATA[請參考 Wishare 的 Handler/HistoryPush.aspx.vb
]]></description>
			<content:encoded><![CDATA[<p>請參考 Wishare 的 Handler/HistoryPush.aspx.vb</p>
]]></content:encoded>
			<wfw:commentRss>http://nani.cc/?feed=rss2&amp;p=212</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 2008 AD Domain 取消密碼複雜性</title>
		<link>http://nani.cc/?p=211</link>
		<comments>http://nani.cc/?p=211#comments</comments>
		<pubDate>Fri, 03 Sep 2010 23:42:05 +0000</pubDate>
		<dc:creator>Bike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nani.cc/?p=211</guid>
		<description><![CDATA[Open Group Policy Management Console (Start / Run / GPMC.MSC), open the Domain, and right-click and Edit the “Default Domain Policy”. Then dig into the “Computer Configuration”, “Windows Settings”, “Security Settings”, “Account Policies”, and modify the password complexity requirements setting.
Ref: http://yhlin.tw/?p=69
]]></description>
			<content:encoded><![CDATA[<p>Open Group Policy Management Console (Start / Run / GPMC.MSC), open the Domain, and right-click and Edit the “Default Domain Policy”. Then dig into the “Computer Configuration”, “Windows Settings”, “Security Settings”, “Account Policies”, and modify the password complexity requirements setting.</p>
<p>Ref: http://yhlin.tw/?p=69</p>
]]></content:encoded>
			<wfw:commentRss>http://nani.cc/?feed=rss2&amp;p=211</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server 2008 的 Join 方式 (當 View 的查詢變的很慢時)</title>
		<link>http://nani.cc/?p=209</link>
		<comments>http://nani.cc/?p=209#comments</comments>
		<pubDate>Fri, 16 Jul 2010 02:58:15 +0000</pubDate>
		<dc:creator>Bike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nani.cc/?p=209</guid>
		<description><![CDATA[在 SQL Server 2008 中, 對 View 之主要 Table 的欄位欄詢時, 該欄位有建立 Index, 但似乎沒有使用到. 因為資料量很大, 所以要花很多時間, 尤某是有用到 Top 時.
Solution:
把所有和該 Table 相關的 Join 改為 Left Join 或 Right Join, 以告知 SQL Server 該 Table 所有的資料都會被選出來, 這樣 SQL 就會使用該 Table 的 Index 了.
]]></description>
			<content:encoded><![CDATA[<p>在 SQL Server 2008 中, 對 View 之主要 Table 的欄位欄詢時, 該欄位有建立 Index, 但似乎沒有使用到. 因為資料量很大, 所以要花很多時間, 尤某是有用到 Top 時.</p>
<p>Solution:<br />
把所有和該 Table 相關的 Join 改為 Left Join 或 Right Join, 以告知 SQL Server 該 Table 所有的資料都會被選出來, 這樣 SQL 就會使用該 Table 的 Index 了.</p>
]]></content:encoded>
			<wfw:commentRss>http://nani.cc/?feed=rss2&amp;p=209</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL 2008 Maintenance Planes 無法執行</title>
		<link>http://nani.cc/?p=207</link>
		<comments>http://nani.cc/?p=207#comments</comments>
		<pubDate>Fri, 16 Jul 2010 02:51:49 +0000</pubDate>
		<dc:creator>Bike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nani.cc/?p=207</guid>
		<description><![CDATA[當執行時出現 sqlserver error 15404 could not obtain information about windows nt group user &#8230; 的訊息
1. 修改 Maintenance Plan 的 Connection(上方有一個 Manage Connections)
2. 修改 SQL Server Agent 中的相對應的 Job (我是改成 sa)
]]></description>
			<content:encoded><![CDATA[<p>當執行時出現 sqlserver error 15404 could not obtain information about windows nt group user &#8230; 的訊息</p>
<p>1. 修改 Maintenance Plan 的 Connection(上方有一個 Manage Connections)</p>
<p>2. 修改 SQL Server Agent 中的相對應的 Job (我是改成 sa)</p>
]]></content:encoded>
			<wfw:commentRss>http://nani.cc/?feed=rss2&amp;p=207</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS 開啟 Gzip 時, IE 下載 zip 檔會有問題</title>
		<link>http://nani.cc/?p=205</link>
		<comments>http://nani.cc/?p=205#comments</comments>
		<pubDate>Tue, 06 Jul 2010 07:43:29 +0000</pubDate>
		<dc:creator>Bike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nani.cc/?p=205</guid>
		<description><![CDATA[真是一個鳥問題, 要把 .ZIP 的 MIME Type 由 application/x-zip-compressed 改為 application/octet-stream 才行
Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
Right-click the server (local computer) tree, where server (local computer) is the name of your IIS server, and then click Properties.
Click MIME Types.
Scroll down the registered MIME type list to find the .zip entry.
Click the .zip [...]]]></description>
			<content:encoded><![CDATA[<p>真是一個鳥問題, 要把 .ZIP 的 MIME Type 由 application/x-zip-compressed 改為 application/octet-stream 才行</p>
<p>Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.</p>
<p>Right-click the server (local computer) tree, where server (local computer) is the name of your IIS server, and then click Properties.</p>
<p>Click MIME Types.</p>
<p>Scroll down the registered MIME type list to find the .zip entry.</p>
<p>Click the .zip application/x-zip-compressed entry, and then click Edit.</p>
<p>Change the MIME type value to application/octet-stream.</p>
<p>Stop and then restart the IIS Admin Service to apply the change to the MIME type.</p>
<p>參考: <a href="http://blog.darkthread.net/blogs/darkthreadtw/archive/2009/02/11/4186.aspx">http://blog.darkthread.net/blogs/darkthreadtw/archive/2009/02/11/4186.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nani.cc/?feed=rss2&amp;p=205</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 Windows 2003 及 Windows 2008 (x64) 上面安裝 AWstats</title>
		<link>http://nani.cc/?p=197</link>
		<comments>http://nani.cc/?p=197#comments</comments>
		<pubDate>Sun, 14 Mar 2010 14:22:05 +0000</pubDate>
		<dc:creator>Bike</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[主機]]></category>

		<guid isPermaLink="false">http://nani.cc/?p=197</guid>
		<description><![CDATA[安裝版本 awstats-6.95 + ActivePerl-5.10.1.1007

安裝 ActivePerl 的版本 (目前要安裝 x86 的版本, 因為 x64 不支援 isapi)

Windows 2008  (x64)

 Install ActivePerl from http://www.activestate.com/activeperl/. At this time, there is a link to version 5.10 for Windows (x86) on this page. This link downloads an MSI installer to your machine which you can run.
 If you are running the 64 bit [...]]]></description>
			<content:encoded><![CDATA[<p>安裝版本 awstats-6.95 + ActivePerl-5.10.1.1007</p>
<ol>
<li>安裝 ActivePerl 的版本 (目前要安裝 x86 的版本, 因為 x64 不支援 isapi)
<ol>
<li>Windows 2008  (x64)
<ol>
<li> Install ActivePerl from <a href="http://www.activestate.com/activeperl/">http://www.activestate.com/activeperl/</a>. At this time, there is a link to version 5.10 for Windows (x86) on this page. This link downloads an MSI installer to your machine which you can run.</li>
<li> If you are running the 64 bit version of Windows 2008, ensure that your application pool is configured to run as 32 bit. Assuming that you will be using ActivePerl in the default application pool, these steps will do it:
<ol>
<li>From the Windows &#8216;Start&#8217; menu, pick run and type &#8220;inetmgr&#8221; (without the quotes). Click on &#8216;OK&#8221;.</li>
<li>In the left hand pane of IIS Manager, open up the settings for your server. Click on &#8220;Application Pools&#8221;.</li>
<li>In the Application Pools page, select &#8220;DefaultAppPool&#8221;.</li>
<li>In the right hand pane, under &#8220;Edit Application Pool&#8221;, click on &#8220;Advance Settings&#8230;&#8221;</li>
<li>In the Advanced Settings dialog, ensure that &#8220;Enable 32-bit Applications&#8221; is set to &#8220;True&#8221;.</li>
</ol>
</li>
<li> Create a handler mapping that associates &#8220;*.pl&#8221; requests with ActiveState&#8217;s perlex30.dll extension using the following steps:</li>
<li>In the left hand pane of IIS Manager, select your server. This will apply the following handler mappings on the entire server. If you would like to do this for just a specific site or application, you can open up the server and select any site or application. In the center pane, double click on the Handler Mappings icon.</li>
<li> When the Handler Mappings pane is displayed, click on the &#8220;Add Module Mapping&#8230;&#8221; item in the Actions pane on the right.</li>
<li>Fill out the Add Module Mapping dialog as follows:
<ol>
<li>For Request Path, enter &#8220;*.pl&#8221;.</li>
<li>For Module, select &#8220;IsapiModule&#8221; from the dropdown list. Note that the ISAPI module is a prerequisite. If it does not show up on this list, it will need to be installed an an IIS optional component.</li>
<li>For Executable, enter &#8220;c:\perl\bin\PerlEx30.dll&#8221; (without the quotes.) Note that this assumes that you&#8217;ve installed ActiveState Perl using its default location. If you installed it in another location, you will need to look there for perlex30.dll.</li>
<li>For Name, enter &#8220;ActiveState Perl for .pl&#8221;. Note that this name is just a label and does not affect functionality. It does need to be unique, though. If you are going to be associating other file extensions with ActiveState Perl, the names for those mappings will need to be different.</li>
</ol>
</li>
<li>You do not need to do anything with the &#8220;Request Restrictions&#8230;&#8221; button. If you wish to limit this mapping to specific HTTP verbs, etc., it can be done there.<br />
Repeat the above steps for any additional file extensions you wish to be associated with Perl. On IIS 6, ActiveState Perl creates mappings for &#8220;*.pl&#8221;, &#8220;*.plx&#8221; and &#8220;*.plex&#8221;. Additionally, some applications are known to map &#8220;*.cgi&#8221; with Perl.</li>
</ol>
</li>
<p><a href="http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx">http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx</a></p>
<li>Windows 2003 的 IIS 6 的設定: <a href="http://www.visualwin.com/Perl/">http://www.visualwin.com/Perl/</a>
<ol>
<li>In that window, where it asks for the extension name you can put anything, like &#8220;CGI script&#8221; and under the &#8220;Required Files&#8221; section put the following in (without the apostrophes) &#8216;C:\Perl\bin\perl.exe &#8220;%s&#8221; %s&#8217; click OK to the notification, click &#8220;Set status to allowed&#8221; and press ok.</li>
<li>網站要允許 Script 和 Isapi</li>
<li>設定 .pl 的對應<br />
在 主目錄 &gt; 應用程式的設定中, 新增 .pl 的設定<br />
執行檔: C:\Perl\bin\perl.exe &#8220;%s&#8221; %s<br />
附檔名: .pl</li>
</ol>
</li>
<li>國家反查<br />
在 Dos 指令下執行:<br />
ppm install Geo::IP::PurePerl<br />
ppm install Geography::Countries<br />
ppm install IP::Country</li>
<li>下載 <a href="http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz">http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz</a> (原文的下載點有問題)把<br />
GeoIP.dat 解壓縮至 C:\Perl 目錄下</li>
</ol>
</li>
<p><a href="http://www.activestate.com/activeperl/">http://www.activestate.com/activeperl/</a><br />
G:\Software\ActivePerl-5.10.1.1007-MSWin32-x86-291969.msi</p>
<li>安裝 Awstats:
<ol>
<li>參考: <a href="http://www.pgs-soft.com/wp-content/uploads/2010/03/InstallingAWStatsOnIIS6_IIS7.pdf">http://www.pgs-soft.com/wp-content/uploads/2010/03/InstallingAWStatsOnIIS6_IIS7.pdf</a> (G:\Software\InstallingAWStatsOnIIS6_IIS7.pdf)</li>
<li>下載: <a href="http://awstats.sourceforge.net/#DOWNLOAD">http://awstats.sourceforge.net/#DOWNLOAD</a><br />
G:\Software\awstats-6.95.exe</li>
<li>自動的設定程序中, 可以新增一個設定檔</li>
<li>讀取前一天的 LOG:<br />
LogFile=&#8221;G:/Log/W3SVC2/u_ex%YY-24%MM-24%DD-24.log&#8221;, 設定自動執行的時間在早上 8:30</li>
<li>LogFormat 要改為 2, 可參考 C:\Program Files (x86)\AWStats\docs\awstats_setup.html<br />
一定要把格式改掉, 因為原來的 Log 沒有記錄發送和接收的 bytes 數</li>
<li>修改/etc/awstats/awstats.yourdomain.conf<br />
DNSlookup=0<br />
LoadPlugin=&#8221;geoip GEOIP_STANDARD C:/Perl/GeoIP.dat&#8221;</li>
<li>Awstats亂碼的的解決方法<br />
請加入LoadPlugin=&#8221;decodeutfkeys&#8221;<br />
這行儲存即可正常顯示中文</li>
<li>更改時區<br />
LoadPlugin=&#8221;timezone +8&#8243;</li>
</ol>
</li>
</ol>
<p>參考<br />
<a href="http://blog.miniasp.com/post/2007/11/How-to-install-AWStats-traffic-statistics-software-in-Windows.aspx">http://blog.miniasp.com/post/2007/11/How-to-install-AWStats-traffic-statistics-software-in-Windows.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nani.cc/?feed=rss2&amp;p=197</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&lt;img&gt;圖片標籤接不起來的問題</title>
		<link>http://nani.cc/?p=183</link>
		<comments>http://nani.cc/?p=183#comments</comments>
		<pubDate>Fri, 26 Feb 2010 05:40:14 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://nani.cc/?p=183</guid>
		<description><![CDATA[<div div style=" font-size:12px; font-family:Tahoma, Geneva, sans-serif;padding:20px;margin:10px; background-color:#000; color:#FFF">原因：&#60;img&#62;標籤在&#34;原始碼&#34;的<em style="font-size:18px;">&#34;空白&#34;</em>視為像 &#38;nbsp; 的空格，產生區塊，造成圖片有間隔。為了應應各版本，盡量用CSS取代或&#60;img&#62;標籤要接在一起，前後不要有空隔/斷航，才不會遇到這種鳥問題。</div>]]></description>
			<content:encoded><![CDATA[<p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></p>
<p></head></p>
<p><body ></p>
<div style="background:#fff; border:3px dotted #F60; width:auto; margin:auto; text-align:;">
<div style=" margin:10px; padding:20px;background-color:#000;">
<h4 style=" color:#F60; font-family:Tahoma, Geneva, sans-serif; float:left;">&lt;img&gt;接不起來、多空一條(橫排)1</h4>
<h1 style="float:left; color:#FFF; font-family:Tahoma, Geneva, sans-serif;">Why</h1>
<h4 style="float:left;color: #F00; font-family:Tahoma, Geneva, sans-serif;">-斷行視為有空格</h4>
<p style="clear:both;line-height:0px;">
<img src="http://www.uwinfo.com.tw/images/Title.JPG"/> <img src="http://www.uwinfo.com.tw/images/Title.JPG"/> <img src="http://www.uwinfo.com.tw/images/Title.JPG"/>
</p>
<p style="clear:both;text-align:left;">
<h4 style="color:#FFF">&lt;img src=&quot;http://www.uwinfo.com.tw/images/Title.JPG&quot;/&gt;</br>&lt;img src=&quot;http://www.uwinfo.com.tw/images/Title.JPG&quot;/&gt;<br />
&lt;img src=&quot;http://www.uwinfo.com.tw/images/Title.JPG&quot;/&gt;</h4>
<p style="color:#FFF">標籤右邊視為有空格</p>
</p>
</div>
<div style=" padding:20px;margin:10px; background-color:#000; clear:both;">
<h4 style=" color:#F60; font-family:Tahoma, Geneva, sans-serif; float:left;">&lt;img&gt;接不起來、多空一條(直列)2</h4>
<h1 style="float:left; color:#FFF; font-family:Tahoma, Geneva, sans-serif;">Why</h1>
<h4 style="float:left;color: #F00; font-family:Tahoma, Geneva, sans-serif;">-斷行視為空格(只出現IE6‧7)</h4>
<div style="clear:both;">
<table border="0" cellspacing="0" cellpadding="0" style="line-height:0px;">
<tr>
<td>
<div><img src="http://www.uwinfo.com.tw/images/Title.JPG"/> </div>
</td>
</tr>
<tr>
<td>
<div><img src="http://www.uwinfo.com.tw/images/Title.JPG"/></div>
</td>
</tr>
<tr>
<td>
<div><img src="http://www.uwinfo.com.tw/images/Title.JPG"/></div>
</td>
</tr>
</table>
<h4 style="color:#FFF"> &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;img src=&quot;xxx.JPG&quot;/&gt;<em style="background-color:#F03;"> </em>&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;img src=&quot;xxx.JPG&quot;/&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;img src=&quot;xxx.JPG&quot;/&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;</h4>
<p style="color:#FFF">程式碼紅色地方視為空格</p>
</div>
<div style="clear:both; margin:auto;"></div>
</div>
<div div style=" font-size:12px; font-family:Tahoma, Geneva, sans-serif;padding:20px;margin:10px; background-color:#000; color:#FFF">原因：&lt;img&gt;標籤在&quot;原始碼&quot;的<em style="font-size:18px;">&quot;空白&quot;</em>視為像 &amp;nbsp; 的空格，產生區塊，造成圖片有間隔。為了應應各版本，盡量用CSS取代或&lt;img&gt;標籤要接在一起，前後不要有空隔，才不會遇到這種鳥問題。</div>
</div>
<p></body><br />
</html></p>
]]></content:encoded>
			<wfw:commentRss>http://nani.cc/?feed=rss2&amp;p=183</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>臺灣行政區下拉式選單( jQuery base )</title>
		<link>http://nani.cc/?p=161</link>
		<comments>http://nani.cc/?p=161#comments</comments>
		<pubDate>Fri, 26 Feb 2010 04:31:17 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[JS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[下拉式選單]]></category>
		<category><![CDATA[行政區]]></category>

		<guid isPermaLink="false">http://nani.cc/?p=161</guid>
		<description><![CDATA[使用jQuery 動態產生 臺灣行政區下拉式選單]]></description>
			<content:encoded><![CDATA[<p><a href="http://nani.cc/download/jquery-area-ddl/Demo.zip" target="_blank">download demo</a></p>
<div style="display:none">
<script src="download/jquery-area-ddl/jquery.js" type="text/javascript"></script><br />
<script src="download/jquery-area-ddl/taiwan.js" type="text/javascript"></script><br />
<script src="download/jquery-area-ddl/jquery-area-select.js" type="text/javascript"></script><br />
<script type="text/javascript">
$(document).ready(function(){
      $(".taiwan-select").html(createCounty('demo'))
})
</script>
</div>
<div class="taiwan-select"></div>
<p>加入以下的Javascript(其中taiwan.js是有台灣地區縣市資料的array)</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p161code1'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1611"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p161code1"><pre class="html" style="font-family:monospace;">&lt;script src=&quot;jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;!--mce:0--&gt;&lt;/script&gt;
&lt;script src=&quot;taiwan.js&quot; type=&quot;text/javascript&quot;&gt;&lt;!--mce:1--&gt;&lt;/script&gt;
&lt;script src=&quot;jquery-area-select.js&quot; type=&quot;text/javascript&quot;&gt;&lt;!--mce:2--&gt;&lt;/script&gt;</pre></td></tr></table></div>

<p>在想要加入下拉式選單的區域如下加入taiwan-select這個class的div<br />
如下</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p161code2'); return false;">View Code</a> JS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1612"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p161code2"><pre class="js" style="font-family:monospace;">$(document).ready(function(){
	$(&quot;.taiwan-select&quot;).html(createCounty('yourIdTitle'))
})</pre></td></tr></table></div>

<p>所產生的動態下拉式選單name和Id屬性的命名為下面規則<br />
County: <span style="color: #ffcc00;">yourIdTitle</span>County<br />
Zone:<span style="color: #ffcc00;">yourIdTitle</span>Zone<br />
Zip:<span style="color: #ffcc00;">yourIdTitle</span>Zip</p>
]]></content:encoded>
			<wfw:commentRss>http://nani.cc/?feed=rss2&amp;p=161</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript 字串的擴充 functions</title>
		<link>http://nani.cc/?p=154</link>
		<comments>http://nani.cc/?p=154#comments</comments>
		<pubDate>Thu, 18 Feb 2010 10:20:34 +0000</pubDate>
		<dc:creator>Bike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nani.cc/?p=154</guid>
		<description><![CDATA[一些 Javascript 的 String 擴充功能:
Substr
myVar = substr2(myVar, x, y); //Your function
myVar = myVar.substr(x, y); //built-in function
Trim
String.prototype.trim = function(){return
(this.replace(/^[\s\xA0]+/, &#8220;&#8221;).replace(/[\s\xA0]+$/, &#8220;&#8221;))}
startsWith
String.prototype.startsWith = function(str)
{return (this.match(&#8220;^&#8221;+str)==str)}
 endsWith
String.prototype.endsWith = function(str)
{return (this.match(str+&#8221;$&#8221;)==str)} 
Examples:
var myStr = “  Earth is a beautiful planet  ”;
var myStr2 = myStr.trim();  
//==“Earth is a beautiful planet”;
if (myStr2.startsWith(“Earth”)) // returns TRUE
if (myStr2.endsWith(“planet”)) // returns TRUE
if (myStr.startsWith(“Earth”))
// returns FALSE due to the leading spaces…
if [...]]]></description>
			<content:encoded><![CDATA[<p>一些 Javascript 的 String 擴充功能:</p>
<p><strong>Substr<br />
</strong>myVar = substr2(myVar, x, y); //Your function<br />
myVar = myVar.substr(x, y); //built-in function</p>
<p><strong>Trim<br />
</strong>String.prototype.trim = function(){return<br />
(this.replace(/^[\s\xA0]+/, &#8220;&#8221;).replace(/[\s\xA0]+$/, &#8220;&#8221;))}</p>
<p><strong>startsWith<br />
</strong>String.prototype.startsWith = function(str)<br />
{return (this.match(&#8220;^&#8221;+str)==str)}</p>
<p> <strong>endsWith</strong><br />
String.prototype.endsWith = function(str)<br />
{return (this.match(str+&#8221;$&#8221;)==str)} </p>
<p><strong>Examples:<br />
</strong>var myStr = “  Earth is a beautiful planet  ”;<br />
var myStr2 = myStr.trim();  <br />
//==“Earth is a beautiful planet”;</p>
<p>if (myStr2.startsWith(“Earth”)) // returns TRUE</p>
<p>if (myStr2.endsWith(“planet”)) // returns TRUE</p>
<p>if (myStr.startsWith(“Earth”))<br />
// returns FALSE due to the leading spaces…</p>
<p>if (myStr.endsWith(“planet”))<br />
// returns FALSE due to trailing spaces…</p>
<p>參考連結: <a href="http://www.tek-tips.com/faqs.cfm?fid=6620">http://www.tek-tips.com/faqs.cfm?fid=6620</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nani.cc/?feed=rss2&amp;p=154</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Image Gallery (jQuery Base)</title>
		<link>http://nani.cc/?p=142</link>
		<comments>http://nani.cc/?p=142#comments</comments>
		<pubDate>Fri, 12 Feb 2010 07:35:15 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[JS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[fadeIn]]></category>
		<category><![CDATA[fadeOut]]></category>
		<category><![CDATA[image gallary]]></category>

		<guid isPermaLink="false">http://nani.cc/?p=142</guid>
		<description><![CDATA[簡單的 Image Gallary 
<div id="gallary">]]></description>
			<content:encoded><![CDATA[<p><a href="http://nani.cc/download/jquery-simple-image-gallary/example.zip">Download</a><br />
Demo:<br />
<iframe src="download/jquery-simple-image-gallary/example.html" width="200" height="200" style="border:none ;margin-top:0px; margin-left:0px;"></iframe></p>
<p>加入</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p142code3'); return false;">View Code</a> JS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1423"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p142code3"><pre class="js" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;yourpath/jquery-gallary.js&quot;&gt;&lt;/script&gt;</pre></td></tr></table></div>

<p>將圖片外的標籤加上 class=&#8221;gallary&#8221;<br />
就會把裡頭的所有圖片用fadeIn &#038; fadeOut撥放</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p142code4'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1424"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p142code4"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;gallary&quot;&gt;
&lt;img src=&quot;yourimg1&quot;/&gt;
&lt;img src=&quot;yourimg2&quot;/&gt;
&lt;img src=&quot;yourimg3&quot;/&gt;
&lt;img src=&quot;yourimg4&quot;/&gt;
&lt;/div&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://nani.cc/?feed=rss2&amp;p=142</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
