<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>簡睿隨筆 《科技篇》-Blog工具箱</title>
<link>http://blog.roodo.com/emisjerry/archives/cat_8044.html</link>
<description>
  
    
      學習過程的各項紀錄與備忘
:::看不到圖請連我
的Xuite主站::
      
      
      
       
      
    
    
      





      
 

      

      
        
          
            
              
              輸
入您的搜尋字詞
              
            
          
        
        提
交搜尋表單
      
      
    
  





_uacct = &quot;UA-123122-2&quot;;
urchinTracker();

</description>
<language>zh-tw</language>
<generator>Roodo Blog System</generator>
<copyright>All Rights Reserved</copyright>
<atom:link href="http://blog.roodo.com/emisjerry/archives/cat_8044.xml" rel="self" type="application/rss+xml" />
<item>
	<title>挺不賴的Windows Live Writer的插件：Polaroid Picture</title>
	<description><![CDATA[
			&nbsp;     &nbsp;  從How to add Polariod-style pictures into your blog posts看到一個挺不賴的Windows Live Writer的插件：Polariod Picture，能把插入到編輯區的圖片以拍立得的樣式呈現，除了可以加標題，也能旋轉圖片。加標題或旋轉用許多美工工具都能簡單的完成，但Polaroid Picture的這些特效只利用CSS樣式完成的，既迅速又輕鬆。
		]]>
	</description>
	<content:encoded><![CDATA[
			<p>&nbsp;</p>  <p><a href="http://blog.roodo.com/emisjerry/edbce4b2.png"><img style="border-width: 0px; margin: 0px 20px 20px 0px; display: inline" src="http://blog.roodo.com/emisjerry/e277f373.png" border="0" alt="Plugin: Polaroid" title="Plugin: Polaroid" width="539" height="484" align="left" /></a> </p>  <p>&nbsp;</p>  <p>從<a href="http://www.online-tech-tips.com/cool-websites/add-polariod-style-pictures-into-blog-posts/">How to add Polariod-style pictures into your blog posts</a>看到一個挺不賴的Windows Live Writer的插件：<a href="http://gallery.live.com/liveitemdetail.aspx?bt=9&amp;li=6a125986-6550-4ce9-9c71-9a0fbbc3443f" target="_blank">Polariod Picture</a>，能把插入到編輯區的圖片以拍立得的樣式呈現，除了可以加標題，也能旋轉圖片。加標題或旋轉用許多美工工具都能簡單的完成，但Polaroid Picture的這些特效只利用CSS樣式完成的，既迅速又輕鬆。</p>
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/7561855.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/7561855.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/7561855.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Wed, 12 Nov 2008 22:00:12 +0800</pubDate>
</item>
<item>
	<title>氣象局衛星雲圖修正－討厭，怎麼又改了？</title>
	<description><![CDATA[
			 從昨天開始中央氣象局的衛星雲圖連結圖檔都無法正確顯示，晚上檢查一下，發現圖檔檔名原本用的「時-日-月-年」格式突然變成「年-月-日-時」，修改後即告正常。完整程式如下，以自由欄位加入：         2008/11/03修改：
		]]>
	</description>
	<content:encoded><![CDATA[
			<p><a href="http://blog.roodo.com/emisjerry/2ef3fe7a.png"><img style="border-width: 0px; margin: 0px 0px 20px; display: inline" src="http://blog.roodo.com/emisjerry/fa49600b.png" border="0" alt="氣象局雲圖" title="氣象局雲圖" width="260" height="223" align="right" /></a> 從昨天開始中央氣象局的衛星雲圖連結圖檔都無法正確顯示，晚上檢查一下，發現圖檔檔名原本用的「時-日-月-年」格式突然變成「<span style="font-weight: bold">年-月-日-時</span>」，修改後即告正常。完整程式如下，以自由欄位加入：     <br />    <br /><span style="color: #009900">2008/11/03修改：</span></p>
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/7496275.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/7496275.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/7496275.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Mon, 03 Nov 2008 22:48:22 +0800</pubDate>
</item>
<item>
	<title>HighLight：程式碼顯示的美化工具</title>
	<description><![CDATA[
			在Blog裡顯示程式碼經常都有繁瑣的程序，我使用過dp.SyntaxHighlighter、CodePress與Syntax Highlighting in JavaScript等JavaScript程式庫，功能各有高低但都必須在網站上存放JavaScript檔案，若存放的網站發生問題或不再提供服務（如Google Page Creator即是）時，原先貼入程式碼的文章就會發生問題，最後我反而覺得倒不如直接列入HTML格式的程式碼就好，如此就不會受限於外部網站或Blog的&amp;lt;PRE&amp;gt;、&amp;lt;XMP&amp;gt;的處理規則了。  HighLight的操作很簡單：指定好要操作的檔案與輸出格式後，指定輸出選項，再按〔Convert files〕就可以了。輸出選項如下圖所示有四大項：  行 號格式：要讓程式碼標上行號的話必須勾選本項設定，行號的號碼要用HTML的OL+LI格式輸出時則再將【HTML ordered list】打勾，使用OL+LI的好處是在此格式下按左鍵選取程式碼時不會選取到行號號碼，若未勾選則行號號碼會一併被選取到。       另外在FireFox下還要自行將&amp;lt;/LI&amp;gt;刪去，否則每行會多出一行空行，IE則能正確顯示。       換行處理：當一行程式超過網頁右邊界時要如何處理，在後面有簡單說明。      是否輸出表頭和表尾：若是要貼到Blog裡，一般是不需要勾選的      樣式的輸出方式：標籤樣式可以產生成外部的.CSS檔，或內嵌在標籤裡，為求簡單則勾選之以使用內嵌格式      按下〔Convert files〕後就會將加上.html的檔名產生在指定的資料夾裡，用記事本等文書編輯程式讀取並選取到剪貼簿後，全部貼到Blog文章的原始碼裡即可。  再來說明換行的處理對輸出造成的影響。在沒有勾選Line wrap的情況時，程式碼超過右邊界時不做任何處理。     勾選了【Line Wrap】，則超出右邊界的「有些」會被切到下一列開頭。由下圖可以看到並不是每行都會成功換行。     再勾【Intelligent Wrap】時，部份超出右邊界的程式會被切到下一列並對齊上一行的較後面位置。要採用那種換行顯示悉聽尊便。     HighLight是很方便的程式碼輸出工具，又是自由軟體，推薦大家多多使用。  下載：http://www.andre-simon.de/zip/download.html 支援的輸出格式：HTML, XHTML, RTF, TeX, LaTeX, SVG與XML 支援的輸入語言：超過120種程式語言 能選用的輸出樣式：40種   最後貼上我的Ubiquity命令程式做為範例：  /*  * V1.0.1 2008/09/01  * V1.0.2 2008/09/26 加入plurk指令  * V1.0.3 2008/09/27 改進plurk, 在開頭加入qualifier動詞  * V1.0.4 2008/09/28 改進plurk, qualifier動詞-語系, 如loves-cn, loves-en  */CmdUtils.CreateCommand({  name: &quot;funp&quot;,  author: { name: &quot;emisjerry&quot;},  contributors: [&quot;emisjerry&quot;],  license: &quot;GPL&quot;,  description: &quot;選取好描述文字，把本篇文章貼上推推王&quot;,  takes: {&quot;輸入標籤名稱&quot;: noun_arb_text},  icon: &quot;http://funp.com/favicon.ico&quot;,  execute: function(directObject) {    var _sSelection = CmdUtils.getSelection();    //window.alert(_sSelection + ':' + context.focusedWindow.location.href);    var _aTags = directObject.text.split(&quot; &quot;);  // 把輸入字串分成陣列    var _sTags = &quot;&quot;;    for (var ele in _aTags) {      _sTags += &quot;&amp;tags[]=&quot; + encodeURIComponent(_aTags[ele]);    }    if (_sTags == &quot;&quot;) _sTags = &quot;&amp;tags[]=科技&quot;;  // 未輸入標籤則預設為科技    else _sTags = _sTags.replace(/tech/, '科技');  // 把tech標籤換成科技, 加快輸入速度    Utils.openUrlInBrowser(&quot;http://funp.com/push/submit/?popup&amp;url=&quot; +      encodeURIComponent(context.focusedWindow.location.href) +      &quot;&amp;t=&quot;+encodeURIComponent(_sSelection)+_sTags);  }});&nbsp; CmdUtils.CreateCommand({  name: &quot;dict&quot;,  author: { name: &quot;emisjerry&quot;},  contributors: [&quot;emisjerry&quot;],  license: &quot;GPL&quot;,  description: &quot;Yahoo!奇摩字典&quot;,  takes: {&quot;要翻譯的字彙&quot;: noun_arb_text},  icon: &quot;http://tw.dictionary.yahoo.com/favicon.ico&quot;,  execute: function(directObject) {    Utils.openUrlInBrowser(&quot;http://tw.dictionary.yahoo.com/search?ei=UTF-8&amp;p=&quot; +      directObject.text );  }});&nbsp; CmdUtils.CreateCommand({  name: &quot;cdic&quot;,  author: { name: &quot;emisjerry&quot;},  contributors: [&quot;emisjerry&quot;],  license: &quot;GPL&quot;,  description: &quot;教育部國語辭典&quot;,  takes: {&quot;要翻譯的字彙&quot;: noun_arb_text},  //icon: &quot;http://tw.dictionary.yahoo.com/favicon.ico&quot;,  execute: function(directObject) {    Utils.openUrlInBrowser( &quot;http://140.111.34.46/cgi-bin/newDict/dict.sh?idx=dict.idx&amp;pieceLen=50&amp;fld=1&amp;imgFont=1&amp;cond=&quot; + (directObject.text));  }});&nbsp; /* * Original author: http://theunfocused.net/moz/ubiquity/verbs/, Blair McBride * Copied from http://www.plurk.com/user/fortelin * sample: plurk loves Plurking test. */CmdUtils.CreateCommand({  name: &quot;plurk&quot;,  takes: {status: noun_arb_text},&nbsp;   homepage: &quot;http://theunfocused.net/moz/ubiquity/verbs/&quot;,  author: {name: &quot;Blair McBride&quot;, homepage: &quot;http://theunfocused.net/&quot;},  modifier: {name: &quot;Jerry Chien&quot;},  license: &quot;MPL&quot;,&nbsp;   preview: function(previewBlock, statusText) {    var previewTemplate = &quot;將要發佈的內容如下: &amp;lt;br/&amp;gt;&quot; +                          &quot;&amp;lt;b&amp;gt;${status}&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&quot; +                          &quot; 總字數為: &amp;lt;b&amp;gt;${chars}&amp;lt;/b&amp;gt;&quot;;    var truncateTemplate = &quot;&amp;lt;br /&amp;gt;後面 &amp;lt;b&amp;gt;${truncate}&amp;lt;/b&amp;gt; &quot; +                           &quot;個字將予以刪除!&quot;;    var previewData = {      status: statusText.text,      chars: statusText.text.length    };&nbsp;     var previewHTML = CmdUtils.renderTemplate(previewTemplate,                                                    previewData);&nbsp;     if(previewData.chars &amp;gt; 140) {      var truncateData = {        truncate: previewData.chars - 140      };&nbsp;       previewHTML += CmdUtils.renderTemplate(truncateTemplate,                                                   truncateData);    }&nbsp;     previewBlock.innerHTML = previewHTML;  },&nbsp;   execute: function(statusText) {    if(statusText.text.length &amp;lt; 1) {      displayMessage(&quot;Plurk 內容不可空白&quot;);      return;    }    var _sQualifier = &quot;says&quot;;    var _sLang = &quot;tr_ch&quot;;  // 預設為繁體中文    var _sText = statusText.text;    var _iIndex = _sText.indexOf(&quot; &quot;);    var found = false;    if (_iIndex &amp;gt; 0) {      var _aQualifiers = [&quot;loves&quot;,&quot;likes&quot;,&quot;shares&quot;,&quot;gives&quot;,&quot;hates&quot;,&quot;wants&quot;,        &quot;wishes&quot;,&quot;has&quot;,&quot;will&quot;,&quot;wonders&quot;,&quot;asks&quot;,&quot;was&quot;,&quot;feels&quot;,&quot;thinks&quot;,&quot;says&quot;,&quot;is&quot;];      var _sVerb = _sText.substring(0, _iIndex);  // 要使用的qualifier      var _iIndex2 = _sVerb.indexOf(&quot;-&quot;);  // loves, loves-tw, loves-cn, loves-en, 減號後面加語系      if (_iIndex2 &amp;gt; 0) {        var _sVerbLang = _sVerb.substring(_iIndex2+1).toLowerCase();        if (_sVerbLang==&quot;tw&quot;) _sLang = &quot;tr_ch&quot;;        else _sLang = _sVerbLang;&nbsp;         _sVerb = _sVerb.substring(0, _iIndex2);  // loves-cn ==&amp;gt; loves      }      for (var ele in _aQualifiers) {        if (_sVerb==_aQualifiers[ele]) {          found = true;          _sQualifier = _sVerb;          _sText = _sText.substring(_iIndex+1);          break;        }      }    }&nbsp;     var updateUrl = &quot;http://www.plurk.com/TimeLine/addPlurk&quot;;    var updateParams = {      uid: 3170067,      qualifier:_sQualifier,      lang:_sLang,  // en      content: _sText    };&nbsp;     jQuery.ajax({      type: &quot;POST&quot;,      url: updateUrl,      data: updateParams,      dataType: &quot;json&quot;,      error: function() {        displayMessage(&quot;Plurk 發佈錯誤&quot;);      },      success: function() {        displayMessage(&quot;Plurk 發佈成功&quot;);      }    });  }});##  
		]]>
	</description>
	<content:encoded><![CDATA[
			<p>在Blog裡顯示程式碼經常都有繁瑣的程序，我使用過<a href="http://blog.xuite.net/emisjerry/tech/10220407" target="_blank">dp.SyntaxHighlighter</a>、<a href="http://blog.xuite.net/emisjerry/tech/10775444" target="_blank">CodePress</a>與<a href="http://shjs.sourceforge.net/index.html" target="_blank">Syntax Highlighting in JavaScript</a>等JavaScript程式庫，功能各有高低但都必須在網站上存放JavaScript檔案，若存放的網站發生問題或不再提供服務（如<a href="http://pages.google.com/">Google Page Creator</a>即是）時，原先貼入程式碼的文章就會發生問題，最後我反而覺得倒不如直接列入HTML格式的程式碼就好，如此就不會受限於外部網站或Blog的&amp;lt;PRE&amp;gt;、&amp;lt;XMP&amp;gt;的處理規則了。</p>  <p>HighLight的操作很簡單：指定好要操作的檔案與輸出格式後，指定輸出選項，再按〔Convert files〕就可以了。輸出選項如下圖所示有四大項：</p>  <ol><li>行 號格式：要讓程式碼標上行號的話必須勾選本項設定，行號的號碼要用HTML的OL+LI格式輸出時則再將【HTML ordered list】打勾，使用OL+LI的好處是在此格式下按左鍵選取程式碼時不會選取到行號號碼，若未勾選則行號號碼會一併被選取到。 <br />      <br />另外在FireFox下還要自行<strong><font color="#ff0000">將&amp;lt;/LI&amp;gt;刪去</font></strong>，否則每行會多出一行空行，IE則能正確顯示。       </li><li>換行處理：當一行程式超過網頁右邊界時要如何處理，在後面有簡單說明。      </li><li>是否輸出表頭和表尾：若是要貼到Blog裡，一般是不需要勾選的      </li><li>樣式的輸出方式：標籤樣式可以產生成外部的.CSS檔，或內嵌在標籤裡，為求簡單則勾選之以使用內嵌格式 </li></ol>  <p><a href="http://lh3.ggpht.com/emisjerry/SOclOjCxitI/AAAAAAAAAIo/x4zKEGuwMvI/s1600-h/image%5B16%5D.png"><img style="border-width: 0px; display: inline" src="http://lh4.ggpht.com/emisjerry/SOclQzet5HI/AAAAAAAAAIs/hjfPbBmyivg/image_thumb%5B8%5D.png?imgmax=800" border="0" alt="image" title="image" width="599" height="500" /></a> </p>  <p>按下〔Convert files〕後就會將加上.html的檔名產生在指定的資料夾裡，用記事本等文書編輯程式讀取並選取到剪貼簿後，全部貼到Blog文章的原始碼裡即可。</p>  <p>再來說明換行的處理對輸出造成的影響。在沒有勾選Line wrap的情況時，程式碼超過右邊界時不做任何處理。</p>  <p><a href="http://lh5.ggpht.com/emisjerry/SOclR3ra5nI/AAAAAAAAAIw/Ba7Jw1m0tpM/s1600-h/image%5B17%5D.png"><img style="border-width: 0px; display: inline" src="http://lh6.ggpht.com/emisjerry/SOclTE1KyvI/AAAAAAAAAI0/YW4001QHcUs/image_thumb%5B9%5D.png?imgmax=800" border="0" alt="image" title="image" width="660" height="164" /></a> </p>  <p>勾選了【Line Wrap】，則超出右邊界的「有些」會被切到下一列開頭。由下圖可以看到並不是每行都會成功換行。</p>  <p><a href="http://lh3.ggpht.com/emisjerry/SOclUHSz44I/AAAAAAAAAI4/ToDmBkq4xSI/s1600-h/image%5B18%5D.png"><img style="border-width: 0px; display: inline" src="http://lh6.ggpht.com/emisjerry/SOclVh9oHvI/AAAAAAAAAI8/QZsq2eTMWXw/image_thumb%5B10%5D.png?imgmax=800" border="0" alt="image" title="image" width="660" height="164" /></a> </p>  <p>再勾【Intelligent Wrap】時，部份超出右邊界的程式會被切到下一列並對齊上一行的較後面位置。要採用那種換行顯示悉聽尊便。</p>  <p><a href="http://lh5.ggpht.com/emisjerry/SOclWp379TI/AAAAAAAAAJA/jDwyWSovSxk/s1600-h/image%5B19%5D.png"><img style="border-width: 0px; display: inline" src="http://lh4.ggpht.com/emisjerry/SOclX6KpxtI/AAAAAAAAAJI/1HCBw1vVvXI/image_thumb%5B11%5D.png?imgmax=800" border="0" alt="image" title="image" width="660" height="177" /></a> </p>  <p>HighLight是很方便的程式碼輸出工具，又是自由軟體，推薦大家多多使用。</p>  <ul><li>下載：<a href="http://www.andre-simon.de/zip/download.html" title="http://www.andre-simon.de/zip/download.html">http://www.andre-simon.de/zip/download.html</a> </li><li>支援的輸出格式：HTML, XHTML, RTF, TeX, LaTeX, SVG與XML </li><li>支援的輸入語言：超過120種程式語言 </li><li>能選用的輸出樣式：40種 </li></ul>  <p>最後貼上<a href="http://220.134.115.15/files/ubq/ubq_jerry.html" target="_blank">我的Ubiquity命令</a>程式做為範例：</p>  <pre style="color: #ffffff; background-color: #000000"><ol><li style="color: #55abff"><font style="color: #00ff00; font-style: italic">/*</font></li><li style="color: #55abff"><font style="color: #00ff00; font-style: italic">  * V1.0.1 2008/09/01</font></li><li style="color: #55abff"><font style="color: #00ff00; font-style: italic">  * V1.0.2 2008/09/26 加入plurk指令</font></li><li style="color: #55abff"><font style="color: #00ff00; font-style: italic">  * V1.0.3 2008/09/27 改進plurk, 在開頭加入qualifier動詞</font></li><li style="color: #55abff"><font style="color: #00ff00; font-style: italic">  * V1.0.4 2008/09/28 改進plurk, qualifier動詞-語系, 如loves-cn, loves-en</font></li><li style="color: #55abff"><font style="color: #00ff00; font-style: italic">  */</font></li><li style="color: #55abff">CmdUtils<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ffffff">CreateCommand</font><font style="font-weight: bold; color: #ee5896">({</font></li><li style="color: #55abff">  <font style="font-weight: bold; color: #ef1347">name</font><font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;funp&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  author<font style="font-weight: bold; color: #ee5896">: {</font> <font style="font-weight: bold; color: #ef1347">name</font><font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;emisjerry&quot;</font><font style="font-weight: bold; color: #ee5896">},</font></li><li style="color: #55abff">  contributors<font style="font-weight: bold; color: #ee5896">: [</font><font style="color: #cd00ff">&quot;emisjerry&quot;</font><font style="font-weight: bold; color: #ee5896">],</font></li><li style="color: #55abff">  license<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;GPL&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  description<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;選取好描述文字，把本篇文章貼上推推王&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  takes<font style="font-weight: bold; color: #ee5896">: {</font><font style="color: #cd00ff">&quot;輸入標籤名稱&quot;</font><font style="font-weight: bold; color: #ee5896">:</font> noun_arb_text<font style="font-weight: bold; color: #ee5896">},</font></li><li style="color: #55abff">  icon<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;http://funp.com/favicon.ico&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  execute<font style="font-weight: bold; color: #ee5896">:</font> <font style="font-weight: bold; color: #00ffff">function</font><font style="font-weight: bold; color: #ee5896">(</font>directObject<font style="font-weight: bold; color: #ee5896">) {</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> _sSelection <font style="font-weight: bold; color: #ee5896">=</font> CmdUtils<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">getSelection</font><font style="font-weight: bold; color: #ee5896">();</font></li><li style="color: #55abff">    <font style="color: #00ff00; font-style: italic">//window.alert(_sSelection + ':' + context.focusedWindow.location.href);</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> _aTags <font style="font-weight: bold; color: #ee5896">=</font> directObject<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">text</font><font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">split</font><font style="font-weight: bold; color: #ee5896">(</font><font style="color: #cd00ff">&quot; &quot;</font><font style="font-weight: bold; color: #ee5896">);</font>  <font style="color: #00ff00; font-style: italic">// 把輸入字串分成陣列</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> _sTags <font style="font-weight: bold; color: #ee5896">=</font> <font style="color: #cd00ff">&quot;&quot;</font><font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">for</font> <font style="font-weight: bold; color: #ee5896">(</font><font style="font-weight: bold; color: #00ffff">var</font> ele <font style="font-weight: bold; color: #00ffff">in</font> _aTags<font style="font-weight: bold; color: #ee5896">) {</font></li><li style="color: #55abff">      _sTags <font style="font-weight: bold; color: #ee5896">+=</font> <font style="color: #cd00ff">&quot;&amp;tags[]=&quot;</font> <font style="font-weight: bold; color: #ee5896">+</font> <font style="font-weight: bold; color: #ffffff">encodeURIComponent</font><font style="font-weight: bold; color: #ee5896">(</font>_aTags<font style="font-weight: bold; color: #ee5896">[</font>ele<font style="font-weight: bold; color: #ee5896">]);</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">if</font> <font style="font-weight: bold; color: #ee5896">(</font>_sTags <font style="font-weight: bold; color: #ee5896">==</font> <font style="color: #cd00ff">&quot;&quot;</font><font style="font-weight: bold; color: #ee5896">)</font> _sTags <font style="font-weight: bold; color: #ee5896">=</font> <font style="color: #cd00ff">&quot;&amp;tags[]=科技&quot;</font><font style="font-weight: bold; color: #ee5896">;</font>  <font style="color: #00ff00; font-style: italic">// 未輸入標籤則預設為科技</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">else</font> _sTags <font style="font-weight: bold; color: #ee5896">=</font> _sTags<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">replace</font><font style="font-weight: bold; color: #ee5896">(/</font>tech<font style="font-weight: bold; color: #ee5896">/,</font> <font style="color: #cd00ff">'科技'</font><font style="font-weight: bold; color: #ee5896">);</font>  <font style="color: #00ff00; font-style: italic">// 把tech標籤換成科技, 加快輸入速度</font></li><li style="color: #55abff">    Utils<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ffffff">openUrlInBrowser</font><font style="font-weight: bold; color: #ee5896">(</font><font style="color: #cd00ff">&quot;http://funp.com/push/submit/?popup&amp;url=&quot;</font> <font style="font-weight: bold; color: #ee5896">+</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #ffffff">encodeURIComponent</font><font style="font-weight: bold; color: #ee5896">(</font>context<font style="font-weight: bold; color: #ee5896">.</font>focusedWindow<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">location</font><font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">href</font><font style="font-weight: bold; color: #ee5896">) +</font></li><li style="color: #55abff">      <font style="color: #cd00ff">&quot;&amp;t=&quot;</font><font style="font-weight: bold; color: #ee5896">+</font><font style="font-weight: bold; color: #ffffff">encodeURIComponent</font><font style="font-weight: bold; color: #ee5896">(</font>_sSelection<font style="font-weight: bold; color: #ee5896">)+</font>_sTags<font style="font-weight: bold; color: #ee5896">);</font></li><li style="color: #55abff">  <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff"><font style="font-weight: bold; color: #ee5896">});</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">CmdUtils<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ffffff">CreateCommand</font><font style="font-weight: bold; color: #ee5896">({</font></li><li style="color: #55abff">  <font style="font-weight: bold; color: #ef1347">name</font><font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;dict&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  author<font style="font-weight: bold; color: #ee5896">: {</font> <font style="font-weight: bold; color: #ef1347">name</font><font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;emisjerry&quot;</font><font style="font-weight: bold; color: #ee5896">},</font></li><li style="color: #55abff">  contributors<font style="font-weight: bold; color: #ee5896">: [</font><font style="color: #cd00ff">&quot;emisjerry&quot;</font><font style="font-weight: bold; color: #ee5896">],</font></li><li style="color: #55abff">  license<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;GPL&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  description<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;Yahoo!奇摩字典&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  takes<font style="font-weight: bold; color: #ee5896">: {</font><font style="color: #cd00ff">&quot;要翻譯的字彙&quot;</font><font style="font-weight: bold; color: #ee5896">:</font> noun_arb_text<font style="font-weight: bold; color: #ee5896">},</font></li><li style="color: #55abff">  icon<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;http://tw.dictionary.yahoo.com/favicon.ico&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  execute<font style="font-weight: bold; color: #ee5896">:</font> <font style="font-weight: bold; color: #00ffff">function</font><font style="font-weight: bold; color: #ee5896">(</font>directObject<font style="font-weight: bold; color: #ee5896">) {</font></li><li style="color: #55abff">    Utils<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ffffff">openUrlInBrowser</font><font style="font-weight: bold; color: #ee5896">(</font><font style="color: #cd00ff">&quot;http://tw.dictionary.yahoo.com/search?ei=UTF-8&amp;p=&quot;</font> <font style="font-weight: bold; color: #ee5896">+</font></li><li style="color: #55abff">      directObject<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">text</font> <font style="font-weight: bold; color: #ee5896">);</font></li><li style="color: #55abff">  <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff"><font style="font-weight: bold; color: #ee5896">});</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">CmdUtils<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ffffff">CreateCommand</font><font style="font-weight: bold; color: #ee5896">({</font></li><li style="color: #55abff">  <font style="font-weight: bold; color: #ef1347">name</font><font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;cdic&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  author<font style="font-weight: bold; color: #ee5896">: {</font> <font style="font-weight: bold; color: #ef1347">name</font><font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;emisjerry&quot;</font><font style="font-weight: bold; color: #ee5896">},</font></li><li style="color: #55abff">  contributors<font style="font-weight: bold; color: #ee5896">: [</font><font style="color: #cd00ff">&quot;emisjerry&quot;</font><font style="font-weight: bold; color: #ee5896">],</font></li><li style="color: #55abff">  license<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;GPL&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  description<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;教育部國語辭典&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  takes<font style="font-weight: bold; color: #ee5896">: {</font><font style="color: #cd00ff">&quot;要翻譯的字彙&quot;</font><font style="font-weight: bold; color: #ee5896">:</font> noun_arb_text<font style="font-weight: bold; color: #ee5896">},</font></li><li style="color: #55abff">  <font style="color: #00ff00; font-style: italic">//icon: &quot;http://tw.dictionary.yahoo.com/favicon.ico&quot;,</font></li><li style="color: #55abff">  execute<font style="font-weight: bold; color: #ee5896">:</font> <font style="font-weight: bold; color: #00ffff">function</font><font style="font-weight: bold; color: #ee5896">(</font>directObject<font style="font-weight: bold; color: #ee5896">) {</font></li><li style="color: #55abff">    Utils<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ffffff">openUrlInBrowser</font><font style="font-weight: bold; color: #ee5896">(</font> <font style="color: #cd00ff">&quot;http://140.111.34.46/cgi-bin/newDict/dict.sh?idx=dict.idx&amp;pieceLen=50&amp;fld=1&amp;imgFont=1&amp;cond=&quot;</font> <font style="font-weight: bold; color: #ee5896">+</font></li><li style="color: #55abff"> <font style="font-weight: bold; color: #ee5896">(</font>directObject<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">text</font><font style="font-weight: bold; color: #ee5896">));</font></li><li style="color: #55abff">  <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff"><font style="font-weight: bold; color: #ee5896">});</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff"><font style="color: #00ff00; font-style: italic">/*</font></li><li style="color: #55abff"><font style="color: #00ff00; font-style: italic"> * Original author: http://theunfocused.net/moz/ubiquity/verbs/, Blair McBride</font></li><li style="color: #55abff"><font style="color: #00ff00; font-style: italic"> * Copied from http://www.plurk.com/user/fortelin</font></li><li style="color: #55abff"><font style="color: #00ff00; font-style: italic"> * sample: plurk loves Plurking test.</font></li><li style="color: #55abff"><font style="color: #00ff00; font-style: italic"> */</font></li><li style="color: #55abff">CmdUtils<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ffffff">CreateCommand</font><font style="font-weight: bold; color: #ee5896">({</font></li><li style="color: #55abff">  <font style="font-weight: bold; color: #ef1347">name</font><font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;plurk&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  takes<font style="font-weight: bold; color: #ee5896">: {</font>status<font style="font-weight: bold; color: #ee5896">:</font> noun_arb_text<font style="font-weight: bold; color: #ee5896">},</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">  homepage<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;http://theunfocused.net/moz/ubiquity/verbs/&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">  author<font style="font-weight: bold; color: #ee5896">: {</font><font style="font-weight: bold; color: #ef1347">name</font><font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;Blair McBride&quot;</font><font style="font-weight: bold; color: #ee5896">,</font> homepage<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;http://theunfocused.net/&quot;</font><font style="font-weight: bold; color: #ee5896">},</font></li><li style="color: #55abff">  modifier<font style="font-weight: bold; color: #ee5896">: {</font><font style="font-weight: bold; color: #ef1347">name</font><font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;Jerry Chien&quot;</font><font style="font-weight: bold; color: #ee5896">},</font></li><li style="color: #55abff">  license<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;MPL&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">  preview<font style="font-weight: bold; color: #ee5896">:</font> <font style="font-weight: bold; color: #00ffff">function</font><font style="font-weight: bold; color: #ee5896">(</font>previewBlock<font style="font-weight: bold; color: #ee5896">,</font> statusText<font style="font-weight: bold; color: #ee5896">) {</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> previewTemplate <font style="font-weight: bold; color: #ee5896">=</font> <font style="color: #cd00ff">&quot;將要發佈的內容如下: &amp;lt;br/&amp;gt;&quot;</font> <font style="font-weight: bold; color: #ee5896">+</font></li><li style="color: #55abff">                          <font style="color: #cd00ff">&quot;&amp;lt;b&amp;gt;${status}&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&quot;</font> <font style="font-weight: bold; color: #ee5896">+</font></li><li style="color: #55abff">                          <font style="color: #cd00ff">&quot; 總字數為: &amp;lt;b&amp;gt;${chars}&amp;lt;/b&amp;gt;&quot;</font><font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> truncateTemplate <font style="font-weight: bold; color: #ee5896">=</font> <font style="color: #cd00ff">&quot;&amp;lt;br /&amp;gt;後面 &amp;lt;b&amp;gt;${truncate}&amp;lt;/b&amp;gt; &quot;</font> <font style="font-weight: bold; color: #ee5896">+</font></li><li style="color: #55abff">                           <font style="color: #cd00ff">&quot;個字將予以刪除!&quot;</font><font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> previewData <font style="font-weight: bold; color: #ee5896">= {</font></li><li style="color: #55abff">      status<font style="font-weight: bold; color: #ee5896">:</font> statusText<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">text</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">      chars<font style="font-weight: bold; color: #ee5896">:</font> statusText<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">text</font><font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">length</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #ee5896">};</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> previewHTML <font style="font-weight: bold; color: #ee5896">=</font> CmdUtils<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ffffff">renderTemplate</font><font style="font-weight: bold; color: #ee5896">(</font>previewTemplate<font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">                                                    previewData<font style="font-weight: bold; color: #ee5896">);</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">if</font><font style="font-weight: bold; color: #ee5896">(</font>previewData<font style="font-weight: bold; color: #ee5896">.</font>chars <font style="font-weight: bold; color: #ee5896">&amp;gt;</font> <font style="color: #ff00ff">140</font><font style="font-weight: bold; color: #ee5896">) {</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #00ffff">var</font> truncateData <font style="font-weight: bold; color: #ee5896">= {</font></li><li style="color: #55abff">        truncate<font style="font-weight: bold; color: #ee5896">:</font> previewData<font style="font-weight: bold; color: #ee5896">.</font>chars <font style="font-weight: bold; color: #ee5896">-</font> <font style="color: #ff00ff">140</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #ee5896">};</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">      previewHTML <font style="font-weight: bold; color: #ee5896">+=</font> CmdUtils<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ffffff">renderTemplate</font><font style="font-weight: bold; color: #ee5896">(</font>truncateTemplate<font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">                                                   truncateData<font style="font-weight: bold; color: #ee5896">);</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">    previewBlock<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">innerHTML</font> <font style="font-weight: bold; color: #ee5896">=</font> previewHTML<font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">  <font style="font-weight: bold; color: #ee5896">},</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">  execute<font style="font-weight: bold; color: #ee5896">:</font> <font style="font-weight: bold; color: #00ffff">function</font><font style="font-weight: bold; color: #ee5896">(</font>statusText<font style="font-weight: bold; color: #ee5896">) {</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">if</font><font style="font-weight: bold; color: #ee5896">(</font>statusText<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">text</font><font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">length</font> <font style="font-weight: bold; color: #ee5896">&amp;lt;</font> <font style="color: #ff00ff">1</font><font style="font-weight: bold; color: #ee5896">) {</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #ffffff">displayMessage</font><font style="font-weight: bold; color: #ee5896">(</font><font style="color: #cd00ff">&quot;Plurk 內容不可空白&quot;</font><font style="font-weight: bold; color: #ee5896">);</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #00ffff">return</font><font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> _sQualifier <font style="font-weight: bold; color: #ee5896">=</font> <font style="color: #cd00ff">&quot;says&quot;</font><font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> _sLang <font style="font-weight: bold; color: #ee5896">=</font> <font style="color: #cd00ff">&quot;tr_ch&quot;</font><font style="font-weight: bold; color: #ee5896">;</font>  <font style="color: #00ff00; font-style: italic">// 預設為繁體中文</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> _sText <font style="font-weight: bold; color: #ee5896">=</font> statusText<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">text</font><font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> _iIndex <font style="font-weight: bold; color: #ee5896">=</font> _sText<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">indexOf</font><font style="font-weight: bold; color: #ee5896">(</font><font style="color: #cd00ff">&quot; &quot;</font><font style="font-weight: bold; color: #ee5896">);</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> found <font style="font-weight: bold; color: #ee5896">=</font> <font style="font-weight: bold; color: #00ffff">false</font><font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">if</font> <font style="font-weight: bold; color: #ee5896">(</font>_iIndex <font style="font-weight: bold; color: #ee5896">&amp;gt;</font> <font style="color: #ff00ff">0</font><font style="font-weight: bold; color: #ee5896">) {</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #00ffff">var</font> _aQualifiers <font style="font-weight: bold; color: #ee5896">= [</font><font style="color: #cd00ff">&quot;loves&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;likes&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;shares&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;gives&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;hates&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;wants&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">        <font style="color: #cd00ff">&quot;wishes&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;has&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;will&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;wonders&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;asks&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;was&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;feels&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;thinks&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;says&quot;</font><font style="font-weight: bold; color: #ee5896">,</font><font style="color: #cd00ff">&quot;is&quot;</font><font style="font-weight: bold; color: #ee5896">];</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #00ffff">var</font> _sVerb <font style="font-weight: bold; color: #ee5896">=</font> _sText<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">substring</font><font style="font-weight: bold; color: #ee5896">(</font><font style="color: #ff00ff">0</font><font style="font-weight: bold; color: #ee5896">,</font> _iIndex<font style="font-weight: bold; color: #ee5896">);</font>  <font style="color: #00ff00; font-style: italic">// 要使用的qualifier</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #00ffff">var</font> _iIndex2 <font style="font-weight: bold; color: #ee5896">=</font> _sVerb<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">indexOf</font><font style="font-weight: bold; color: #ee5896">(</font><font style="color: #cd00ff">&quot;-&quot;</font><font style="font-weight: bold; color: #ee5896">);</font>  <font style="color: #00ff00; font-style: italic">// loves, loves-tw, loves-cn, loves-en, 減號後面加語系</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #00ffff">if</font> <font style="font-weight: bold; color: #ee5896">(</font>_iIndex2 <font style="font-weight: bold; color: #ee5896">&amp;gt;</font> <font style="color: #ff00ff">0</font><font style="font-weight: bold; color: #ee5896">) {</font></li><li style="color: #55abff">        <font style="font-weight: bold; color: #00ffff">var</font> _sVerbLang <font style="font-weight: bold; color: #ee5896">=</font> _sVerb<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">substring</font><font style="font-weight: bold; color: #ee5896">(</font>_iIndex2<font style="font-weight: bold; color: #ee5896">+</font><font style="color: #ff00ff">1</font><font style="font-weight: bold; color: #ee5896">).</font><font style="font-weight: bold; color: #ef1347">toLowerCase</font><font style="font-weight: bold; color: #ee5896">();</font></li><li style="color: #55abff">        <font style="font-weight: bold; color: #00ffff">if</font> <font style="font-weight: bold; color: #ee5896">(</font>_sVerbLang<font style="font-weight: bold; color: #ee5896">==</font><font style="color: #cd00ff">&quot;tw&quot;</font><font style="font-weight: bold; color: #ee5896">)</font> _sLang <font style="font-weight: bold; color: #ee5896">=</font> <font style="color: #cd00ff">&quot;tr_ch&quot;</font><font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">        <font style="font-weight: bold; color: #00ffff">else</font> _sLang <font style="font-weight: bold; color: #ee5896">=</font> _sVerbLang<font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">        _sVerb <font style="font-weight: bold; color: #ee5896">=</font> _sVerb<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">substring</font><font style="font-weight: bold; color: #ee5896">(</font><font style="color: #ff00ff">0</font><font style="font-weight: bold; color: #ee5896">,</font> _iIndex2<font style="font-weight: bold; color: #ee5896">);</font>  <font style="color: #00ff00; font-style: italic">// loves-cn ==&amp;gt; loves</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #00ffff">for</font> <font style="font-weight: bold; color: #ee5896">(</font><font style="font-weight: bold; color: #00ffff">var</font> ele <font style="font-weight: bold; color: #00ffff">in</font> _aQualifiers<font style="font-weight: bold; color: #ee5896">) {</font></li><li style="color: #55abff">        <font style="font-weight: bold; color: #00ffff">if</font> <font style="font-weight: bold; color: #ee5896">(</font>_sVerb<font style="font-weight: bold; color: #ee5896">==</font>_aQualifiers<font style="font-weight: bold; color: #ee5896">[</font>ele<font style="font-weight: bold; color: #ee5896">]) {</font></li><li style="color: #55abff">          found <font style="font-weight: bold; color: #ee5896">=</font> <font style="font-weight: bold; color: #00ffff">true</font><font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">          _sQualifier <font style="font-weight: bold; color: #ee5896">=</font> _sVerb<font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">          _sText <font style="font-weight: bold; color: #ee5896">=</font> _sText<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ef1347">substring</font><font style="font-weight: bold; color: #ee5896">(</font>_iIndex<font style="font-weight: bold; color: #ee5896">+</font><font style="color: #ff00ff">1</font><font style="font-weight: bold; color: #ee5896">);</font></li><li style="color: #55abff">          <font style="font-weight: bold; color: #00ffff">break</font><font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">        <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> updateUrl <font style="font-weight: bold; color: #ee5896">=</font> <font style="color: #cd00ff">&quot;http://www.plurk.com/TimeLine/addPlurk&quot;</font><font style="font-weight: bold; color: #ee5896">;</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #00ffff">var</font> updateParams <font style="font-weight: bold; color: #ee5896">= {</font></li><li style="color: #55abff">      uid<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #ff00ff">3170067</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">      qualifier<font style="font-weight: bold; color: #ee5896">:</font>_sQualifier<font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">      lang<font style="font-weight: bold; color: #ee5896">:</font>_sLang<font style="font-weight: bold; color: #ee5896">,</font>  <font style="color: #00ff00; font-style: italic">// en</font></li><li style="color: #55abff">      content<font style="font-weight: bold; color: #ee5896">:</font> _sText</li><li style="color: #55abff">    <font style="font-weight: bold; color: #ee5896">};</font></li><li style="color: #55abff">&nbsp; </li><li style="color: #55abff">    jQuery<font style="font-weight: bold; color: #ee5896">.</font><font style="font-weight: bold; color: #ffffff">ajax</font><font style="font-weight: bold; color: #ee5896">({</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #ef1347">type</font><font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;POST&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">      url<font style="font-weight: bold; color: #ee5896">:</font> updateUrl<font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">      data<font style="font-weight: bold; color: #ee5896">:</font> updateParams<font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">      dataType<font style="font-weight: bold; color: #ee5896">:</font> <font style="color: #cd00ff">&quot;json&quot;</font><font style="font-weight: bold; color: #ee5896">,</font></li><li style="color: #55abff">      error<font style="font-weight: bold; color: #ee5896">:</font> <font style="font-weight: bold; color: #00ffff">function</font><font style="font-weight: bold; color: #ee5896">() {</font></li><li style="color: #55abff">        <font style="font-weight: bold; color: #ffffff">displayMessage</font><font style="font-weight: bold; color: #ee5896">(</font><font style="color: #cd00ff">&quot;Plurk 發佈錯誤&quot;</font><font style="font-weight: bold; color: #ee5896">);</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #ee5896">},</font></li><li style="color: #55abff">      success<font style="font-weight: bold; color: #ee5896">:</font> <font style="font-weight: bold; color: #00ffff">function</font><font style="font-weight: bold; color: #ee5896">() {</font></li><li style="color: #55abff">        <font style="font-weight: bold; color: #ffffff">displayMessage</font><font style="font-weight: bold; color: #ee5896">(</font><font style="color: #cd00ff">&quot;Plurk 發佈成功&quot;</font><font style="font-weight: bold; color: #ee5896">);</font></li><li style="color: #55abff">      <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff">    <font style="font-weight: bold; color: #ee5896">});</font></li><li style="color: #55abff">  <font style="font-weight: bold; color: #ee5896">}</font></li><li style="color: #55abff"><font style="font-weight: bold; color: #ee5896">});</font></li></ol></pre><br />##<br /><br />  
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/7292919.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/7292919.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sat, 04 Oct 2008 16:21:34 +0800</pubDate>
</item>
<item>
	<title>簡單放大Plurk輸入區的方法</title>
	<description><![CDATA[
			讀者們在打回應訊息時是否會跟我一樣老是覺得這個框實在是太小了？雖說只能打140個字，但框大一點也看得服些吧？我由這篇How  to increase the size of your response box找到了解答，再順便把修改張貼內容與最下面的輸入框也加大。 首先按左上角的〔編輯〕&rarr;〔自訂外觀〕，把下列的CSS指示輸入樣式框裡：     #input_small { height: 70px;} textarea#input_big.content { height:70px;  wrap:soft} td.td_cnt textarea { height:100px;  } &nbsp;     回應輸入框變身前  回應輸入框變身後      &nbsp;     訊息輸入框變身前  訊息輸入框變身後      &nbsp; 修改框放大後：   讓訊息輸入框變大的另一個方法是安裝FireFox的擴充：Resizable Textarea，安裝後就能在框的邊緣用拖拉的方法動態變更框的大小。 ##
		]]>
	</description>
	<content:encoded><![CDATA[
			<p>讀者們在打回應訊息時是否會跟我一樣老是覺得這個框實在是太小了？雖說只能打140個字，但框大一點也看得服些吧？我由這篇<a href="http://www.plurkthemes.com/how-to-increase-the-size-of-your-response-box">How  to increase the <em>size</em> of your response box</a>找到了解答，再順便<font color="#0000ff">把修改張貼內容</font>與最下面的輸入框也加大。</p> <p>首先按左上角的〔編輯〕&rarr;〔自訂外觀〕，把下列的CSS指示輸入樣式框裡：</p> <table border="1" cellspacing="0" cellpadding="2" width="400" bgcolor="#ffffe0"> <tbody> <tr> <td width="400" valign="top"> <p>#input_small { height: 70px;} <br />textarea#input_big.content { height:70px;  wrap:soft} <br /><font color="#0000ff">td.td_cnt textarea { height:100px;  }</font></p></td></tr></tbody></table> <p>&nbsp;</p> <table border="1" cellspacing="0" cellpadding="2" width="448"> <tbody> <tr bgcolor="#ffffe0"> <td width="200" valign="top"> <p align="center">回應輸入框變身前</p></td> <td width="246" valign="top"> <p align="center">回應輸入框變身後</p></td></tr> <tr> <td width="200" valign="top"><a href="http://lh6.ggpht.com/emisjerry/SOCsLJsN5kI/AAAAAAAAAHo/1JDriIPHCRE/s1600-h/H0505%5B2%5D.png"><img style="border-width: 0px; display: inline" src="http://lh5.ggpht.com/emisjerry/SOCsMgRiVxI/AAAAAAAAAHs/k9kVHMUgxXo/H0505_thumb.png?imgmax=800" border="0" alt="H0505" title="H0505" width="244" height="223" /></a> </td> <td width="246" valign="top"><a href="http://lh3.ggpht.com/emisjerry/SOCsNyvD55I/AAAAAAAAAHw/_DIuLykLrLY/s1600-h/H0506%5B5%5D.png"><img style="border-width: 0px; display: inline" src="http://lh3.ggpht.com/emisjerry/SOCsPJO-fkI/AAAAAAAAAH0/RFh6uXmsJZU/H0506_thumb%5B1%5D.png?imgmax=800" border="0" alt="H0506" title="H0506" width="228" height="244" /></a> </td></tr></tbody></table> <p>&nbsp;</p> <table border="1" cellspacing="0" cellpadding="2" width="600"> <tbody> <tr bgcolor="#ffffe0"> <td width="200" valign="top"> <p align="center">訊息輸入框變身前</p></td> <td width="294" valign="top"> <p align="center">訊息輸入框變身後</p></td></tr> <tr> <td width="200" valign="top"><a href="http://lh3.ggpht.com/emisjerry/SOCsQRkxrRI/AAAAAAAAAH4/DDuUZ5atSgc/s1600-h/H0507%5B3%5D.png"><img style="border-width: 0px; display: inline" src="http://lh4.ggpht.com/emisjerry/SOCsRkN9kAI/AAAAAAAAAH8/zmDLyYYXPx8/H0507_thumb%5B1%5D.png?imgmax=800" border="0" alt="H0507" title="H0507" width="329" height="66" /></a> </td> <td width="294" valign="top"><a href="http://lh4.ggpht.com/emisjerry/SOCsSwgcW7I/AAAAAAAAAIA/pSl6VtIIHXY/s1600-h/H0508%5B3%5D.png"><img style="border-width: 0px; display: inline" src="http://lh6.ggpht.com/emisjerry/SOCsUGBlk-I/AAAAAAAAAIE/mjgCuWoZO3E/H0508_thumb%5B1%5D.png?imgmax=800" border="0" alt="H0508" title="H0508" width="317" height="80" /></a> </td></tr></tbody></table> <p>&nbsp;</p> <p>修改框放大後：</p> <p><a href="http://lh6.ggpht.com/emisjerry/SODbt-tGxSI/AAAAAAAAAIY/MmAg74uQoKg/s1600-h/H0511%5B3%5D.png"><img style="border: 0px none ; display: inline" src="http://lh6.ggpht.com/emisjerry/SODbvFbtfgI/AAAAAAAAAIc/AiwU6IcsXXk/H0511_thumb%5B1%5D.png?imgmax=800" border="0" alt="H0511" title="H0511" width="386" height="501" /></a> </p> <p>讓訊息輸入框變大的另一個方法是安裝FireFox的擴充：<a href="https://addons.mozilla.org/en-US/firefox/addon/3818" target="_blank">Resizable Textarea</a>，安裝後就能在框的邊緣用拖拉的方法動態變更框的大小。</p> <p>##</p>
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/7263195.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/7263195.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Mon, 29 Sep 2008 18:31:35 +0800</pubDate>
</item>
<item>
	<title>用Ubiquity快速發佈 Plurk 訊息-改良版</title>
	<description><![CDATA[
			2008/09/28 修改2：  動詞後面可以加-tw, -cn, -en等變更語系為繁體中文、簡體中文與英文。如：plurk loves-cn  動詞變簡體的愛。 程式請直接點http://220.134.115.15/files/ubq/ubq_jerry.js另存新檔檢視，不再張貼了。   先前的第一版只能用「說」來張貼簡訊，在這個改良版裡加入了指定Qualifier的參數，格式變成：「plurk Qualifier  Message」，Qualifier與Message之間以一個空白隔開，若未指定Qualifier則預設為  says。Qualifier只能是Plurk認識的&quot;loves&quot;,&quot;likes&quot;,&quot;shares&quot;,&quot;gives&quot;,&quot;hates&quot;,&quot;wants&quot;,&quot;wishes&quot;,&quot;has&quot;,&quot;will&quot;,&quot;asks&quot;,&quot;was&quot;,&quot;feels&quot;,&quot;thinks&quot;,&quot;says&quot;,&quot;is&quot;這幾種。更新方法與第一版相同。       /* * Copied from http://www.plurk.com/user/fortelin  * sample: plurk loves Plurking test. */ CmdUtils.CreateCommand({  &nbsp; name: &quot;plurk&quot;, &nbsp; takes: {status: noun_arb_text}, &nbsp; homepage: &quot;http://theunfocused.net/moz/ubiquity/verbs/&quot;,  &nbsp; author: {name: &quot;Blair McBride&quot;, homepage: &quot;http://theunfocused.net/&quot;}, &nbsp;  modifier: {name: &quot;Forte Lin&quot;}, &nbsp; license: &quot;MPL&quot;, &nbsp; preview:  function(previewBlock, statusText) { &nbsp;&nbsp;&nbsp; var previewTemplate = &quot;將要發佈的內容如下:  &lt;br/&gt;&quot; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &quot;&lt;b&gt;${status}&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&quot; +  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot; 總字數為: &lt;b&gt;${chars}&lt;/b&gt;&quot;; &nbsp;&nbsp;&nbsp; var  truncateTemplate = &quot;&lt;br /&gt;後面 &lt;b&gt;${truncate}&lt;/b&gt; &quot; +  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;個字將予以刪除!&quot;; &nbsp;&nbsp;&nbsp; var previewData = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  status: statusText.text, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chars: statusText.text.length &nbsp;&nbsp;&nbsp; };  &nbsp;&nbsp;&nbsp; var previewHTML = CmdUtils.renderTemplate(previewTemplate,  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; previewData); &nbsp;&nbsp;&nbsp;  if(previewData.chars &gt; 140) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var truncateData = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  truncate: previewData.chars - 140 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; previewHTML +=  CmdUtils.renderTemplate(truncateTemplate,  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; truncateData); &nbsp;&nbsp;&nbsp; }  &nbsp;&nbsp;&nbsp; previewBlock.innerHTML = previewHTML; &nbsp; }, &nbsp; execute:  function(statusText) { &nbsp;&nbsp;&nbsp; if(statusText.text.length &lt; 1) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  displayMessage(&quot;Plurk 內容不可空白&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return; &nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; var  _sQualifier = &quot;says&quot;; &nbsp;&nbsp;&nbsp; var _sText = statusText.text; &nbsp;&nbsp;&nbsp; var _iIndex  = _sText.indexOf(&quot; &quot;); &nbsp;&nbsp;&nbsp; var found = false; &nbsp;&nbsp;&nbsp; if (_iIndex &gt; 0) {  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var _aQualifiers = [&quot;loves&quot;,&quot;likes&quot;,&quot;shares&quot;,&quot;gives&quot;,&quot;hates&quot;,&quot;wants&quot;,  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wishes&quot;,&quot;has&quot;,&quot;will&quot;,&quot;asks&quot;,&quot;was&quot;,&quot;feels&quot;,&quot;thinks&quot;,&quot;says&quot;,&quot;is&quot;];  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var _sVerb = _sText.substring(0, _iIndex); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (var ele in  _aQualifiers) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (_sVerb==_aQualifiers[ele]) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; found  = true; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _sQualifier = _sVerb; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; if (found) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _sText =  _sText.substring(_iIndex+1); &nbsp;&nbsp;&nbsp; }  &nbsp;&nbsp;&nbsp; var updateUrl = &quot;http://www.plurk.com/TimeLine/addPlurk&quot;;  &nbsp;&nbsp;&nbsp; var updateParams = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uid: 3170067, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  qualifier:_sQualifier, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lang:&quot;tr_ch&quot;,&nbsp; // en &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; content: _sText  &nbsp;&nbsp;&nbsp; }; &nbsp;&nbsp;&nbsp; jQuery.ajax({ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type: &quot;POST&quot;, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url:  updateUrl, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; data: updateParams, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dataType: &quot;json&quot;, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  error: function() { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; displayMessage(&quot;Plurk 發佈錯誤&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; success: function() { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; displayMessage(&quot;Plurk 發佈成功&quot;);  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; }); &nbsp; } });
		]]>
	</description>
	<content:encoded><![CDATA[
			<div style="border: 2px dotted red"><font color="#008000">2008/09/28 修改2： <br /></font> <p><font color="#008000">動詞後面可以加-tw, -cn, -en等變更語系為繁體中文、簡體中文與英文。如：plurk loves-cn  動詞變簡體的愛。</font></p> <p><font color="#008000">程式請直接點</font><a href="http://220.134.115.15/files/ubq/ubq_jerry.js"><font color="#008000">http://220.134.115.15/files/ubq/ubq_jerry.js</font></a><font color="#008000">另存新檔檢視，不再張貼了。</font></p></div> <hr />  <p>先前的<a href="http://blog.xuite.net/emisjerry/tech/19619746" target="_blank">第一版</a>只能用「說」來張貼簡訊，在這個改良版裡加入了指定Qualifier的參數，格式變成：「plurk Qualifier  Message」，Qualifier與Message之間以一個空白隔開，若未指定Qualifier則預設為  says。Qualifier只能是Plurk認識的&quot;loves&quot;,&quot;likes&quot;,&quot;shares&quot;,&quot;gives&quot;,&quot;hates&quot;,&quot;wants&quot;,&quot;wishes&quot;,&quot;has&quot;,&quot;will&quot;,&quot;asks&quot;,&quot;was&quot;,&quot;feels&quot;,&quot;thinks&quot;,&quot;says&quot;,&quot;is&quot;這幾種。更新方法與<a href="http://blog.xuite.net/emisjerry/tech/19619746" target="_blank">第一版</a>相同。  </p> <table border="1" cellspacing="0" cellpadding="2" width="591"> <tbody> <tr> <td width="589" valign="top"> <p>/* <br />* Copied from <a href="http://www.plurk.com/user/fortelin">http://www.plurk.com/user/fortelin</a>  <br />* sample: plurk loves Plurking test. <br />*/ <br />CmdUtils.CreateCommand({  <br />&nbsp; name: &quot;plurk&quot;, <br />&nbsp; takes: {status: noun_arb_text}, <br />&nbsp; homepage: &quot;<a href="http://theunfocused.net/moz/ubiquity/verbs/%22">http://theunfocused.net/moz/ubiquity/verbs/&quot;</a>,  <br />&nbsp; author: {name: &quot;Blair McBride&quot;, homepage: &quot;<a href="http://theunfocused.net/%22%7D">http://theunfocused.net/&quot;}</a>, <br />&nbsp;  modifier: {name: &quot;Forte Lin&quot;}, <br />&nbsp; license: &quot;MPL&quot;, <br />&nbsp; preview:  function(previewBlock, statusText) { <br />&nbsp;&nbsp;&nbsp; var previewTemplate = &quot;將要發佈的內容如下:  &lt;br/&gt;&quot; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &quot;&lt;b&gt;${status}&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&quot; +  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot; 總字數為: &lt;b&gt;${chars}&lt;/b&gt;&quot;; <br />&nbsp;&nbsp;&nbsp; var  truncateTemplate = &quot;&lt;br /&gt;後面 &lt;b&gt;${truncate}&lt;/b&gt; &quot; +  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;個字將予以刪除!&quot;; <br />&nbsp;&nbsp;&nbsp; var previewData = { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  status: statusText.text, <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chars: statusText.text.length <br />&nbsp;&nbsp;&nbsp; };  <br />&nbsp;&nbsp;&nbsp; var previewHTML = CmdUtils.renderTemplate(previewTemplate,  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; previewData); <br />&nbsp;&nbsp;&nbsp;  if(previewData.chars &gt; 140) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var truncateData = { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  truncate: previewData.chars - 140 <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; previewHTML +=  CmdUtils.renderTemplate(truncateTemplate,  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; truncateData); <br />&nbsp;&nbsp;&nbsp; }  <br />&nbsp;&nbsp;&nbsp; previewBlock.innerHTML = previewHTML; <br />&nbsp; }, <br />&nbsp; execute:  function(statusText) { <br />&nbsp;&nbsp;&nbsp; if(statusText.text.length &lt; 1) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  displayMessage(&quot;Plurk 內容不可空白&quot;); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return; <br />&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp; var  _sQualifier = &quot;says&quot;; <br />&nbsp;&nbsp;&nbsp; var _sText = statusText.text; <br />&nbsp;&nbsp;&nbsp; var _iIndex  = _sText.indexOf(&quot; &quot;); <br />&nbsp;&nbsp;&nbsp; var found = false; <br />&nbsp;&nbsp;&nbsp; if (_iIndex &gt; 0) {  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var _aQualifiers = [&quot;loves&quot;,&quot;likes&quot;,&quot;shares&quot;,&quot;gives&quot;,&quot;hates&quot;,&quot;wants&quot;,  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wishes&quot;,&quot;has&quot;,&quot;will&quot;,&quot;asks&quot;,&quot;was&quot;,&quot;feels&quot;,&quot;thinks&quot;,&quot;says&quot;,&quot;is&quot;];  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var _sVerb = _sText.substring(0, _iIndex); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (var ele in  _aQualifiers) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (_sVerb==_aQualifiers[ele]) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; found  = true; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _sQualifier = _sVerb; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp; if (found) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _sText =  _sText.substring(_iIndex+1); <br />&nbsp;&nbsp;&nbsp; } </p> <p>&nbsp;&nbsp;&nbsp; var updateUrl = &quot;<a href="http://www.plurk.com/TimeLine/addPlurk%22;">http://www.plurk.com/TimeLine/addPlurk&quot;;</a>  <br />&nbsp;&nbsp;&nbsp; var updateParams = { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uid: 3170067, <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  qualifier:_sQualifier, <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lang:&quot;tr_ch&quot;,&nbsp; // en <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; content: _sText  <br />&nbsp;&nbsp;&nbsp; }; <br />&nbsp;&nbsp;&nbsp; jQuery.ajax({ <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type: &quot;POST&quot;, <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url:  updateUrl, <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; data: updateParams, <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dataType: &quot;json&quot;, <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  error: function() { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; displayMessage(&quot;Plurk 發佈錯誤&quot;); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; success: function() { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; displayMessage(&quot;Plurk 發佈成功&quot;);  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp; }); <br />&nbsp; } <br />});</p></td></tr></tbody></table>
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/7252227.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/7252227.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sat, 27 Sep 2008 15:06:29 +0800</pubDate>
</item>
<item>
	<title>簡單的Mozilla Ubiquity應用2：將目前網頁貼上推推王的命令</title>
	<description><![CDATA[
			使用Ubiquity將目前瀏覽網頁貼上推推王的命令如下。網址列會填入目前網頁的網址，選取的文字會填入「描述」欄位，命令的參數會形成標籤，若標籤為 tech則會自動轉換成「科技」，例如：funp Google Web2.0 tech。                       // V1.0.1 2008/09/01修改CmdUtils.CreateCommand({&nbsp; name: &quot;funp&quot;,&nbsp; author: { name: &quot;emisjerry&quot;},&nbsp; contributors: [&quot;emisjerry&quot;],&nbsp; license: &quot;GPL&quot;,&nbsp; description: &quot;選取好描述文字，把本篇文章貼上推推王&quot;,&nbsp; takes: {&quot;輸入標籤名稱&quot;: noun_arb_text},&nbsp; icon: &quot;http://funp.com/favicon.ico&quot;,&nbsp; execute: function(directObject) {&nbsp;&nbsp;&nbsp; var _sSelection = CmdUtils.getSelection();&nbsp;&nbsp;&nbsp; //window.alert(_sSelection + ':' + context.focusedWindow.location.href);&nbsp;&nbsp;&nbsp; var _aTags = directObject.text.split(&quot; &quot;);&nbsp; // 把輸入字串分成陣列&nbsp;&nbsp;&nbsp; var _sTags = &quot;&quot;;&nbsp;&nbsp;&nbsp; for (var ele in _aTags) {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _sTags += &quot;&amp;tags[]=&quot; + encodeURIComponent(_aTags[ele]);&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; if (_sTags == &quot;&quot;) _sTags = &quot;&amp;tags[]=科技&quot;;&nbsp; // 未輸入標籤則預設為科技&nbsp;&nbsp;&nbsp; else _sTags = _sTags.replace(/tech/, '科技');&nbsp; // 把tech標籤換成科技, 加快輸入速度&nbsp;&nbsp;&nbsp; Utils.openUrlInBrowser(&quot;http://funp.com/push/submit/?popup&amp;url=&quot; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; encodeURIComponent(context.focusedWindow.location.href) +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&amp;t=&quot;+encodeURIComponent(_sSelection)+_sTags);&nbsp; }});                 你可以把上述命令直接貼入Ubiquity Command Editor，或瀏覽我的命令網頁再訂閱它。  ##
		]]>
	</description>
	<content:encoded><![CDATA[
			<p>使用Ubiquity將目前瀏覽網頁貼上推推王的命令如下。網址列會填入目前網頁的網址，選取的文字會填入「描述」欄位，命令的參數會形成標籤，若標籤為 tech則會自動轉換成「科技」，例如：funp Google Web2.0 tech。</p>  <table border="1" cellspacing="0" cellpadding="2" width="594"><tbody>     <tr>       <td width="90%" valign="top" bgcolor="#ffffe0">         <p>// V1.0.1 2008/09/01修改</p><p>CmdUtils.CreateCommand({<br />&nbsp; name: &quot;funp&quot;,<br />&nbsp; author: { name: &quot;emisjerry&quot;},<br />&nbsp; contributors: [&quot;emisjerry&quot;],<br />&nbsp; license: &quot;GPL&quot;,<br />&nbsp; description: &quot;選取好描述文字，把本篇文章貼上推推王&quot;,<br />&nbsp; takes: {&quot;輸入標籤名稱&quot;: noun_arb_text},<br />&nbsp; icon: &quot;http://funp.com/favicon.ico&quot;,<br />&nbsp; execute: function(directObject) {<br />&nbsp;&nbsp;&nbsp; var _sSelection = CmdUtils.getSelection();<br />&nbsp;&nbsp;&nbsp; //window.alert(_sSelection + ':' + context.focusedWindow.location.href);<br />&nbsp;&nbsp;&nbsp; var _aTags = directObject.text.split(&quot; &quot;);&nbsp; // 把輸入字串分成陣列<br />&nbsp;&nbsp;&nbsp; var _sTags = &quot;&quot;;<br />&nbsp;&nbsp;&nbsp; for (var ele in _aTags) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _sTags += &quot;&amp;tags[]=&quot; + encodeURIComponent(_aTags[ele]);<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; if (_sTags == &quot;&quot;) _sTags = &quot;&amp;tags[]=科技&quot;;&nbsp; // 未輸入標籤則預設為科技<br />&nbsp;&nbsp;&nbsp; else _sTags = _sTags.replace(/tech/, '科技');&nbsp; // 把tech標籤換成科技, 加快輸入速度<br />&nbsp;&nbsp;&nbsp; Utils.openUrlInBrowser(&quot;http://funp.com/push/submit/?popup&amp;url=&quot; +<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; encodeURIComponent(context.focusedWindow.location.href) +<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&amp;t=&quot;+encodeURIComponent(_sSelection)+_sTags);<br />&nbsp; }<br />});</p>       </td>     </tr>   </tbody></table>  <p>你可以把上述命令直接貼入Ubiquity Command Editor，或瀏覽<a href="http://jdev.tw/files/ubq/ubq_jerry.html" target="_blank">我的命令網頁</a>再訂閱它。</p>  <p>##</p>
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/7079431.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/7079431.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 31 Aug 2008 18:43:09 +0800</pubDate>
</item>
<item>
	<title>如何備份Windows Live Writer的草稿與張貼內容？</title>
	<description><![CDATA[
			一直以來Blog文章都是先用KompoZer（Nvu的非官方版）編輯好再貼到幾個同步發表的Blog上，但KompoZer無法正確斷行的問題卻始終無法解決，今天為了測試Windows Live Writer（簡稱WLW）的功能，順便試看看能否把書寫平台換到WLW時，同時可以更簡單的把文章張貼到多個Blog裡。安裝好WLW後（安裝過程已有許多先進有寫了，請自行搜尋），再把Blog設定好，屆時即可方便的在多個Blog間切換與發佈文章；Blogger與微軟的Windows Live Spaces很容易就能設定好，別的BSP則需要額外設定。以下是樂多與博客大巴的設定摘要：樂多 提供者：Metaweblog API 遠端張貼URL：http://xmlrpc.blog.roodo.com/cgi-bin/mt/mt-xmlrpc.cgi PIXNET（未測試，請自行檢測）提供者：Wordpress 2.2+遠端張貼URL：http://blog.pixnet.net/xmlrpc.php 博客大巴 提供者：Atom Publishing Protocol 遠端張貼URL：http://您的博客地址/api 可惜Xuite尚無法遠端張貼。使用WLW寫了幾篇文章後覺得WLW實在不錯，把Blog撰寫的常用功能彙整得相當便利，所有的功能聚焦在Blog文章的生成與發佈程序，比網頁編輯工具（如FrontPage或Nvu）簡單，功能也比BSP提供的編輯網頁強，算是介於二者之間的一個專用工具。用了一會後想要把檔案另存到備份資料夾，但在功能表【檔案】裡卻找不到另存新檔的選項，搜尋後在Move Draft Posts Written in Windows Live Writer Across Computers一文裡找到答案：草稿存放在C:\Uses\帳號\My Documents\My Weblog Posts\Drafts（XP使用者把C:\Users換成C:\Documents and Settings即可）資料夾裡 最近張貼內容則在C:\Uses\帳號\My Documents\My Weblog Posts\Recent Posts裡 張貼內容都儲存為.wpost格式，.wpost檔案原來是ZIP格式，因此能用WinZip或7-Zip來開啟，本文就在名為Content的那個檔裡。把找到的.wpost檔案複製到常用的備份資料裡就能在本機另外備份文章內容了。##
		]]>
	</description>
	<content:encoded><![CDATA[
			<p>一直以來Blog文章都是先用<a href="http://kompozer.net/" target="_blank">KompoZer</a>（<a href="http://www.nvudev.com" target="_blank">Nvu</a>的非官方版）編輯好再貼到幾個同步發表的Blog上，但KompoZer無法正確<a href="http://blog.xuite.net/emisjerry/tech/17073840" target="_blank">斷行的問題</a>卻始終無法解決，今天為了測試<a href="http://get.live.com/writer/overview" target="_blank">Windows Live Writer</a>（簡稱WLW）的功能，順便試看看能否把書寫平台換到WLW時，同時可以更簡單的把文章張貼到多個Blog裡。</p><p>安裝好WLW後（安裝過程已有許多先進有寫了，請自行搜尋），再把Blog設定好，屆時即可方便的在多個Blog間切換與發佈文章；Blogger與微軟的Windows Live Spaces很容易就能設定好，別的BSP則需要額外設定。以下是樂多與博客大巴的設定摘要：</p><ul><li>樂多 <ul><li>提供者：Metaweblog API </li><li>遠端張貼URL：<a href="http://xmlrpc.blog.roodo.com/cgi-bin/mt/mt-xmlrpc.cgi">http://xmlrpc.blog.roodo.com/cgi-bin/mt/mt-xmlrpc.cgi</a> </li></ul></li><li>PIXNET（未測試，請自行檢測）<ul><li>提供者：Wordpress 2.2+</li><li>遠端張貼URL：<a href="http://blog.pixnet.net/xmlrpc.php" title=" http://blog.pixnet.net/xmlrpc.php">http://blog.pixnet.net/xmlrpc.php <br /></a></li></ul></li><li>博客大巴 <ul><li>提供者：Atom Publishing Protocol </li><li>遠端張貼URL：<a href="http://您的博客地址/api" title="http://您的博客地址/api ">http://您的博客地址/api </a></li></ul></li></ul><p>可惜Xuite尚無法遠端張貼。</p><p>使用WLW寫了幾篇文章後覺得WLW實在不錯，把Blog撰寫的常用功能彙整得相當便利，所有的功能聚焦在Blog文章的生成與發佈程序，比網頁編輯工具（如FrontPage或Nvu）簡單，功能也比BSP提供的編輯網頁強，算是介於二者之間的一個專用工具。</p><p>用了一會後想要把檔案另存到備份資料夾，但在功能表【檔案】裡卻找不到另存新檔的選項，搜尋後在<a href="http://labnol.blogspot.com/2007/10/move-draft-posts-written-in-windows.html" target="_blank">Move Draft Posts Written in Windows Live Writer Across Computers</a>一文裡找到答案：</p><ul><li>草稿存放在<strong>C:\Uses\帳號\My Documents\My Weblog Posts\Drafts</strong>（XP使用者把C:\Users換成C:\Documents and Settings即可）資料夾裡 </li><li>最近張貼內容則在<strong>C:\Uses\帳號\My Documents\My Weblog Posts\Recent Posts</strong>裡 </li></ul><p>張貼內容都儲存為<strong>.wpost</strong>格式，.wpost檔案原來是ZIP格式，因此能用WinZip或7-Zip來開啟，本文就在名為Content的那個檔裡。把找到的.wpost檔案複製到常用的備份資料裡就能在本機另外備份文章內容了。</p><p>##</p>
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/6959515.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/6959515.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 24 Aug 2008 20:24:51 +0800</pubDate>
</item>
<item>
	<title>和風部落格FC2有中文版了</title>
	<description><![CDATA[
			如果你平常就喜歡日系風格的話，告訴你一個好消息：日本的部落格提供商FC2最近推出了繁體中文與簡體中文的操作介面了。首先申請好FC ID後再建立部落格即可，全程都是中文，照著指示很快就能建立好。FC2提供了169種樣板供使用者自行選擇，想要嘗鮮的和風受好者請自行去挑選吧，這個是我隨手選擇的少女與貓熊樣板，似乎是太可愛了點 :-) ．．．。##
		]]>
	</description>
	<content:encoded><![CDATA[
			<img style="width: 345px; height: 450px; float: left" src="http://1edjqg.bay.livefilestore.com/y1pKiHLlBPNMtJHF6ASWydoP8wjxEvSH65syudzQsxACuHU7_1YpS7DiejTCBUXF5xbt8MapviTB1Q/0.png" alt="fc2.com" hspace="20" vspace="10" />如果你平常就喜歡日系風格的話，告訴你一個好消息：日本的部落格提供商<a href="http://fc2.com/" target="_blank">FC2</a>最近推出了<a href="http://blog.fc2.com/tw/" target="_blank">繁體中文</a>與<a href="http://blog.fc2.com/cn/">簡體中文</a>的操作介面了。<br /><br />首先申請好FC ID後再建立部落格即可，全程都是中文，照著指示很快就能建立好。FC2提供了169種樣板供使用者自行選擇，想要嘗鮮的和風受好者請自行去挑選吧，這個是我隨手選擇的<a href="http://jdev.blog124.fc2.com/" target="_blank">少女與貓熊</a>樣板，似乎是太可愛了點 :-) ．．．。<br /><br />##
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/6749529.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/6749529.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 10 Aug 2008 19:48:05 +0800</pubDate>
</item>
<item>
	<title>Blog側邊欄改用iframe以提升網頁載入速度</title>
	<description><![CDATA[
			 不知為何，最近Blog的Loading速度有時會變很慢，卡住的狀況如同天殺的 BloggerAds / 部落格觀察所描述的一般，乾脆花點時間把BloggerAds和塞標籤都改成 iframe 的方法來載入吧。首先要找到一個可以存放外連檔案的網站，建立bloggerAds.html與sitetag.html，內容如下：bloggerAds.html&lt;script src=&quot;http://ad2.bloggerads.net/showads.aspx?blogid=你的ID&amp;charset=utf-8&quot;&gt;&lt;/script&gt;sitetag.html&lt;html&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://track.sitetag.us/tracking.js?hash=你的代碼&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://pub.sitetag.us/badge.js?hash=你的代碼&amp;extra=user&amp; background_color=FFFFFF&amp;border_color=999999&amp;border_width=4&amp;inner_background_color=FFFFCC&quot;&gt;&lt;/script&gt;先在瀏覽器裡載入外部網頁測試看看，若正常再修改Blog裡的自由欄位（插入欄位）。BloggerAds欄位&lt;iframe frameborder=&quot;0&quot; width=&quot;100%&quot; height=&quot;445px&quot; scrolling=&quot;no&quot; alight=&quot;middle&quot;&nbsp; marginwidth=&quot;0&quot; marginheight=0&quot; src=&quot;http://外連網址/bloggerads.html&quot;&gt; &lt;/iframe&gt;SiteTag欄位&lt;iframe src=&quot;http://外連網址/sitetag.html&quot; frameborder=&quot;0&quot; width=&quot;220px&quot; height=&quot;350px&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;&gt;&lt;/iframe&gt;希望這樣的修改能對網頁載入速度有幫助。另外，Xuite欄位的換行問題終於修改好，不會自作「聰明」的把所有指令都連成一行了。## 
		]]>
	</description>
	<content:encoded><![CDATA[
			 不知為何，最近Blog的Loading速度有時會變很慢，卡住的狀況如同<a id="title_a_228899" href="http://blog.xuite.net/misgarlic/weblogic/17650438" onclick="return preview(this.href,'228899','','','')">天殺的 BloggerAds / 部落格觀察</a>所描述的一般，乾脆花點時間把<a href="http://www.bloggerads.net/" target="_blank">BloggerAds</a>和<a href="http://sitetag.us/" target="_blank">塞標籤</a>都改成<span style="font-weight: bold"> iframe</span> 的方法來載入吧。<br /><br />首先要找到一個可以存放外連檔案的網站，建立bloggerAds.html與sitetag.html，內容如下：<br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #009900; width: 799px; height: 137px"><tbody><tr align="center" style="color: white"><td>bloggerAds.html</td></tr><tr><td style="background-color: #ffffcc">&lt;script src=&quot;http://ad2.bloggerads.net/showads.aspx?blogid=你的ID&amp;charset=utf-8&quot;&gt;<br />&lt;/script&gt;</td></tr></tbody></table><br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #009900; width: 100%; height: 137px"><tbody><tr align="left" style="color: white"><td>sitetag.html</td></tr><tr><td style="background-color: #ffffcc">&lt;html&gt;<br />&lt;body&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;http://track.sitetag.us/tracking.js?hash=你的代碼&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;http://pub.sitetag.us/badge.js?hash=你的代碼&amp;extra=user&amp; background_color=FFFFFF&amp;border_color=999999&amp;border_width=4&amp;inner_background_color=FFFFCC&quot;&gt;&lt;/script&gt;<br /><br /></td></tr></tbody></table><br />先在瀏覽器裡載入外部網頁測試看看，若正常再修改Blog裡的自由欄位（插入欄位）。<br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #009900; width: 799px; height: 137px"><tbody><tr align="center" style="color: white"><td>BloggerAds欄位<br /></td></tr><tr><td style="background-color: #ffffcc">&lt;iframe frameborder=&quot;0&quot; width=&quot;100%&quot; height=&quot;445px&quot; scrolling=&quot;no&quot; alight=&quot;middle&quot;&nbsp; marginwidth=&quot;0&quot; marginheight=0&quot; src=&quot;http://外連網址/bloggerads.html&quot;&gt; &lt;/iframe&gt;</td></tr></tbody></table><br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #009900; width: 799px; height: 137px"><tbody><tr align="center" style="color: white"><td>SiteTag欄位<br /></td></tr><tr><td style="background-color: #ffffcc">&lt;iframe src=&quot;http://外連網址/sitetag.html&quot; frameborder=&quot;0&quot; width=&quot;220px&quot; height=&quot;350px&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;&gt;&lt;/iframe&gt;</td></tr></tbody></table><br />希望這樣的修改能對網頁載入速度有幫助。另外，Xuite欄位的換行問題終於修改好，不會自作「聰明」的把所有指令都連成一行了。<br /><br />## 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/6365383.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/6365383.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 06 Jul 2008 09:50:24 +0800</pubDate>
</item>
<item>
	<title>解決NVu、Kompozer的換行問題</title>
	<description><![CDATA[
			     如果你仔細檢視我的文章文字，會發現有一些莫名其妙的空白出現在不應出現的句子中間，原來這都是我使用的網頁編輯軟體NVu和它的修訂版本Kompozer的自動換行問題造成的。今天在這裡（分享：Nvu/KompoZer格式化Html源碼的問題及解決）發現了解決方法，雖然並未完全克服這個問題，但結果應該會比未處理前來得好些。改善的步驟如下：     下載給NVu或Kompozer使用的擴充（Extensions）：HandCoder       由功能表【Tools&rarr;Extensions】安裝HandCoder       再下載整理HTML內容的工具：Tidy       重新啟動NVu或Kompozer後，由【Tools&rarr;HandCoder&rarr;Options...】在第二個Tidy頁籤裡指定Tidy.exe路徑       在工具列空白處按右鍵選【Customize Toolbar】把「Editor」拖到工具列裡       這樣在寫完文章後按一下工具列上的Editor，它會開啟指定好的文字編輯器，並使用Tidy.exe整理好，看過沒問題後按儲存，再回到NVu或Kompozer，再複製所有內容後就可貼到Blog裡了。      分享： Nvu/KompoZer格式化Html源碼的問題及解決作者提供最終的解決方法是功能表【Tools&rarr;JavaScriptConsole】再於輸入框裡輸入「top.opener.GetCurrentEditor().wrapWidth = 9999」按〔Evalute〕，再用「Editor」即可。同時該作者也提供了操作錄影可以參考。            下載連結          HandCoder：http://fabiwan.kenobi.free.fr/xpi/?id=HandCoder&amp;ver=0.3.4-en       Tidy：http://www.paehl.com/open_source/?download=tidy.zip       ##   
		]]>
	</description>
	<content:encoded><![CDATA[
			<img style="width: 321px; height: 165px; float: left" src="http://1eddqg.bay.livefilestore.com/y1pf6VtQqA4QXEVMdW2kM3Q1C4TQa33FwkKY149y9rInlSpUp7HTWHsw3luAKZA4tiQsk3Yie7DDtOE-bn0P3ySTJU7yGT2V0-3/nvu.png" alt="Nvu spaces" hspace="20" />     如果你仔細檢視我的文章文字，會發現有一些莫名其妙的空白出現在不應出現的句子中間，原來這都是我使用的網頁編輯軟體<a href="http://www.nvu.com/" target="_blank">NVu</a>和它的修訂版本<a href="http://kompozer.net/" target="_blank">Kompozer</a>的<span style="font-weight: bold">自動換行問題</span>造成的。今天在這裡（<a href="http://blog.sina.com.cn/s/blog_46dac66f01008y5a.html" target="_blank">分享：Nvu/KompoZer格式化Html源碼的問題及解決</a>）發現了解決方法，雖然並未完全克服這個問題，但結果應該會比未處理前來得好些。改善的步驟如下：<br />     <ul><li>下載給NVu或Kompozer使用的擴充（Extensions）：<a href="http://fabiwan.kenobi.free.fr/HandCoder/" target="_blank">HandCoder</a>       </li><li>由功能表【Tools&rarr;Extensions】安裝HandCoder       </li><li>再下載整理HTML內容的工具：<a href="http://tidy.sourceforge.net/" target="_blank">Tidy</a>       </li><li>重新啟動NVu或Kompozer後，由【Tools&rarr;HandCoder&rarr;Options...】在第二個Tidy頁籤裡指定Tidy.exe路徑       </li><li>在工具列空白處按右鍵選【Customize Toolbar】把「Editor」拖到工具列裡       </li></ul>這樣在寫完文章後按一下工具列上的Editor，它會開啟指定好的文字編輯器，並使用Tidy.exe整理好，看過沒問題後按儲存，再回到NVu或Kompozer，再複製所有內容後就可貼到Blog裡了。<span style="text-decoration: underline"><span style="font-weight: bold"><br />     <br /></span></span> <a href="http://blog.sina.com.cn/s/blog_46dac66f01008y5a.html" target="_blank">分享： Nvu/KompoZer格式化Html源碼的問題及解決</a>作者提供最終的解決方法是功能表【Tools&rarr;JavaScriptConsole】再於輸入框裡輸入「<strong>top.opener.GetCurrentEditor().wrapWidth = 9999</strong>」按〔Evalute〕，再用「Editor」即可。同時該作者也提供了操作錄影可以參考。     <h1 class="viewer">       下載連結     </h1>     <ul><li>HandCoder：<a href="http://fabiwan.kenobi.free.fr/xpi/?id=HandCoder&amp;ver=0.3.4-en" target="_blank">http://fabiwan.kenobi.free.fr/xpi/?id=HandCoder&amp;ver=0.3.4-en</a>       </li><li>Tidy：<a href="http://www.paehl.com/open_source/?download=tidy.zip" target="_blank">http://www.paehl.com/open_source/?download=tidy.zip</a>       </li></ul>##   
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/6005633.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/6005633.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sat, 10 May 2008 15:44:04 +0800</pubDate>
</item>
<item>
	<title>[FireFox擴充] Table2Clipboard：完整複製網頁表格</title>
	<description><![CDATA[
			想完整的複製網頁裡的HTML表格(&lt;table&gt;...&lt;/table&gt;)經常要花不少繁瑣的操作，所幸Table2Clipboard簡化且完美地完成了這個複製動作。 安裝Table2Clipboard前 用〔Ctrl+Click〕點選表格的儲存格(Cell)，選取表格裡的所有儲存格 按〔Ctrl+C〕將選取內容複製到剪貼簿 開啟Excel後按〔Ctrl+V〕貼上剪貼簿的內容，結果如下圖： 安裝Table2Clipboard後 用〔Ctrl+Click〕點選表格的儲存格(Cell)，選取表格裡的所有儲存格 以【右鍵功能表】&rarr;【Copy selected cells】或【Copy whole table】，則表格內容便複製到剪貼簿 開啟Excel後按〔Ctrl+V〕貼上剪貼簿的內容，結果如下圖：比對後可以發現Table2Clipboard複製出來的格式與內容較完整，也更容易取來再利用。這個擴充套件對於網頁設計人員應該是個利器吧。 Table2Clipboard資訊 官方網站：https://addons.mozilla.org/en-US/firefox/addon/1852 目前版本：0.03 參考：Copy Tables and Keep Their Formatting with Table2Clipboard##
		]]>
	</description>
	<content:encoded><![CDATA[
			<div class="viewer"><a href="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15795264/0.png" target="_blank" title="外部連結至 http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15795264/0.png" class="externalLink imageLink"><img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15795264/8.png" alt="" title="Table2Clipboard;按小圖看大圖" hspace="15" /></a>想完整的複製網頁裡的HTML表格(&lt;table&gt;...&lt;/table&gt;)經常要花不少繁瑣的操作，所幸<a href="https://addons.mozilla.org/en-US/firefox/addon/1852" target="_blank" title="外部連結至 https://addons.mozilla.org/en-US/firefox/addon/1852" class="externalLink">Table2Clipboard</a>簡化且完美地完成了這個複製動作。<br /><h3> 安裝Table2Clipboard前</h3><ol><li> 用〔Ctrl+Click〕點選表格的儲存格(Cell)，選取表格裡的所有儲存格</li><li> 按〔Ctrl+C〕將選取內容複製到剪貼簿</li><li> 開啟Excel後按〔Ctrl+V〕貼上剪貼簿的內容，結果如下圖：</li></ol><a href="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15795264/6.png" target="_blank" title="外部連結至 http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15795264/6.png" class="externalLink imageLink"><img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15795264/9.png" alt="" title="Bofore;按小圖看大圖" hspace="15" /></a><br /><h3> 安裝Table2Clipboard後</h3><ol><li> 用〔Ctrl+Click〕點選表格的儲存格(Cell)，選取表格裡的所有儲存格</li><li> 以【右鍵功能表】&rarr;【Copy selected cells】或【Copy whole table】，則表格內容便複製到剪貼簿</li><li> 開啟Excel後按〔Ctrl+V〕貼上剪貼簿的內容，結果如下圖：</li></ol><a href="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15795264/7.png" target="_blank" title="外部連結至 http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15795264/7.png" class="externalLink imageLink"><img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15795264/10.png" alt="" title="After;按小圖看大圖" hspace="15" /></a><br /><br />比對後可以發現Table2Clipboard複製出來的格式與內容較完整，也更容易取來再利用。這個擴充套件對於網頁設計人員應該是個利器吧。<br /><h3> Table2Clipboard資訊</h3><ul><li> 官方網站：<a href="https://addons.mozilla.org/en-US/firefox/addon/1852" target="_blank" title="外部連結至 https://addons.mozilla.org/en-US/firefox/addon/1852" class="externalLink">https://addons.mozilla.org/en-US/firefox/addon/1852</a></li><li> 目前版本：0.03</li><li> 參考：<a href="http://lifehacker.com/356467/copy-tables-and-keep-their-formatting-with-table2clipboard" target="_blank" title="外部連結至 http://lifehacker.com/356467/copy-tables-and-keep-their-formatting-with-table2clipboard" class="externalLink">Copy Tables and Keep Their Formatting with Table2Clipboard</a></li></ul>##<br /></div>
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5550385.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5550385.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sat, 16 Feb 2008 21:37:42 +0800</pubDate>
</item>
<item>
	<title>[FireFox擴充] 牛仔好忙，等會再看吧!</title>
	<description><![CDATA[
			使用Google Reader或Bloglines等閱讀RSS訂閱項目時，都會把準備要看的文章開啟在新分頁或新視窗，以備隨後慢慢瀏覽，此時最怕遇到FireFox當掉導致所有已開啟視窗都付諸流水的慘劇，幸好這個FireFox擴充套件Read it Later解決了這個問題。 首先由這裡安裝好Read it Later，再於功能表右側空白處按【右鈕&rarr;自訂...】，把Read Later、Reading List兩個圖示拖放到工具列上，隨後就能透過這兩個圖示與右鍵功能表上的【Read This Page Later】選項來操作。 Read Later圖示有兩種狀態： ：按一下會將瀏覽中的網頁存入稍後再讀的清單裡 ：若本頁已被加入閱讀清單則會顯示勾選圖示，再按一次就變成上一個圖示；若按下拉箭頭符號則能再選擇要加入的書籤系統（如del.icio.us或Digg等）。可惜找不到黑米或funP的選項。 Reading List圖示則存放所有稍後再讀的各個網頁連結，選取網頁後就會在分頁裡顯示其內容 在下拉按鈕裡有離線閱讀的實驗性功能，可以把清單裡的網頁先存到硬碟裡供離線時閱讀 Read This Page Later：在超連結上開啟右鍵功能表，或按〔R+右鍵〕則可以將超連結加入稍後再讀清單如果你也跟我一樣每天要看許多的RSS項目的話，Read it Later是個不錯的套件。參考：Build an Online Reading List with &ldquo;Read It Later&rdquo;  ##   
		]]>
	</description>
	<content:encoded><![CDATA[
			<img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15677402/2.jpg" alt="" title="Read it Later" hspace="15" align="left" />使用<a href="http://www.google.com/reader" target="_blank" title="外部連結至 http://www.google.com/reader" class="externalLink">Google Reader</a>或<a href="http://www.bloglines.com/" target="_blank" title="外部連結至 http://www.bloglines.com/" class="externalLink">Bloglines</a>等閱讀RSS訂閱項目時，都會把準備要看的文章開啟在新分頁或新視窗，以備隨後慢慢瀏覽，此時最怕遇到FireFox當掉導致所有已開啟視窗都付諸流水的慘劇，幸好這個FireFox擴充套件<a href="http://www.ideashower.com/ideas/launched/read-it-later/" target="_blank" title="外部連結至 http://www.ideashower.com/ideas/launched/read-it-later/" class="externalLink">Read it Later</a>解決了這個問題。<br /> <div class="viewer"><br />首先由<a href="https://ideashower.com/files/read-it-later/isreaditlater.xpi" target="_blank" title="外部連結至 https://ideashower.com/files/read-it-later/isreaditlater.xpi" class="externalLink">這裡</a>安裝好Read it Later，再於功能表右側空白處按【右鈕&rarr;自訂...】，把Read Later、Reading List兩個圖示拖放到工具列上，隨後就能透過這兩個圖示與右鍵功能表上的【Read This Page Later】選項來操作。<br /><ul><li> <strong>Read Later</strong>圖示有兩種狀態：<ul><li> <img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15677402/0.gif" alt="" title="alt_text" hspace="15" />：按一下會將瀏覽中的網頁存入稍後再讀的清單裡</li><li> <img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/15677402/1.gif" alt="" title="alt_text" hspace="15" />：若本頁已被加入閱讀清單則會顯示勾選圖示，再按一次就變成上一個圖示；若按下拉箭頭符號則能再選擇要加入的書籤系統（如del.icio.us或Digg等）。可惜找不到<a href="http://www.hemidemi.com/" target="_blank" title="外部連結至 http://www.hemidemi.com" class="externalLink">黑米</a>或<a href="http://www.funp.com/" target="_blank" title="外部連結至 http://www.funp.com" class="externalLink">funP</a>的選項。</li></ul></li><li> <strong>Reading List</strong>圖示則存放所有稍後再讀的各個網頁連結，選取網頁後就會在分頁裡顯示其內容<ul><li> 在下拉按鈕裡有離線閱讀的實驗性功能，可以把清單裡的網頁先存到硬碟裡供離線時閱讀</li></ul></li><li> <strong>Read This Page Later</strong>：在超連結上開啟右鍵功能表，或按〔R+右鍵〕則可以將超連結加入稍後再讀清單</li></ul>如果你也跟我一樣每天要看許多的RSS項目的話，Read it Later是個不錯的套件。<br /><br />參考：<a href="http://www.makeuseof.com/tag/build-an-online-reading-list-with-read-it-later/" target="_blank" title="外部連結至 http://www.makeuseof.com/tag/build-an-online-reading-list-with-read-it-later/" class="externalLink">Build an Online Reading List with &ldquo;Read It Later&rdquo;</a><br /> <br /> ##<br /> </div>  
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/5512159.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/5512159.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Thu, 07 Feb 2008 19:07:51 +0800</pubDate>
</item>
<item>
	<title>加入兔斯基表情圖形的網頁</title>
	<description><![CDATA[
			為了方便使用好笑的兔斯基圖形，隨手寫了一個網頁以方便複製，有興趣用的請自行拷貝去用吧。原本想左鍵Click後自動把圖形貼到剪貼簿，但window.clipboardData似乎沒辦法處理圖形，嗯～有空再來解決了。Xuite的回應感覺怪怪的，外部的圖形無法在FireFox裡貼，但IE卻又能貼成功，很是怪異...。以下是幾個卡哇伊的兔斯基範例：  圖檔原作者資料：姓名：王卯卯（MOMO） 官方網站：http://blog.sina.com.cn/wangmomo##
		]]>
	</description>
	<content:encoded><![CDATA[
			為了方便使用好笑的兔斯基圖形，隨手寫了一個<a href="http://jdev.tw/tuzki.html" target="_blank">網頁</a>以方便複製，有興趣用的請自行拷貝去用吧。原本想左鍵Click後自動把圖形貼到剪貼簿，但window.clipboardData似乎沒辦法處理圖形，嗯～有空再來解決了。<br /><br />Xuite的回應感覺怪怪的，外部的圖形無法在FireFox裡貼，但IE卻又能貼成功，很是怪異...。<br /><br />以下是幾個卡哇伊的兔斯基範例：<br /><img src="http://jdev.tw/images/tuzki/30.gif" alt="" /><img src="http://jdev.tw/images/tuzki/aq.gif" alt="" /><img src="http://jdev.tw/images/tuzki/am.gif" alt="" /><img src="http://jdev.tw/images/tuzki/aa.gif" alt="" /> <img src="http://jdev.tw/images/tuzki/ah.gif" alt="" /><br /><br /> 圖檔原作者資料：姓名：王卯卯（MOMO）<br /> 官方網站：<a href="http://blog.sina.com.cn/wangmomo" target="_blank">http://blog.sina.com.cn/wangmomo</a><br /><br />##
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/4993083.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/4993083.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Wed, 16 Jan 2008 23:54:35 +0800</pubDate>
</item>
<item>
	<title> [FireFox] 替頁籤編號的擴充</title>
	<description><![CDATA[
			忘了在那看到介紹一個FireFox擴充：Fancy Numbered Tabs，它能在FireFox的頁籤上加上 1 到 9 的圖示，我們可以按Ctrl+1～Ctrl+9或Alt+1～Alt+9以立刻切換到特定的頁籤，當開啟的網頁還不太多時，Fancy Numbered Tabs應該能提供方便的操作。## 
		]]>
	</description>
	<content:encoded><![CDATA[
			<img src="http://www.hasonetoomany.com/images/fancy_numbered_tabs_for_firefox_2/tabs_example.gif" alt="" align="left" />忘了在那看到介紹一個FireFox擴充：<a href="http://www.hasonetoomany.com/fancy_numbered_tabs_for_firefox/" target="_blank">Fancy Numbered Tabs</a>，它能在FireFox的頁籤上加上 1 到 9 的圖示，我們可以按Ctrl+1～Ctrl+9或Alt+1～Alt+9以立刻切換到特定的頁籤，當開啟的網頁還不太多時，Fancy Numbered Tabs應該能提供方便的操作。<br /><br />##<br /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/4421023.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/4421023.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 04 Nov 2007 23:23:56 +0800</pubDate>
</item>
<item>
	<title>在Blog裡顯示隨機文章的簡單作法</title>
	<description><![CDATA[
			 先前有一陣子使用del.icio.us的API取回隨機文章並顯示在文章底部，今天有讀者留言提示了一個提供隨機文章服務的網站：Stuff a Blog，以下是試用紀要。Stuff-a-Blog目前提供兩個服務：BMash和BStir： BMash提供使用者輸入關鍵字以形成查詢結果網頁，再讓我們貼到Blog裡。 BStir提供產生隨機文章的程式碼，把產生好的程式碼貼到自由欄位裡，就能顯示隨機文章了(BStir名稱我猜測如下：B是Blog，Stir是攪動的意思)隨機文章可以指定要取用幾篇文章，並有兩種顯示方法： Dynamic：幻燈片式的動態顯示，每次顯示一篇，每隔數秒輪流顯示(output=slideshow) Static：一次顯示指定篇數的靜態網頁(output=html)如果你也想要顯示隨機文章，那麼Stuff-a-Blog的方法是更簡單的作法。參考：Mr.布 &amp; Ms.艾 隨機文章出現方法## 
		]]>
	</description>
	<content:encoded><![CDATA[
			 先前有一陣子使用<a href="http://del.icio.us/" target="_blank" title="外部連結至 http://del.icio.us" class="externalLink">del.icio.us</a>的API<a href="http://blog.xuite.net/emisjerry/tech/11277281" target="_blank" title="外部連結至 http://blog.xuite.net/emisjerry/tech/11277281" class="externalLink">取回隨機文章</a>並顯示在文章底部，今天有讀者留言提示了一個提供隨機文章服務的網站：<a href="http://stuffablog.com/bstir/" target="_blank" title="外部連結至 http://stuffablog.com/bstir/" class="externalLink">Stuff a Blog</a>，以下是試用紀要。<br /><br />Stuff-a-Blog目前提供兩個服務：<a href="http://stuffablog.com/bmash/index.html" target="_blank" title="外部連結至 http://stuffablog.com/bmash/index.html" class="externalLink">BMash</a>和<a href="http://stuffablog.com/bstir/index.html" target="_blank" title="外部連結至 http://stuffablog.com/bstir/index.html" class="externalLink">BStir</a>：<br /><ul><li> <strong>BMash</strong>提供使用者輸入關鍵字以形成查詢結果網頁，再讓我們貼到Blog裡。</li><li> <strong>BStir</strong>提供產生隨機文章的程式碼，把產生好的程式碼貼到自由欄位裡，就能顯示隨機文章了(<strong>BStir</strong>名稱我猜測如下：B是Blog，Stir是攪動的意思)</li></ul>隨機文章可以指定要取用幾篇文章，並有兩種顯示方法：<br /><ul><li> Dynamic：幻燈片式的動態顯示，每次顯示一篇，每隔數秒輪流顯示(output=slideshow)</li><li> Static：一次顯示指定篇數的靜態網頁(output=html)</li></ul>如果你也想要顯示隨機文章，那麼Stuff-a-Blog的方法是更簡單的作法。<br /><br />參考：Mr.布 &amp; Ms.艾 <a href="http://bryanivyblog.blogspot.com/2007/03/blog-post_23.html" target="_blank" title="外部連結至 http://bryanivyblog.blogspot.com/2007/03/blog-post_23.html" class="externalLink">隨機文章出現方法</a><br /><br />##<br /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/4304527.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/4304527.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 14 Oct 2007 20:43:53 +0800</pubDate>
</item>
<item>
	<title>Google Reader快速訂閱的FireFox擴充Google Reader快速訂閱的FireFox擴充</title>
	<description><![CDATA[
			 一直以來使用的RSS Feeds Reader都是使用Bloglines，今天終於受不了它每次都必須把某個分類裡所有未讀的 Feeds都讀取完畢所造成的遲緩，開始轉移陣地到Google Reader。用匯入很輕易地就把Bloglines裡訂閱 的Feeds轉移過來，操作一會後發現它的Next item在讀沒什麼營養的長篇大論時很是便利，不用再拚命去拉捲軸或滾輪。但是也遇到一些問題無法解決：   中文分類會無法匯入：分類（或稱資料夾或Google Reader裡的標籤）若為中文是無法匯入的標籤名稱找不到地方修改，只有刪除的按鈕 另外就是找不到快速訂閱的瀏覽器工具列按鈕(Toolbar button)，最後終於找到提供相同功能的FireFox擴充：Jasper&#39;s Google Reader Subscribe 0.3， 在執行這個擴充前必須先安裝Greasemonkey (A user script manager for FireFox)才能順利運行。  安裝後當您瀏覽的網站有提供RSS Feeds時，在網頁右上角就會出現RSS Feeds的圖示：尚未訂閱的會以藍色呈現，已經訂閱過的會以橘紅色和一個超大的勾勾呈現（想要縮小勾勾的大小，卻不知如何下手 :-(）。把滑鼠游標移到未訂閱的藍色圖示時，能訂閱的Feeds就會顯示出來，點選後就連結到Google Reader的訂閱網頁，就這樣能快速的訂閱有興趣的網站。      已 訂閱的網頁 尚 未訂閱過的網頁 訂 閱        原來以為到此已算大功告成，沒想到在按了訂閱後是在原網頁直接轉址到Google Reader，而我比較希望能開新分頁而不要覆蓋到正在瀏覽的網頁，因此研究了修改的方法：開啟Greasemonkey的選項視窗：FireFox功能表：【工具&rarr;附加元件】，找到【Greasemonkey】後按【選項】按鈕找到Jasper&#39;s Google Reader Subscribe，按左下角的【編輯】，此時會彈出要求指定文字編輯器的視窗，請找到慣用的編輯器或c:\windows\notepad.exe即可此時編輯器讀入jaspersgooglereadersubsc.user.js，移到第42行，做下列修改(加上target=&quot;_blank&quot;以使連結開啟新頁)：修改前JGRSfeeds.innerHTML += &#39;&lt;a href=http://www.google.com/reader/view/feed/&#39;+ encodedFeedUrl +&#39;&gt;&#39;+ feed.title +&#39;&lt;/a&gt;&#39;;修改後JGRSfeeds.innerHTML += &#39;&lt;a target=&quot;_blank&quot; href=http://www.google.com/reader/view/feed/&#39;+ encodedFeedUrl +&#39;&gt;&#39;+ feed.title +&#39;&lt;/a&gt;&#39;;  
		]]>
	</description>
	<content:encoded><![CDATA[
			 一直以來使用的RSS Feeds Reader都是使用<a href="http://www.bloglines.com/" target="_blank">Bloglines</a>，今天終於受不了它每次都必須把某個分類裡所有未讀的 Feeds都讀取完畢所造成的遲緩，開始轉移陣地到<a href="http://www.google.com/reader/view/" target="_blank">Google Reader</a>。用匯入很輕易地就把Bloglines裡訂閱 的Feeds轉移過來，操作一會後發現它的Next item在讀沒什麼營養的長篇大論時很是便利，不用再拚命去拉捲軸或滾輪。但是也遇到一些問題無法解決：  <br /> <ul><li>中文分類會無法匯入：分類（或稱資料夾或Google Reader裡的標籤）若為中文是無法匯入的</li><li>標籤名稱找不到地方修改，只有刪除的按鈕</li></ul> 另外就是找不到快速訂閱的瀏覽器工具列按鈕(Toolbar button)，最後終於找到提供相同功能的FireFox擴充：<a href="http://userscripts.org/scripts/source/2571.user.js" target="_blank">Jasper&#39;s Google Reader Subscribe 0.3</a>， 在執行這個擴充前必須先安裝<a href="http://greasemonkey.mozdev.org/" target="_blank">Greasemonkey</a><a href="http://greasemonkey.mozdev.org/" target="_blank"> (A user script manager for FireFox)</a>才能順利運行。<br /> <br /> 安裝後當您瀏覽的網站有提供RSS Feeds時，在網頁右上角就會出現RSS Feeds的圖示：尚未訂閱的會以藍色呈現，已經訂閱過的會以橘紅色和一個<span style="font-weight: bold">超大</span>的勾勾呈現（想要縮小勾勾的大小，卻不知如何下手 :-(）。把滑鼠游標移到未訂閱的藍色圖示時，能訂閱的Feeds就會顯示出來，點選後就連結到Google Reader的訂閱網頁，就這樣能快速的訂閱有興趣的網站。 <br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #999999; width: 100px"> <tbody> <tr> <td style="text-align: center; background-color: #ffffcc; color: #330099">已 訂閱的網頁</td> <td style="text-align: center; background-color: #ffffcc; color: #330099">尚 未訂閱過的網頁</td> <td style="text-align: center; background-color: #ffffcc; color: #330099">訂 閱</td> </tr> <tr> <td style="background-color: #ffffcc"><img style="width: 133px; height: 235px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/12129223/1.jpg" alt="Subscribed" /></td> <td style="background-color: #ffffcc"><img style="width: 129px; height: 208px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/12129223/0.jpg" alt="Unsubscribe" /></td> <td style="background-color: #ffffcc"><img style="width: 131px; height: 249px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/12129223/2.jpg" alt="Subscribe" /></td> </tr> </tbody> </table><br />原來以為到此已算大功告成，沒想到在按了訂閱後是在原網頁直接轉址到Google Reader，而我比較希望能開新分頁而不要覆蓋到正在瀏覽的網頁，因此研究了修改的方法：<br /><ol><li>開啟Greasemonkey的選項視窗：FireFox功能表：【工具&rarr;附加元件】，找到【Greasemonkey】後按【選項】按鈕</li><li>找到Jasper&#39;s Google Reader Subscribe，按左下角的【編輯】，此時會彈出要求指定文字編輯器的視窗，請找到慣用的編輯器或c:\windows\notepad.exe即可</li><li>此時編輯器讀入jaspersgooglereadersubsc.user.js，移到第<span style="font-weight: bold">42</span>行，做下列修改(加上target=&quot;_blank&quot;以使連結開啟新頁)：</li></ol><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #999999; width: 100%"><tbody><tr><td style="width: 88px; background-color: #ffffcc">修改前</td><td style="width: 450px; background-color: #ffffcc">JGRSfeeds.innerHTML += &#39;&lt;a href=http://www.google.com/reader/view/feed/&#39;+ encodedFeedUrl +&#39;&gt;&#39;+ feed.title +&#39;&lt;/a&gt;&#39;;</td></tr><tr><td style="width: 88px; background-color: #ffffcc">修改後</td><td style="width: 450px; background-color: #ffffcc">JGRSfeeds.innerHTML += &#39;&lt;a<span style="font-weight: bold; color: #ff0000"> target=&quot;_blank&quot; </span>href=http://www.google.com/reader/view/feed/&#39;+ encodedFeedUrl +&#39;&gt;&#39;+ feed.title +&#39;&lt;/a&gt;&#39;;</td></tr></tbody></table> <br /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3480231.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3480231.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sat, 16 Jun 2007 22:49:42 +0800</pubDate>
</item>
<item>
	<title>變更文章底端的【黑米共享書籤】推文/貼文按鈕</title>
	<description><![CDATA[
			  黑米共享書籤推出了新的推文按鈕 [功 能] 黑米小按鈕，能顯示迴響、收藏與推薦的數目並具有連結功能。      1個迴 響    在新視 窗開啟推薦網頁    在新視 窗開啟 收藏網頁     收藏推 薦人數   黑米的這個功能是透過其http://js.hemidemi.com/javascripts/hemidemi_bookmark_button.js來達成，除非您是自己架站或使用如Blogger.com般能自訂頁面樣板的Blog系統，否則很難直接使用。我將上述網址取回的JavaScript程式碼做了修改，把計算網頁的MD5碼函數拆出成獨立的md5.js，再於bookmark_buttons.js裡建立需要的iframe元素，最後再把此元素加入到文章底部的posted物件裡。這樣應該沒有侵犯到任何智慧財產權吧，若有此類問題的話，請留言通知。 原本也打算把推推王的書籤按鈕也改掉，但發現貼文按鈕只能把網址傳至收錄網頁，文章抬頭與標籤皆無法傳遞，因此還是先保持原樣好了。若想自行設定者，請參考推推王 推文按鈕貼紙這篇。 
		]]>
	</description>
	<content:encoded><![CDATA[
			 <img style="width: 156px; height: 39px; float: left" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11898696/0.jpg" alt="HEMIDEMI new button" hspace="20" /> <p>黑米共享書籤推出了新的推文按鈕 <a rel="bookmark" href="http://www.hemidemi.com/blog/?p=114" title="Permanent Link to [功能] 黑米小按鈕">[功 能] 黑米小按鈕</a>，能顯示迴響、收藏與推薦的數目並具有連結功能。</p> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #999999; height: 159px; width: 311px"> <tbody> <tr> <td style="text-align: center; background-color: #ffff99"><img style="width: 25px; height: 27px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11898696/1.jpg" alt="Hemi 1" /></td> <td style="background-color: #ffff99">1個迴 響</td> </tr> <tr> <td style="text-align: center; background-color: #ffff99"><img style="width: 24px; height: 28px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11898696/2.jpg" alt="Hemi 2" /></td> <td style="background-color: #ffff99">在新視 窗開啟推薦網頁</td> </tr> <tr> <td style="text-align: center; background-color: #ffff99"><img style="width: 24px; height: 27px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11898696/3.jpg" alt="Hemi 3" /></td> <td style="background-color: #ffff99">在新視 窗開啟 收藏網頁 </td> </tr> <tr> <td style="text-align: center; background-color: #ffff99"><img style="width: 45px; height: 29px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11898696/4.jpg" alt="Hemi 4" /></td> <td style="background-color: #ffff99">收藏推 薦人數</td> </tr> </tbody> </table><br />黑米的這個功能是透過其<a href="http://js.hemidemi.com/javascripts/hemidemi_bookmark_button.js" target="_blank">http://js.hemidemi.com/javascripts/hemidemi_bookmark_button.js</a>來達成，除非您是自己架站或使用如<a href="http://www.blogger.com/" target="_blank">Blogger.com</a>般能自訂頁面樣板的Blog系統，否則很難直接使用。我將上述網址取回的JavaScript程式碼做了修改，把計算網頁的MD5碼函數拆出成獨立的<a href="http://emisjerry.googlepages.com/md5.js" target="_blank">md5.js</a>，再於<a href="http://emisjerry.googlepages.com/bookmark_buttons.js" target="_blank">bookmark_buttons.js</a>裡建立需要的<span style="font-weight: bold">iframe</span>元素，最後再把此元素加入到文章底部的<span style="font-weight: bold">posted</span>物件裡。這樣應該沒有侵犯到任何智慧財產權吧，若有此類問題的話，請留言通知。<br /><br /> 原本也打算把推推王的書籤按鈕也改掉，但發現貼文按鈕只能把網址傳至收錄網頁，文章抬頭與標籤皆無法傳遞，因此還是先保持原樣好了。若想自行設定者，請參考<a href="http://funp.com/#preview_1180850798458" target="_blank">推推王 推文按鈕貼紙</a>這篇。<br /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3392999.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3392999.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 03 Jun 2007 14:44:03 +0800</pubDate>
</item>
<item>
	<title>網頁程式碼美化程式 Google Code Prettify</title>
	<description><![CDATA[
			由Idea Grapes看到Google牌的網頁程式碼美化程式：Google Code Prettify，在README裡就能看到完整的安裝步驟。 參考：  dp.SyntaxHighlighter:在網頁顯示美觀的程式碼 網頁顯示程式碼的美容師：CodePress 
		]]>
	</description>
	<content:encoded><![CDATA[
			<p>由<a href="http://www.flickr.com/photos/yoren/430399376/" target="_blank">Idea Grapes</a>看到Google牌的網頁程式碼美化程式：<a href="http://code.google.com/p/google-code-prettify/" target="_blank">Google Code Prettify</a>，在<a href="http://google-code-prettify.googlecode.com/svn/trunk/README.html" target="_blank">README</a>裡就能看到完整的安裝步驟。</p> 參考：<br /> <br /> <a href="http://blog.xuite.net/emisjerry/tech/10220407">dp.SyntaxHighlighter:在網頁顯示美觀的程式碼</a><br /> <a href="http://blog.xuite.net/emisjerry/tech/10775444" target="_blank">網頁顯示程式碼的美容師：CodePress</a> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3354737.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3354737.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 27 May 2007 17:14:53 +0800</pubDate>
</item>
<item>
	<title>在字裡行間發出嗡嗡聲：LineBuzz--線上註解服務</title>
	<description><![CDATA[
			 雖然《槽 边往事》---比特海日志的作者翻譯了很糟的FreeBuner中文版，但是他這篇 雀 神怪鸟的Linebuzz倒是介紹了一個很有趣的網路服務：LineBuzz。所謂的Buzz，指的就是嗡嗡聲，如蜜蜂發出的或拿起電 話未撥號前的嗡嗡聲，網站取名為LineBuzz，提供的就是讓你的Blog的讀者，在你文章的字裡行間能隨意發表註解與意見。以往的回應只能針對一整篇 文章，LineBuzz則讓讀者們能自由標示一段文字後，彈出一個小視窗來填寫任意文字，儲存後形成超連結而能再次顯示輸入的文字並讓別的讀者再回應。  輸入註解後文章會形成超連結：   點擊後出現詳細內容：   只要到lLineBuzz註冊，再把它產生的JavaScript放到側邊欄裡，就擁有上述的功能了。本網站已經加上此功能了，有興趣的讀者，請試用看看 吧。只要把一段文字標示起來，就會出現一個框，點擊它就能輸入註解了。   
		]]>
	</description>
	<content:encoded><![CDATA[
			 雖然<a href="http://www.caobian.info/">《槽 边往事》---比特海日志</a>的作者翻譯了<a href="http://blog.xuite.net/emisjerry/tech/11658286" target="_blank">很糟的FreeBuner中文版</a>，但是他這篇 <a rel="bookmark" href="http://www.caobian.info/?p=2162" title="Permanent Link to &quot;雀神怪鸟的Linebuzz&quot;">雀 神怪鸟的Linebuzz</a>倒是介紹了一個很有趣的網路服務：<a href="http://linebuzz.com/" target="_blank">LineBuzz</a>。所謂的Buzz，指的就是嗡嗡聲，如蜜蜂發出的或拿起電 話未撥號前的嗡嗡聲，網站取名為LineBuzz，提供的就是讓你的Blog的讀者，在你文章的字裡行間能隨意發表註解與意見。以往的回應只能針對一整篇 文章，LineBuzz則讓讀者們能自由標示一段文字後，彈出一個小視窗來填寫任意文字，儲存後形成超連結而能再次顯示輸入的文字並讓別的讀者再回應。<br /> <br /> 輸入註解後文章會形成超連結：<br /> <img style="border: 1px solid silver; width: 415px; height: 62px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11677863/0.jpg" alt="LineBuzz After commenting" /><br /> <br /> 點擊後出現詳細內容：<br /> <img style="border: 1px solid silver; width: 353px; height: 325px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11677863/1.jpg" alt="LineBuzz comments window" /><br /> <br /> 只要到lLineBuzz註冊，再把它產生的JavaScript放到側邊欄裡，就擁有上述的功能了。本網站已經加上此功能了，有興趣的讀者，請試用看看 吧。只要把一段文字標示起來，就會出現一個框，點擊它就能輸入註解了。<br /> <img style="border: 1px solid silver; width: 274px; height: 63px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11677863/7.jpg" alt="LineBuzz Post comment" /><br /> <br /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3278809.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3278809.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 20 May 2007 16:38:45 +0800</pubDate>
</item>
<item>
	<title>免費計數網站 SiteMeter 換新妝</title>
	<description><![CDATA[
			雖然據說 SiteMeter 會偷偷在你的瀏覽器裡安裝分析用的Cookie，雖然它提供的功能和介面與Google Analytics比較下相形失色，但因為它簡單又方便，還提供較明細的訪客資訊，所以我還是繼續使用。今天，它的新版在宣告許久後終於上線了，晚點再來做詳細些的測試。 
		]]>
	</description>
	<content:encoded><![CDATA[
			雖然據說<a href="http://www.sitemeter.com/"> SiteMeter</a> 會偷偷在你的瀏覽器裡安裝分析用的Cookie，雖然它提供的功能和介面與<a href="http://www.google.com/analytics" target="_blank">Google Analytics</a>比較下相形失色，但因為它簡單又方便，還提供較明細的訪客資訊，所以我還是繼續使用。今天，它的新版在宣告許久後終於上線了，晚點再來做詳細些的測試。 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3196171.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3196171.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Wed, 09 May 2007 09:14:28 +0800</pubDate>
</item>
<item>
	<title>用樣式控制Google AdSense廣告顯示的位置</title>
	<description><![CDATA[
			 要把Google AdSense顯示在Blog首頁的表頭區（表頭指的是網頁頂端有Blog標題、小標題與底圖的那塊約1024X200大小的區域）有兩個方法：一個是比 照先前介紹過用JavaScript動態替換innerHTML的方法，另一個更簡單， 使用樣式表即可。  首先說明使用樣式的作法，一樣把由Google AdSense網頁取到的指令用&lt;div&gt;包起來，此區域命名為divAdSenseLinkCSS；這些指今必須放在顯示 在最上方的自由欄位裡：    &lt;div id=&quot;divAdSenseLinkCSS&quot;&gt; &nbsp; // Google AdSense複製來的指令 &lt;/div&gt;     再加上控制divAdSenseLinkCSS區域的顯示位置的樣式：    &lt;style&gt; #divAdSenseLinkCSS { &nbsp; position:absolute; &nbsp; top:-140px; &nbsp; left:120px; } &lt;/style&gt; 把定位 方式設定成絕對位置(absolute); 左上角往上移140像素；第一個自由欄位再往上就是表頭區了; 左邊界自行調整     如果&lt;div&gt;不是放在第一個自由欄位，適度調整 top 的值就能做到準確定位。 照標準，樣式必須寫在&lt;head&gt;區，但經測試把它放在&lt;body&gt;區裡仍然能生效。因此最後 要使用的完整指令碼如下，把指令複製到自由欄位裡即可：     &lt;style&gt; #divAdSenseLinkCSS { &nbsp; position:absolute; &nbsp; top:-140px; &nbsp; left:120px; } &lt;/style&gt; &lt;div id=&quot;divAdSenseLinkCSS&quot;&gt; &nbsp; // Google AdSense複製來的指令 &lt;/div&gt;     原先的方法是您要額外再定義一個名為divAdSenseLinkScript的區域，使用如下指令就能把廣告顯示在Blog小標題下面了：    &lt;div id=&quot;divAdSenseLinkScript&quot; style=&quot;display:none&quot;&gt; &nbsp; // Google AdSense複製來的指令 &lt;/div&gt; &lt;div id=&quot;divAdSenseContentScript&quot; style=&quot;display:none&quot;&gt; &nbsp; // Google AdSense複製來的指令 &lt;/div&gt; &lt;script src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;&lt;/script&gt;    
		]]>
	</description>
	<content:encoded><![CDATA[
			 要把Google AdSense顯示在Blog首頁的表頭區（表頭指的是網頁頂端有Blog標題、小標題與底圖的那塊約1024X200大小的區域）有兩個方法：一個是比 照先前介紹過<a href="http://blog.xuite.net/emisjerry/tech/11157208" target="_blank">用JavaScript動態替換innerHTML</a>的方法，另一個更簡單， 使用樣式表即可。<br /> <br /> 首先說明使用樣式的作法，一樣把由Google AdSense網頁取到的指令用&lt;div&gt;包起來，此區域命名為divAdSenseLinkCSS；這些指今必須放在顯示 在最上方的自由欄位裡：<br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #666666; width: 60%"> <tbody> <tr> <td style="background-color: #ccffff">&lt;div id=&quot;divAdSenseLinkCSS&quot;&gt;<br /> &nbsp; // Google AdSense複製來的指令<br /> &lt;/div&gt;</td> </tr> </tbody> </table> <br /> 再加上控制divAdSenseLinkCSS區域的顯示位置的樣式：<br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #666666; width: 90%"> <tbody> <tr> <td style="background-color: #ccffff">&lt;style&gt;<br /> #divAdSenseLinkCSS {<br /> &nbsp; position:<span style="font-weight: bold">absolute</span>;<br /> &nbsp; top:<span style="font-weight: bold">-140px</span>;<br /> &nbsp; left:120px;<br /> }<br /> &lt;/style&gt;</td> <td style="background-color: #ffffcc">把定位 方式設定成絕對位置(absolute);<br /> 左上角往上移140像素；第一個自由欄位再往上就是表頭區了;<br /> 左邊界自行調整</td> </tr> </tbody> </table> <br /> 如果&lt;div&gt;不是放在第一個自由欄位，適度調整 top 的值就能做到準確定位。<br /> 照標準，樣式必須寫在&lt;head&gt;區，但經測試把它放在&lt;body&gt;區裡仍然能生效。因此最後 要使用的完整指令碼如下，把指令複製到自由欄位裡即可：<br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #666666; width: 60%"> <tbody> <tr> <td style="background-color: #ccffff">&lt;style&gt;<br /> #divAdSenseLinkCSS {<br /> &nbsp; position:absolute;<br /> &nbsp; top:-140px;<br /> &nbsp; left:120px;<br /> }<br /> &lt;/style&gt;<br /> &lt;div id=&quot;divAdSenseLinkCSS&quot;&gt;<br /> &nbsp; // Google AdSense複製來的指令<br /> &lt;/div&gt;</td> </tr> </tbody> </table> <br /> 原先的方法是您要額外再定義一個名為divAdSenseLinkScript的區域，使用如下指令就能把廣告顯示在Blog小標題下面了：<br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #666666; width: 60%"> <tbody> <tr> <td style="background-color: #ccffff">&lt;div id=&quot;divAdSenseLinkScript&quot; style=&quot;display:none&quot;&gt;<br /> &nbsp; // Google AdSense複製來的指令<br /> &lt;/div&gt;<br /> &lt;div id=&quot;divAdSenseContentScript&quot; style=&quot;display:none&quot;&gt;<br /> &nbsp; // Google AdSense複製來的指令<br /> &lt;/div&gt;<br /> &lt;script src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;&lt;/script&gt;</td> </tr> </tbody> </table> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3119083.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3119083.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Thu, 03 May 2007 23:13:32 +0800</pubDate>
</item>
<item>
	<title>「網頁載入中，請稍候．．．」的簡單作法</title>
	<description><![CDATA[
			隨著自由欄位的越來越五彩繽紛、五花八門之後，網頁載入的速度也 越來越慢。為了提示讀者耐心等候，特別加了個「載入中」的小框，就像AJAX技術常見的樣式一般。以下說明我在 Xuite 裡達成的方法與步驟。 首先在顯示在最上面的自由欄位裡加上如下HTML標籤：    &lt;div id=&quot;divLoading&quot;  &nbsp; &nbsp; style=&quot;border:3px blue solid;background-color:#ba2a4a;color:white;position:absolute;top:-50px;left:350px;width:250px;height:50px;z-order=0&quot;&gt; &nbsp; &lt;img src=&quot;http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/7.gif&quot; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; style=&quot;vertical-align:middle;padding:6px&quot;/&gt; &nbsp; 網頁載入中，請稍候... &lt;/div&gt;     基本結構就是用一個區域(div，division) 把圖形和載入中的文字包在一起，因為是放在第一個自由欄位裡，所以會在很早的時間裡就執行到而顯示在自由欄位上方50像素的位置(top: -50px)。因為這段HTML 是放在第一個自由欄位裡，自由欄位的左上角就是座標 (0, 0)，要將此區域向上移動就是把底端用負值即可，此例中我把位置向上移了50個像素(-50px)。  類似AJAX的「載入中」圖形在網路上可以找到不少，其中AJAXLoad是一個能自行設定的圖形產生網頁，可依需求指定圖形的樣式 與顏色等；如果您懶得去找或用產生器的話，以下是一些我上載好的：       http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/7.gif    http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/0.gif    http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/9.gif    http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/8.gif    http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/6.gif     最後在任何一個自由欄位裡設定window.onload事件，在此事件裡把顯示出來的區域(divLoading)的顯示樣式變成 &quot;none&quot;，則「載入中」的框框就消失了。    &lt;script&gt; &nbsp; function init( ) { &nbsp; &nbsp; // .... 其他指令 &nbsp;&nbsp;&nbsp; _oTag = document.getElementById(&quot;divLoading&quot;); &nbsp;&nbsp;&nbsp; _oTag.style.display = &quot;none&quot;;&nbsp; // hide it. &nbsp; }  &nbsp; if (window.attachEvent) { &nbsp;&nbsp;&nbsp; window.attachEvent(&#39;onload&#39;, init); &nbsp; } else { &nbsp;&nbsp;&nbsp; window.addEventListener(&#39;load&#39;, init, false); &nbsp; } &lt;/script&gt;     
		]]>
	</description>
	<content:encoded><![CDATA[
			<img style="width: 473px; height: 130px; float: left" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11384536/0.jpg" alt="Loading image" hspace="20" vspace="10" /><p>隨著自由欄位的越來越五彩繽紛、五花八門之後，網頁載入的速度也 越來越慢。為了提示讀者耐心等候，特別加了個「載入中」的小框，就像AJAX技術常見的樣式一般。以下說明我在<span style="font-weight: bold"> Xuite </span>裡達成的方法與步驟。</p> 首先在顯示在最上面的自由欄位裡加上如下HTML標籤：<br /><br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #666666; width: 100%"> <tbody> <tr> <td style="background-color: #ffffcc">&lt;div id=&quot;<span style="font-weight: bold">divLoading</span>&quot; <br /> &nbsp; &nbsp; style=&quot;border:3px blue solid;background-color:#ba2a4a;color:white;position:absolute;<span style="font-weight: bold">top:-50px</span>;left:350px;width:250px;height:50px;z-order=0&quot;&gt;<br /> &nbsp; &lt;img src=&quot;http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/7.gif&quot;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; style=&quot;vertical-align:middle;padding:6px&quot;/&gt;<br /> &nbsp; 網頁載入中，請稍候...<br /> &lt;/div&gt;</td> </tr> </tbody> </table> <br /> 基本結構就是用一個區域(<span style="font-weight: bold">div</span>，division) 把圖形和載入中的文字包在一起，因為是放在第一個自由欄位裡，所以會在很早的時間裡就執行到而顯示在自由欄位上方50像素的位置<span style="font-weight: bold">(top: -50px</span>)。因為這段HTML 是放在第一個自由欄位裡，自由欄位的左上角就是座標 (0, 0)，要將此區域向上移動就是把底端用負值即可，此例中我把位置向上移了50個像素(-50px)。<br /> <br /> 類似AJAX的「載入中」圖形在網路上可以找到不少，其中<a href="http://www.ajaxload.info/" target="_blank">AJAXLoad</a>是一個能自行設定的圖形產生網頁，可依需求指定圖形的樣式 與顏色等；如果您懶得去找或用產生器的話，以下是一些我上載好的：<br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #666666; width: 952px; height: 30px"> <tbody> <tr> <td style="text-align: center; background-color: #ffffcc"><img style="width: 40px; height: 40px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/7.gif" alt="AjaxLoading 1" /><br /> </td> <td style="background-color: #ffffcc"><a href="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/7.gif" target="_blank">http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/7.gif</a></td> </tr> <tr> <td style="background-color: #ffffcc; text-align: center"><img style="width: 32px; height: 32px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/0.gif" alt="Ajax Loading 2" /></td> <td style="background-color: #ffffcc"><a href="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/0.gif" target="_blank">http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/0.gif</a></td> </tr> <tr> <td style="background-color: #ffffcc; text-align: center"><img style="width: 48px; height: 48px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/9.gif" alt="Ajax Loading 3" /></td> <td style="background-color: #ffffcc"><a href="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/9.gif" target="_blank">http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/9.gif</a></td> </tr> <tr> <td style="background-color: #ffffcc; text-align: center"><img style="width: 15px; height: 15px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/8.gif" alt="Ajax Loading 4" /></td> <td style="background-color: #ffffcc"><a href="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/8.gif" target="_blank">http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/8.gif</a></td> </tr> <tr> <td style="background-color: #ffffcc; text-align: center"><img style="width: 85px; height: 81px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/6.gif" alt="Ajax Loading 5" /></td> <td style="background-color: #ffffcc"><a href="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/6.gif" target="_blank">http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11293067/6.gif</a></td> </tr> </tbody> </table> <br /> 最後在任何一個自由欄位裡設定window.onload事件，在此事件裡把顯示出來的區域(<span style="font-weight: bold">divLoading</span>)的顯示樣式變成 &quot;none&quot;，則「載入中」的框框就消失了。<br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #666666; width: 100%"> <tbody> <tr> <td style="background-color: #ffffcc">&lt;script&gt;<br /> &nbsp; function init( ) {<br /> &nbsp; &nbsp; // .... 其他指令<br /> &nbsp;&nbsp;&nbsp; _oTag = document.getElementById(&quot;divLoading&quot;);<br /> &nbsp;&nbsp;&nbsp; _oTag.style.display = &quot;none&quot;;&nbsp; // hide it.<br /> &nbsp; }<br /> <br /> &nbsp; if (window.attachEvent) {<br /> &nbsp;&nbsp;&nbsp; window.attachEvent(&#39;onload&#39;, init);<br /> &nbsp; } else {<br /> &nbsp;&nbsp;&nbsp; window.addEventListener(&#39;load&#39;, init, false);<br /> &nbsp; }<br /> &lt;/script&gt;<br /> </td> </tr> </tbody> </table> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3112401.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3112401.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Wed, 02 May 2007 23:08:03 +0800</pubDate>
</item>
<item>
	<title>Xuite網址的正規運算式測試</title>
	<description><![CDATA[
			Xuite的網址真是找人麻煩。這當然是對不熟悉正規運算式的我才成立的。經過分析，Xuite的網址有下列幾種Pattern：序網址說明1http://blog.xuite.net/emisjerry/tech首頁(Blog清單，第一頁)2http://blog.xuite.net/emisjerry/tech?p=2首頁(Blog清單，第二頁)3http://blog.xuite.net/emisjerry/tech/11327060某篇文章網頁；有文章編號表示是文章網頁4http://blog.xuite.net/emisjerry/tech/11327060#message第一頁按回應的某篇文章5http://blog.xuite.net/emisjerry/tech/11327060#trackback第一頁按引用的某篇文章6http://blog.xuite.net/emisjerry/tech/11157208?p=2首頁第二頁的某篇文章網頁7http://blog.xuite.net/emisjerry/tech/11157208?p=2#message按了回應後的某篇文章8http://blog.xuite.net/emisjerry/tech/11157208?p=2#trackback按了引用後的某篇文章我的目標是判斷目前網頁是某篇文章的全文，只有在文章內部才要加上 隨機的相關文章與Google AdSense廣告，在首頁(有第一頁到第十頁)則不顯示相關文章和廣告。透過 reWork: a regular expression workbench 測試了半天，下列運算式似乎能正確判斷出文章內部：^http:\/\/blog.xuite.net\/.*\/\d+(\?p=\d+)?(#message|#trackback|)^http:\/\/blog.xuite.net\/以http://blog.xuite.net/ 開頭因為斜線是特殊符號，必須用 \ 來使用需要的正斜線http://blog.xuite.net/.*後面接續的是任意符號點(.) 是萬用字元，星號表示其前置字元出現0或多次tech 或 365day等http://blog.xuite.net/tech\/後面再接一個正斜線http://blog.xuite.net//tech/\d+一或多個數字數字是文章編號，遇到數字則表示目前網頁是在文章內部(\?p=\d+)?最後面的問號表示其前置字元是選擇性的(即可有可無)；圓括號則表示形成字元群組，\?表示要使用問號，再接p=和一組數字(\d+)http://blog.xuite.net/emisjerry/tech/11157208?p=2或http://blog.xuite.net/emisjerry/tech/11157208 都會成立(#message|#trackback|)#message或#trackback或空白http://blog.xuite.net/emisjerry/tech/11157208?p=2#messagehttp://blog.xuite.net/emisjerry/tech/11157208?p=2#trackbackhttp://blog.xuite.net/emisjerry/tech/11157208?p=2http://blog.xuite.net/emisjerry/tech/11157208 以下皆成立經初步測試似乎可行。若您熟悉正規運算式的話，請協助驗證。Thanks. 
		]]>
	</description>
	<content:encoded><![CDATA[
			Xuite的網址真是找人麻煩。這當然是對不熟悉正規運算式的我才成立的。<br /><br />經過分析，Xuite的網址有下列幾種Pattern：<br /><br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #006600; width: 100%"><tbody><tr><td style="text-align: center; color: #ffffff; background-color: #006600">序</td><td style="text-align: center; color: #ffffff; background-color: #006600">網址</td><td style="text-align: center; color: #ffffff; background-color: #006600">說明</td></tr><tr><td style="text-align: center; background-color: #ccffff">1</td><td style="background-color: #ccffff">http://blog.xuite.net/emisjerry/tech</td><td style="background-color: #ccffff">首頁(Blog清單，第一頁)</td></tr><tr><td style="text-align: center; background-color: #ccffff">2</td><td style="background-color: #ccffff">http://blog.xuite.net/emisjerry/tech?p=2</td><td style="background-color: #ccffff">首頁(Blog清單，第二頁)</td></tr><tr><td style="text-align: center; background-color: #ccffff">3</td><td style="background-color: #ccffff">http://blog.xuite.net/emisjerry/tech/11327060</td><td style="background-color: #ccffff">某篇文章網頁；有<span style="font-weight: bold">文章編號</span>表示是文章網頁</td></tr><tr><td style="text-align: center; background-color: #ccffff">4</td><td style="background-color: #ccffff">http://blog.xuite.net/emisjerry/tech/11327060#message</td><td style="background-color: #ccffff">第一頁按回應的某篇文章</td></tr><tr><td style="text-align: center; background-color: #ccffff">5</td><td style="background-color: #ccffff">http://blog.xuite.net/emisjerry/tech/11327060#trackback</td><td style="background-color: #ccffff">第一頁按引用的某篇文章</td></tr><tr><td style="text-align: center; background-color: #ccffff">6</td><td style="background-color: #ccffff">http://blog.xuite.net/emisjerry/tech/11157208?p=2</td><td style="background-color: #ccffff">首頁第二頁的某篇文章網頁</td></tr><tr><td style="text-align: center; background-color: #ccffff">7</td><td style="background-color: #ccffff">http://blog.xuite.net/emisjerry/tech/11157208?p=2#message</td><td style="background-color: #ccffff">按了回應後的某篇文章</td></tr><tr><td style="text-align: center; background-color: #ccffff">8</td><td style="background-color: #ccffff">http://blog.xuite.net/emisjerry/tech/11157208?p=2#trackback</td><td style="background-color: #ccffff">按了引用後的某篇文章</td></tr></tbody></table><br />我的目標是判斷目前網頁是某篇文章的全文，只有在文章內部才要加上 隨機的相關文章與Google AdSense廣告，在首頁(有第一頁到第十頁)則不顯示相關文章和廣告。<br /><br />透過<a href="http://osteele.com/tools/rework/" target="_blank"> reWork: a regular expression workbench</a> 測試了半天，下列運算式似乎能正確判斷出文章內部：<br /><br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #666666; width: 100px"><tbody><tr><td style="background-color: #ffffcc"><span style="font-family: Arial">^http:\/\/blog.xuite.net\/.*\/\d+(\?p=\d+)?(#message|#trackback|)</span></td></tr></tbody></table><br /><table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #666666; width: 100%"><tbody><tr><td style="background-color: #ffffcc"><span style="font-family: Arial">^http:\/\/blog.xuite.net\/</span></td><td style="background-color: #ffffcc">以http://blog.xuite.net/ 開頭<br />因為斜線是特殊符號，必須用 \ 來使用需要的正斜線</td><td style="background-color: #ccffff">http://blog.xuite.net/</td></tr><tr><td style="background-color: #ffffcc">.*</td><td style="background-color: #ffffcc">後面接續的是任意符號<br />點(.) 是萬用字元，星號表示其前置字元出現0或多次</td><td style="background-color: #ccffff">tech 或 365day等<br />http://blog.xuite.net/tech</td></tr><tr><td style="background-color: #ffffcc">\/</td><td style="background-color: #ffffcc">後面再接一個正斜線</td><td style="background-color: #ccffff">http://blog.xuite.net//tech/</td></tr><tr><td style="background-color: #ffffcc">\d+</td><td style="background-color: #ffffcc">一或多個數字</td><td style="background-color: #ccffff">數字是文章編號，遇到數字則表示目前網頁是在文章內部</td></tr><tr><td style="background-color: #ffffcc">(\?p=\d+)?</td><td style="background-color: #ffffcc">最後面的問號表示其前置字元是選擇性的(即可有可無)；圓括號則表示形成字元群組，\?表示要使用問號，再接p=和一組數字(\d+)</td><td style="background-color: #ccffff">http://blog.xuite.net/emisjerry/tech/11157208?p=2<br />或<br />http://blog.xuite.net/emisjerry/tech/11157208 都會成立</td></tr><tr><td style="background-color: #ffffcc">(#message|#trackback|)</td><td style="background-color: #ffffcc">#message或#trackback或空白</td><td style="background-color: #ccffff">http://blog.xuite.net/emisjerry/tech/11157208?p=2#message<br />http://blog.xuite.net/emisjerry/tech/11157208?p=2#trackback<br />http://blog.xuite.net/emisjerry/tech/11157208?p=2<br />http://blog.xuite.net/emisjerry/tech/11157208 <br />以下皆成立</td></tr></tbody></table><br />經初步測試似乎可行。若您熟悉正規運算式的話，請協助驗證。Thanks. <br />
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3101799.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3101799.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Tue, 01 May 2007 00:05:08 +0800</pubDate>
</item>
<item>
	<title>[創作] 字型工具產生器：動態變更Blog網頁的字型大小</title>
	<description><![CDATA[
			  Font Tool Generator 字型工具產生器本工具是用來產生置放於Blog側邊欄的HTML指令，用來動態變更網頁的字型大小，如此當 別人瀏覽自己的Blog時，能透過這個側邊欄很方便的放大或縮小你網頁的字體大小，不再受 限你的瀏覽器或CSS(樣式表)的原始設定。操作步驟說明如下： 選擇本工具的顯示語言，目前有英文與繁體中文兩種，預設是英文 在ID與Function之間的欄位：設定輸出的文字與背景顏色 Function下面可以指定放大或縮小的圖形路徑與文字標題 除了放大或縮小的圖形外，也有下拉選單，可指定能設定的字體最小與最大之大小，   每次變更大小表示每個字形大小的遞增數量 作用對象元素：變更大小的對象，請自行由您的網頁查出；Xuite與樂多輸入container   表示整個網頁 顯示樣式：有垂直與水平兩種樣式 設定好後必須按下「啟用新設定」才能使用變更生效 最後按下「產生HTML」後把網頁底部產生出的HTML指令複製並貼入您的自由欄位   (或稱插入欄位)即可   如果在操作上有疑問，或有增強建議的，請寄信到emisjerry@gmail.com 或在簡睿隨筆留言。
		]]>
	</description>
	<content:encoded><![CDATA[
			 <a href="http://emisjerry.googlepages.com/fonttool.html"> Font Tool Generator</a> 字型工具產生器<p>本工具是用來產生置放於Blog側邊欄的HTML指令，用來動態變更網頁的字型大小，如此當 別人瀏覽自己的Blog時，能透過這個側邊欄很方便的放大或縮小你網頁的字體大小，不再受 限你的瀏覽器或CSS(樣式表)的原始設定。操作步驟說明如下：</p> <ol><li>選擇本工具的顯示語言，目前有英文與繁體中文兩種，預設是英文 </li><li>在ID與Function之間的欄位：設定輸出的文字與背景顏色 </li><li>Function下面可以指定放大或縮小的圖形路徑與文字標題 </li><li>除了放大或縮小的圖形外，也有下拉選單，可指定能設定的字體最小與最大之大小，   每次變更大小表示每個字形大小的遞增數量 </li><li>作用對象元素：變更大小的對象，請自行由您的網頁查出；Xuite與樂多輸入container   表示整個網頁 </li><li>顯示樣式：有垂直與水平兩種樣式 </li><li>設定好後必須按下「<strong>啟用新設定</strong>」才能使用變更生效 </li><li>最後按下「<strong>產生HTML</strong>」後把網頁底部產生出的HTML指令複製並貼入您的自由欄位   (或稱插入欄位)即可 </li></ol>  如果在操作上有疑問，或有增強建議的，請寄信到<a href="mailto:emisjerry@gmail.com">emisjerry@gmail.com</a> 或在<a href="http://blog.xuite.net/emisjerry/tech">簡睿隨筆</a>留言。<br /><br /><img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11326747/0.jpg" alt="" />
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3092087.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3092087.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 29 Apr 2007 17:32:09 +0800</pubDate>
</item>
<item>
	<title>[創作] 翻譯服務產生器：產生放於Blog側邊欄的翻譯按鈕</title>
	<description><![CDATA[
			 Google Translator Generator 翻譯服務產生器 本工具是用來產生能置放於Blog側邊欄翻譯功能的HTML指令產生器。翻譯是透過Google Translate來達成。 操作畫面分成三欄，左欄是選擇功能表，中間是示範表格，最右邊是變更顏色與產生HTML指令的區域。   操作步驟如下： 選擇你的網頁使用的語言(From this language) 再勾選要提供的翻譯對象語言 在最右邊欄位變更文字與背景顏色 按Generate HTML就能在畫面底部產生HTML指令 把產生好的HTML指令複製到剪貼簿，再加到自由欄位(插入欄位)裡  如果在操作上有疑問，或有增強建議的，請寄信到emisjerry@gmail.com 或在簡睿隨筆留 言。 
		]]>
	</description>
	<content:encoded><![CDATA[
			 <a href="http://emisjerry.googlepages.com/google_translate.html"><img style="border: 0px solid ; width: 504px; height: 219px; float: left" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11311841/0.jpg" alt="Google Translate" hspace="30" vspace="10" /></a><a href="http://emisjerry.googlepages.com/google_translate.html" target="_blank">Google Translator Generator</a> 翻譯服務產生器 <p>本工具是用來產生能置放於Blog側邊欄翻譯功能的HTML指令產生器。翻譯是透過Google Translate來達成。 操作畫面分成三欄，左欄是選擇功能表，中間是示範表格，最右邊是變更顏色與產生HTML指令的區域。  </p> 操作步驟如下： <ol><li>選擇你的網頁使用的語言(From this language) </li><li>再勾選要提供的翻譯對象語言 </li><li>在最右邊欄位變更文字與背景顏色 </li><li>按Generate HTML就能在畫面底部產生HTML指令 </li><li>把產生好的HTML指令複製到剪貼簿，再加到自由欄位(插入欄位)裡 </li></ol> 如果在操作上有疑問，或有增強建議的，請寄信到<a href="mailto:emisjerry@gmail.com">emisjerry@gmail.com</a> 或在<a href="http://blog.xuite.net/emisjerry/tech">簡睿隨筆</a>留 言。 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3087711.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3087711.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sat, 28 Apr 2007 23:23:36 +0800</pubDate>
</item>
<item>
	<title>如何初步分析Blog變慢的原因？</title>
	<description><![CDATA[
			 我的Blog的顯示突然變慢了，如何分析變慢的原因？到底是那個外部連結造成速度出狀況？ 如果您使用的瀏覽器是FireFox的話，恭喜您，直接下載FireBug、使用它來偵查是最簡單的方法了。  在重新載入網頁後，按F12開 啟FireBug視窗，再按FireBug第二列功能表上的Net， 就會顯示網頁所有被載入的物件，右邊就標示有該物件的載入時間，直接看灰色長度也可大致明暸載入時間最久的是那些東東。如下圖中可看出紅框裡的 MyBlogLog的圖檔大約都要花到４、５秒的時間，因此我就把顯示的列數由原來的５列改成２列，以縮短載入圖檔的時間。    另外，在每個物件最左側的＋號展開以顯示此物件的Request與Response訊息，例如展開表示有錯誤的紅色物件來觀察：    FireBug還有許多強大的功能，待日後再行報告。下載：FireBug
		]]>
	</description>
	<content:encoded><![CDATA[
			 <p>我的Blog的顯示突然變慢了，如何分析變慢的原因？到底是那個外部連結造成速度出狀況？ 如果您使用的瀏覽器是FireFox的話，恭喜您，直接下載<a href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">FireBug</a>、使用它來偵查是最簡單的方法了。</p> <br /> 在重新載入網頁後，按<span style="font-weight: bold">F12</span>開 啟FireBug視窗，再按FireBug第二列功能表上的<span style="font-weight: bold">Net</span>， 就會顯示網頁所有被載入的物件，右邊就標示有該物件的載入時間，直接看灰色長度也可大致明暸載入時間最久的是那些東東。如下圖中可看出紅框裡的 MyBlogLog的圖檔大約都要花到４、５秒的時間，因此我就把顯示的列數由原來的５列改成２列，以縮短載入圖檔的時間。<br /> <br /> <img style="width: 1023px; height: 564px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11278796/0.jpg" alt="FireBug 1" /><br /> <br /> 另外，在每個物件最左側的＋號展開以顯示此物件的Request與Response訊息，例如展開表示有錯誤的紅色物件來觀察：<br /> <br /> <img style="width: 499px; height: 201px" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11278796/6.jpg" alt="AdSense 2" /><br /> <br /> FireBug還有許多強大的功能，待日後再行報告。<br /><br />下載：<a href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">FireBug</a>
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3087705.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3087705.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sat, 28 Apr 2007 23:22:10 +0800</pubDate>
</item>
<item>
	<title>[Blog] 在文章底部隨機顯示相關文章的功能說明</title>
	<description><![CDATA[
			 前幾個星期把隨機顯示文章的 功能加到Blog裡，雖然功能不盡如人意，仍有不少缺失需要修改，不過既然有網友問起，我就簡略的說明作法吧。 除非自己架站或BSP有提供取用文章清單的功能，否則想要在文章裡顯示相關文章是沒有直接有效的方法。因此我使用了最簡便（偷懶？）的作法：由美味書籤 (del.icio.us)的JSON Post Feeds取回。只要用類似下面的指令就能由美味書籤 取回需要的書籤：     http: //del.icio.us/feeds/json/用戶名稱 取回用 戶的書籤清單   http: //del.icio.us/feeds/json/用戶名稱/標 籤 取回用 戶的某特定標籤的書籤清單， 可以用加號指定數個標籤   http: //del.icio.us/feeds/json/用戶名稱/標籤?count=幾個書籤 只取回 指定個數的特定標籤的書籤清單     取回的書籤清單會被存放於Delicious.posts陣列裡，再寫個迴圈去解析這個陣列就可以了，而且del.icio.us已經把範 例程式都寫好了，依據自己的需求再做點小修改（加上亂數處理等）就大功告成了。  程式寫完後需要把自己的文章發佈到美味書籤，我是以_blog_開頭來表示自己文章的標籤，取清單時就用此類標籤來取；自己文章的標籤名稱和收錄他人書籤 的名稱區別出來，才不會取到別人的文章。  目前程式尚有下列問題： 有時會取到相同的文章，重覆狀況尚待處理有時會取到超過大小的亂數，導致取到的不足５篇原本構想是依目前文章的分類以分別取出各分類的隨機文章，但動態叫用JavaScript的寫法尚未測試出來 如果您只是想直接使用此隨機文章的功能，只要把下列指定貼入自由欄位裡即可；用戶名稱填入您的del.icio.us的帳號，標籤則填入要顯示的標籤準名 稱，若不指定標籤的話就會取所有的書籤；count=30也可自行放大或變小要抓取的書籤數量：     &nbsp;&lt;script src=&quot;http: //del.icio.us/feeds/json/用戶名稱/標籤?count=30&quot;&gt;&lt;/script&gt; &lt;script src=&quot;http://emisjerry.googlepages.com/related_posts.js&quot;&gt;&lt;/script&gt;     要檢視源碼請按：http://emisjerry.googlepages.com/related_posts.js  最後聲明：程式會持續修改，您有任何意見也歡迎提出。
		]]>
	</description>
	<content:encoded><![CDATA[
			 <p>前幾個星期把<span style="font-weight: bold">隨機顯示文章</span>的 功能加到Blog裡，雖然功能不盡如人意，仍有不少缺失需要修改，不過既然有網友問起，我就簡略的說明作法吧。</p> 除非自己架站或BSP有提供取用文章清單的功能，否則想要在文章裡顯示相關文章是沒有直接有效的方法。因此我使用了最簡便（偷懶？）的作法：由<a href="http://del.icio.us" target="_blank">美味書籤 (del.icio.us)</a>的<a href="http://del.icio.us/help/json/posts" target="_blank">JSON Post Feeds</a>取回。只要用類似下面的指令就能由美味書籤 取回需要的書籤：<br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #999999; width: 100%"> <tbody> <tr> <td style="background-color: #ccffff">http: //del.icio.us/feeds/json/用戶名稱</td> <td style="background-color: #ccffff">取回用 戶的書籤清單</td> </tr> <tr> <td style="background-color: #ccffff">http: //del.icio.us/feeds/json/用戶名稱/<span style="font-weight: bold">標 籤</span></td> <td style="background-color: #ccffff">取回用 戶的某特定<span style="font-weight: bold">標籤</span>的書籤清單， 可以用加號指定數個標籤</td> </tr> <tr> <td style="background-color: #ccffff">http: //del.icio.us/feeds/json/用戶名稱/標籤?count=幾個書籤</td> <td style="background-color: #ccffff">只取回 指定個數的特定標籤的書籤清單</td> </tr> </tbody> </table> <br /> 取回的書籤清單會被存放於Delicious.posts陣列裡，再寫個迴圈去解析這個陣列就可以了，而且del.icio.us已經把<a href="http://del.icio.us/help/json/posts" target="_blank">範 例程式</a>都寫好了，依據自己的需求再做點小修改（加上亂數處理等）就大功告成了。<br /> <br /> 程式寫完後需要把自己的文章發佈到美味書籤，我是以_blog_開頭來表示自己文章的標籤，取清單時就用此類標籤來取；自己文章的標籤名稱和收錄他人書籤 的名稱區別出來，才不會取到別人的文章。<br /> <br /> 目前程式尚有下列問題：<br /> <ul><li>有時會取到相同的文章，重覆狀況尚待處理</li><li>有時會取到超過大小的亂數，導致取到的不足５篇</li><li>原本構想是依目前文章的分類以分別取出各分類的隨機文章，但動態叫用JavaScript的寫法尚未測試出來</li></ul> 如果您只是想直接使用此隨機文章的功能，只要把下列指定貼入自由欄位裡即可；用戶名稱填入您的del.icio.us的帳號，標籤則填入要顯示的標籤準名 稱，若不指定標籤的話就會取所有的書籤；count=30也可自行放大或變小要抓取的書籤數量：<br /> <br /> <table border="0" cellspacing="1" cellpadding="2" style="text-align: left; background-color: #999999; width: 100%"> <tbody> <tr> <td style="background-color: #ccffff">&nbsp;<span style="font-family: Arial">&lt;script src=&quot;http: //del.icio.us/feeds/json/用戶名稱/標籤?count=30&quot;&gt;&lt;/script&gt;</span><br /> <span style="font-family: Arial">&lt;script src=&quot;http://emisjerry.googlepages.com/related_posts.js&quot;&gt;&lt;/script&gt;</span></td> </tr> </tbody> </table> <br /> 要檢視源碼請按：<a href="http://emisjerry.googlepages.com/related_posts.js" target="_blank"><span style="font-family: Arial">http://emisjerry.googlepages.com/related_posts.js</span></a><br /> <br /> 最後聲明：程式會持續修改，您有任何意見也歡迎提出。
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3087697.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3087697.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sat, 28 Apr 2007 23:19:55 +0800</pubDate>
</item>
<item>
	<title>[創作] 個人網頁全都連：Show Yourself Generator V1.0</title>
	<description><![CDATA[
			 從Dustin Bachrach的網站看到了一個功能：把自己相關的常用網站整合成一個表格，使之能被複製到自己的Blog裡公佈。這個功能似乎滿 有用的，但作者的網頁裡卻只有美國常見的網路服務而已，為了方便自己使用，我依作者的概念自行撰寫了新的版本，並發表在網頁Show Yourself Generator裡。使用的步驟說明如下： 首先在綠框裡輸入你的常用使用者代碼，再按下Replace， 則以下所有網站的使用者代碼都會被取代把不需要或未使用的網站勾選拿掉，此時示範最後結果的中間表格會立即變動，以反應出最後呈現的樣式若網站使用的代碼不同時，可自行修改，修改且將游標移出輸入欄位後，示範表格也會馬上變動依Blog整體色系在最右側表格調整對應顏色，調整後按Change Color即可讓示範表格變動最後按Generate HTML以產生HTML內容，將游標移入底部的文字框按Ctrl+C以將內容複製到剪貼簿 HTML內容加入Blog的方法可參考下列網頁，參考網頁裡貼入文字框的內容換成上述步驟5的內容即可： Xuite日誌：參考 http://blog.xuite.net/emisjerry/tech/11157208樂多日誌：參考 http://blog.xuite.net/emisjerry/tech/11158237 若您有使用MyShare書籤的話，請注意它不使用使用者代碼，要先查出代號才能連結正確。 如果您在使用後有任何意見或建議，請在此留言。   
		]]>
	</description>
	<content:encoded><![CDATA[
			 <p>從<a href="http://www.dbachrach.com/showyourself/">Dustin Bachrach</a>的網站看到了一個功能：把自己相關的常用網站整合成一個表格，使之能被複製到自己的Blog裡公佈。這個功能似乎滿 有用的，但作者的網頁裡卻只有美國常見的網路服務而已，為了方便自己使用，我依作者的概念自行撰寫了新的版本，並發表在網頁<a href="http://emisjerry.googlepages.com/showYourself_gen.html" target="_blank">Show Yourself Generator</a>裡。使用的步驟說明如下：</p> <ol><li>首先在綠框裡輸入你的常用使用者代碼，再按下<span style="font-weight: bold">Replace</span>， 則以下所有網站的使用者代碼都會被取代</li><li>把不需要或未使用的網站勾選拿掉，此時示範最後結果的中間表格會立即變動，以反應出最後呈現的樣式</li><li>若網站使用的代碼不同時，可自行修改，修改且將游標移出輸入欄位後，示範表格也會馬上變動</li><li>依Blog整體色系在最右側表格調整對應顏色，調整後按<span style="font-weight: bold">Change Color</span>即可讓示範表格變動</li><li>最後按<span style="font-weight: bold">Generate HTML</span>以產生HTML內容，將游標移入底部的文字框按Ctrl+C以將內容複製到剪貼簿</li></ol> HTML內容加入Blog的方法可參考下列網頁，參考網頁裡貼入文字框的內容換成上述步驟5的內容即可：<br /> <ol><li>Xuite日誌：參考 <a href="http://blog.xuite.net/emisjerry/tech/11157208" target="_blank">http://blog.xuite.net/emisjerry/tech/11157208</a></li><li>樂多日誌：參考 <a href="http://blog.xuite.net/emisjerry/tech/11158237" target="_blank">http://blog.xuite.net/emisjerry/tech/11158237</a></li></ol> 若您有使用MyShare書籤的話，請注意它不使用使用者代碼，要先查出代號才能連結正確。<br /> 如果您在使用後有任何意見或建議，請在此留言。<br /> <br /> <img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11176196/6.jpg" alt="Show Yourself Generator" /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3036051.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3036051.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sat, 21 Apr 2007 22:17:40 +0800</pubDate>
</item>
<item>
	<title>完全圖解在文章裡顯示Google AdSense廣告的步驟(樂多)</title>
	<description><![CDATA[
			 似乎先前的說明太過簡略了，重新製作Step-by-step的說明，希望能方便的讓有興趣的讀者們循序完成。本篇是樂多的版本。  1. 先把要複製的指令準備好。注意 id 的名稱必須為divAdSenseContentSctipt，大小寫要一模一樣。   &lt;div id=&quot;divAdSenseContentScript&quot; style=&quot;display:none&quot;&gt;  // 以下為AdSense for Content的內容  &lt;/div&gt; &lt;script src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;&lt;/script&gt;     以下是我的指令內容：                                                      src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;                &lt;div id=&quot;divAdSenseContentScript&quot; style=&quot;display:none&quot;&gt;  &lt;script type=&quot;text/javascript&quot;&gt;&lt;!--  google_ad_client = &quot;pub-66066147********&quot;; &nbsp; // 這裡要換成你自己的代碼  google_ad_width = 728;  google_ad_height = 110;  google_ad_format = &quot;728x90_as&quot;;  google_ad_type = &quot;text_image&quot;;  //2007-04-16: Roodo********&nbsp; bottom  google_ad_channel = &quot;595*******&quot;; &nbsp; // 這裡要換成你自己的代碼  //--&gt;  &lt;/script&gt;  &lt;script type=&quot;text/javascript&quot;  &nbsp; src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;  &lt;/script&gt;  &lt;/div&gt; &lt;script src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;&lt;/script&gt;                 2. 進入管理網頁後執行「Blog基本管理」。      3. 把步驟1準備好的指令複製到說明框裡，再按網頁底部的「儲存」。      4. 進入文章網頁後，AdSense廣告就會出現了。      
		]]>
	</description>
	<content:encoded><![CDATA[
			 <p>似乎先前的說明太過簡略了，重新製作Step-by-step的說明，希望能方便的讓有興趣的讀者們循序完成。本篇是樂多的版本。</p>  1. 先把要複製的指令準備好。注意<span style="font-weight: bold"> id </span>的名稱必須為divAdSenseContentSctipt，大小寫要一模一樣。<br /> <br /> <div id="divAdSenseContentScript"> &lt;div id=&quot;divAdSenseContentScript&quot; style=&quot;display:none&quot;&gt;<br />  // 以下為AdSense for Content的內容<br />  &lt;/div&gt;<br /> &lt;script src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;&lt;/script&gt;<br />  </div> <br />  以下是我的指令內容：<br />  <table border="1" cellspacing="2" cellpadding="2" style="text-align: left; background-color: #999999; width: 90%">    <tbody>      <tr>        <td style="background-color: #ffffcc">        <div id="divAdSenseContentScript" style="display: none"><br />        <!--<br /> google_ad_client = "pub-66066147<span style="font-weight: bold; color: rgb(255, 0, 0);">********</span>";   <span style="color: rgb(0, 153, 0);">// 這裡要換成你自己的代碼</span><br /> google_ad_width = 728;<br /> google_ad_height = 110;<br /> google_ad_format = "728x90_as";<br /> google_ad_type = "text_image";<br /> //2007-04-16: Roodo<span style="color: rgb(255, 0, 0);">********</span>  bottom<br /> google_ad_channel = "595<span style="color: rgb(255, 0, 0);">*******</span>";  <span style="color: rgb(0, 153, 0);"> // 這裡要換成你自己的代碼</span><br /> //--><br />       <br />        <br />   src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;<br />       <br />        </div> &lt;div id=&quot;divAdSenseContentScript&quot; style=&quot;display:none&quot;&gt;<br />  &lt;script type=&quot;text/javascript&quot;&gt;&lt;!--<br />  google_ad_client = &quot;pub-66066147<span style="font-weight: bold; color: #ff0000">********</span>&quot;; &nbsp; <span style="color: #009900">// 這裡要換成你自己的代碼</span><br />  google_ad_width = 728;<br />  google_ad_height = 110;<br />  google_ad_format = &quot;728x90_as&quot;;<br />  google_ad_type = &quot;text_image&quot;;<br />  //2007-04-16: Roodo<span style="color: #ff0000">********</span>&nbsp; bottom<br />  google_ad_channel = &quot;595<span style="color: #ff0000">*******</span>&quot;; &nbsp;<span style="color: #009900"> // 這裡要換成你自己的代碼</span><br />  //--&gt;<br />  &lt;/script&gt;<br />  &lt;script type=&quot;text/javascript&quot;<br />  &nbsp; src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;<br />  &lt;/script&gt;<br />  &lt;/div&gt;<br /> &lt;script src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;&lt;/script&gt;</td>      </tr>    </tbody> </table>  <br />  <br />  2. 進入管理網頁後執行「<span style="font-weight: bold">Blog基本管理</span>」。<span style="text-decoration: line-through"><br />  <img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11158605/0.jpg" alt="ADSense 1" /><br />  </span><br />  3. 把步驟1準備好的指令複製到<span style="font-weight: bold">說明</span>框裡，再按網頁底部的「<span style="font-weight: bold">儲存</span>」。<br />  <img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11158605/1.jpg" alt="AdSense 2" /><br />  <br />  4. 進入文章網頁後，AdSense廣告就會出現了。<br /> <br /> <img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11158605/2.jpg" alt="AdSense 3" /><br />  <br />  
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3032739.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3032739.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Fri, 20 Apr 2007 23:55:00 +0800</pubDate>
</item>
<item>
	<title>完全圖解在文章裡顯示Google AdSense廣告的步驟(Xuite)</title>
	<description><![CDATA[
			 似乎先前的說明太過簡略了，重新製作Step-by-step的說明，希望能方便的讓有興趣的讀者們循序完成。本篇是Xuite的版本。  1. 進入Xuite的管理網頁，按自由欄位設定。 2. 按+新增欄位   3. 輸入欄位名稱，再把指令複製到本文框裡。注意id的名稱必須為divAdSenseContentSctipt，大小寫要一模一樣。輸入完畢後按確認。  &lt;div id=&quot;divAdSenseContentScript&quot; style=&quot;display:none&quot;&gt; // 以下為AdSense for Content的內容 &lt;/div&gt;&lt;script src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;&lt;/script&gt;  以下是我的指令內容：    &lt;div id=&quot;divAdSenseContentScript&quot; style=&quot;display:none&quot;&gt; &lt;script type=&quot;text/javascript&quot;&gt;&lt;!-- google_ad_client = &quot;pub-66066147********&quot;; &nbsp; // 這裡要換成你自己的代碼 google_ad_width = 728; google_ad_height = 110; google_ad_format = &quot;728x90_as&quot;; google_ad_type = &quot;text_image&quot;; //2007-04-16: Xuite********&nbsp; bottom google_ad_channel = &quot;595*******&quot;; &nbsp; // 這裡要換成你自己的代碼 //--&gt; &lt;/script&gt; &lt;script type=&quot;text/javascript&quot; &nbsp; src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt; &lt;/script&gt; &lt;/div&gt;&lt;script src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;&lt;/script&gt;       4. 按確認送出，將此自由欄位儲存起來。   5. 進入管理網頁裡的版面編排，把新加入的自由欄位拖到左側，使之能顯示在文章網頁。    6. 按確認送出。    7. 回到文章網頁後，AdSense廣告就會出現了。  yntaxHighlighter.HighlightAll('code');  
		]]>
	</description>
	<content:encoded><![CDATA[
			 <p>似乎先前的說明太過簡略了，重新製作Step-by-step的說明，希望能方便的讓有興趣的讀者們循序完成。本篇是Xuite的版本。</p> <br /> 1. 進入Xuite的管理網頁，按自由欄位設定。<br /> 2. 按<span style="color: #ff0000">+</span>新增欄位<br /> <img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11156747/0.jpg" alt="" /><img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11156747/1.jpg" alt="" /><br /> <br /> 3. 輸入欄位名稱，再把指令複製到本文框裡。注意id的名稱必須為divAdSenseContentSctipt，大小寫要一模一樣。輸入完畢後按確認。<br /> <br /> &lt;div id=&quot;divAdSenseContentScript&quot; style=&quot;display:none&quot;&gt;<br /> // 以下為AdSense for Content的內容<br /> &lt;/div&gt;<br />&lt;script src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;&lt;/script&gt;<br /> <br /> 以下是我的指令內容：<br /> <table border="1" cellspacing="2" cellpadding="2" style="text-align: left; background-color: #999999; width: 90%"> <tbody> <tr> <td style="background-color: #ffffcc">&lt;div id=&quot;divAdSenseContentScript&quot; style=&quot;display:none&quot;&gt;<br /> &lt;script type=&quot;text/javascript&quot;&gt;&lt;!--<br /> google_ad_client = &quot;pub-66066147<span style="font-weight: bold; color: #ff0000">********</span>&quot;; &nbsp; <span style="color: #009900">// 這裡要換成你自己的代碼</span><br /> google_ad_width = 728;<br /> google_ad_height = 110;<br /> google_ad_format = &quot;728x90_as&quot;;<br /> google_ad_type = &quot;text_image&quot;;<br /> //2007-04-16: Xuite<span style="color: #ff0000">********</span>&nbsp; bottom<br /> google_ad_channel = &quot;595<span style="color: #ff0000">*******</span>&quot;; &nbsp;<span style="color: #009900"> // 這裡要換成你自己的代碼</span><br /> //--&gt;<br /> &lt;/script&gt;<br /> &lt;script type=&quot;text/javascript&quot;<br /> &nbsp; src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;<br /> &lt;/script&gt;<br /> &lt;/div&gt;<br />&lt;script src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;&lt;/script&gt;</td> </tr> </tbody> </table> <br /> <img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11156747/2.jpg" alt="" /><br /> <br /> 4. 按確認送出，將此自由欄位儲存起來。<span style="text-decoration: line-through"><br /> <br /> </span><img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11156747/3.jpg" alt="" /><br /> 5. 進入管理網頁裡的版面編排，把新加入的自由欄位拖到左側，使之能顯示在文章網頁。<br /> <br /> <img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11156747/4.jpg" alt="" /><br /> <br /> 6. 按確認送出。<br /> <br /> <img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11156747/5.jpg" alt="" /><br /> <br /> 7. 回到文章網頁後，AdSense廣告就會出現了。<br /> <img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11156747/12.jpg" alt="" /><br /> yntaxHighlighter.HighlightAll('code'); <br /> 
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3032735.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3032735.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Fri, 20 Apr 2007 23:54:14 +0800</pubDate>
</item>
<item>
	<title>不用再一篇一篇剪貼了：在文章內文動態產生google AdSense的廣告</title>
	<description><![CDATA[
			
不管訪客人數多寡，大家都趕流行似的紛紛把Google AdSense給掛到Blog上。我也不例外，除了體驗
Google
AdSense到底是什麼玩意，也可體會吸引人氣的一些技巧。但若您和我一樣，都是把Blog放在BSP上，要如何簡單又省事的加上AdSense的腳
本，想必是傷透腦筋吧。放在側邊的自由欄位裡是很簡單，但若想要放在表頭或每篇文章的內文裡，可就要大費周章了。剛巧由超
苦的Ga的Blog裡看到這篇[JavaScript]
把Google Adsense放到Header Banner提供了極佳的想法，因此改寫了程式，使要
興趣的讀者們用最少的指令就能解決這個動態產生AdSense廣告的問題。
讀者們只要依下列格式把指令加到自由欄位裡即可運作：
&lt;div id=&quot;divGoogleAdSenseLinkScript&quot;
style=&quot;display:none&quot;&gt;
//
//!!! 這裡填上AdSense for Contents Link產生給你的腳本內容
//
&lt;/div&gt;
&lt;div id=&quot;divGoogleAdSenseContentScript&quot;
style=&quot;display:none&quot;&gt;
//
//!!! 這裡填上AdSense for Contents產生給你的腳本內容
//
&lt;/div&gt;
&lt;script
src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;
&lt;/script&gt;


google_adsense.js 請由http://emisjerry.googlepages.com/google_adsense.js下
載檢視。如果要變更顯示的位置的話，只要修改67行 (Xuite)或69行(樂多)到別的Tag處即可。

如果在使用上仍有問題的話，請留言給我。




 dp.SyntaxHighlighter.HighlightAll('code'); 

		]]>
	</description>
	<content:encoded><![CDATA[
			
<p>不管訪客人數多寡，大家都趕流行似的紛紛把<a href="https://www.google.com/adsense/support/?sourceid=aso&subid=ww-ww-et-asui&medium=link" target="_blank">Google AdSense</a>給掛到Blog上。我也不例外，除了體驗
Google
AdSense到底是什麼玩意，也可體會吸引人氣的一些技巧。但若您和我一樣，都是把Blog放在BSP上，要如何簡單又省事的加上AdSense的腳
本，想必是傷透腦筋吧。放在側邊的自由欄位裡是很簡單，但若想要放在表頭或每篇文章的內文裡，可就要大費周章了。剛巧由<a href="http://blog.xuite.net/misgarlic/weblogic" target="_blank">超
苦的Ga</a>的Blog裡看到這篇<a href="http://blog.xuite.net/misgarlic/weblogic/10337345" target="_blank"><span class="titlename">[JavaScript]
把Google Adsense放到Header Banner</span></a>提供了極佳的想法，因此改寫了程式，使要
興趣的讀者們用最少的指令就能解決這個動態產生AdSense廣告的問題。<input type="hidden" id="mytag" value="AdSense" /></p>
讀者們只要依下列格式把指令加到自由欄位裡即可運作：<br />
<textarea name="code" class="javascript" rows="10" cols="70">&lt;div id=&quot;divGoogleAdSenseLinkScript&quot;
style=&quot;display:none&quot;&gt;
//
//!!! 這裡填上AdSense for Contents Link產生給你的腳本內容
//
&lt;/div&gt;
&lt;div id=&quot;divGoogleAdSenseContentScript&quot;
style=&quot;display:none&quot;&gt;
//
//!!! 這裡填上AdSense for Contents產生給你的腳本內容
//
&lt;/div&gt;
&lt;script
src=&quot;http://emisjerry.googlepages.com/google_adsense.js&quot;&gt;
&lt;/script&gt;
</textarea>
<br />
google_adsense.js 請由<a href="http://emisjerry.googlepages.com/google_adsense.js" target="_blank">http://emisjerry.googlepages.com/google_adsense.js</a>下
載檢視。如果要變更顯示的位置的話，只要修改67行 (Xuite)或69行(樂多)到別的Tag處即可。
<br />
如果在使用上仍有問題的話，請留言給我。
<script language="javascript"
 src="http://emisjerry.googlepages.com/shCore.js"></script>

<script src="http://emisjerry.googlepages.com/shBrushJScript.js" language="javascript"></script>

<script> dp.SyntaxHighlighter.HighlightAll('code'); </script>

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/3018365.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/3018365.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/3018365.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Mon, 16 Apr 2007 22:37:40 +0800</pubDate>
</item>
<item>
	<title>把MyBlogLog的頭像圖形(Avatar)顯示在訪客回應裡</title>
	<description><![CDATA[
			
由PigTailLeo
豬尾巴攪和攪和部落格裡看到讓 Blogger.com 的留言回覆裡顯示 MyBlogLog 的大頭貼，
文章中說明了如何在訪客回應裡加上訪客的MyBlogLog頭像圖形(Avatar)，引起了我一探究竟的興趣，因
此花了些時間把這個功能移植到Xuite。雖然我的訪客大都屬於潛水型的，回應比我的文章還少，因此這個功能或許對我用處不大，但希望對讀者們有用。


其實要取到MyBlogLog頭像是很簡單的，因為MyBlogLog已經寫好功能讓我們使用，只要把註冊在MyBlogLog裡的網址傳進去，就能取回
頭像圖檔。方法如下：




http:
//www.mybloglog.com/buzz/co_redir.php?href=訪客的網址
轉址到
MyBlogLog的會員網頁(Profile)；不知為何測試時都轉到訪客的首頁...?


http://pub.mybloglog.com/coiserv.php?href=訪
客的網址
取回訪
客的頭像圖形




Xuite的訪客回應網址是&lt;a
 class='content02'&gt;，因此只要找到節點再用appendChild把上述連結加進去就完成了。

一般使用者只要在自由欄位裡加入以下指令即可使用：



&lt;script
src=&quot;http://emisjerry.googlepages.com/mybloglog_avatar.js&quot;&gt;&lt;/script&gt;





設計人員請由此閱讀源碼：http://emisjerry.googlepages.com/mybloglog_avatar.js

參考：

讓 Blogger.com 的留言回覆裡顯示 MyBlogLog 的大頭貼How To Make MyBlogLog Members Photos Appear
Along With Their Comments
##

		]]>
	</description>
	<content:encoded><![CDATA[
			
<p><img vspace="10" hspace="20" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/11010317/0.jpg" alt="MyBlogLog Avatar20" style="float: left; width: 408px; height: 240px;" />由<a href="http://pigtailleo.blogspot.com/index.html" target="_blank">PigTailLeo
豬尾巴攪和攪和</a>部落格裡看到<a target="_blank" href="http://pigtailleo.blogspot.com/2007/04/bloggercom-mybloglog.html">讓 Blogger.com 的留言回覆裡顯示 MyBlogLog 的大頭貼</a>，
文章中說明了如何在訪客回應裡加上訪客的<a target="_blank" href="http://www.mybloglog.com">MyBlogLog</a>頭像圖形(Avatar)，引起了我一探究竟的興趣，因
此花了些時間把這個功能移植到Xuite。雖然我的訪客大都屬於潛水型的，回應比我的文章還少，因此這個功能或許對我用處不大，但希望對讀者們有用。
<input type="hidden" value="MyBlogLog" id="mytag" />
</p>
其實要取到MyBlogLog頭像是很簡單的，因為MyBlogLog已經寫好功能讓我們使用，只要把註冊在MyBlogLog裡的網址傳進去，就能取回
頭像圖檔。方法如下：<br />
<br />
<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(153, 153, 153); width: 100%;">
<tbody>
<tr>
<td style="background-color: rgb(204, 255, 255);">http:
//www.mybloglog.com/buzz/co_redir.php?href=訪客的網址</td>
<td style="background-color: rgb(204, 255, 255);">轉址到
MyBlogLog的會員網頁(Profile)；不知為何測試時都轉到訪客的首頁...?</td>
</tr>
<tr>
<td style="background-color: rgb(204, 255, 255);">http://pub.mybloglog.com/coiserv.php?href=訪
客的網址</td>
<td style="background-color: rgb(204, 255, 255);">取回訪
客的頭像圖形</td>
</tr>
</tbody>
</table>
<br />
Xuite的訪客回應網址是&lt;a
 class='content02'&gt;，因此只要找到節點再用appendChild把上述連結加進去就完成了。<br />
<br />
一般使用者只要在自由欄位裡加入以下指令即可使用：<br />
<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(153, 153, 153); width: 100%;">
<tbody>
<tr>
<td style="background-color: rgb(204, 255, 255);"><span style="font-family: Courier New;">&lt;script
src=&quot;http://emisjerry.googlepages.com/mybloglog_avatar.js&quot;&gt;&lt;/script&gt;</span><br />
</td>
</tr>
</tbody>
</table>
<br />
設計人員請由此閱讀源碼：<span style="font-family: Courier New;"><a target="_blank" href="http://emisjerry.googlepages.com/mybloglog_avatar.js">http://emisjerry.googlepages.com/mybloglog_avatar.js</a><br />
<br />
參考：<br />
</span>
<ul><li><a target="_blank" href="http://pigtailleo.blogspot.com/2007/04/bloggercom-mybloglog.html">讓 Blogger.com 的留言回覆裡顯示 MyBlogLog 的大頭貼</a></li><li><a target="_blank" href="http://www.harpzon.com/articles/74/1/How-To-Make-MyBlogLog-Members-Photos-Appear-Along-With-Their-Comments/Page1.html">How To Make MyBlogLog Members Photos Appear
Along With Their Comments</a></li></ul>
##

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2993107.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2993107.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2993107.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Thu, 12 Apr 2007 00:23:30 +0800</pubDate>
</item>
<item>
	<title>超優的Free Icon Editor: IcoFX</title>
	<description><![CDATA[
			
因為今天發現了一套超優且為Freeware的圖示編修程式：IcoFX-The
Free Icon
Editor，因此在測試的過程中，順便把網頁的最愛圖示(favicon.ico)給換掉，也讓讀者在現行多頁籤的環境裡，能更容易地辨識本網站。


如果您有自己的網站，那麼只要把16X16、16色且名為favicon.ico的圖示檔放到網站的文件根目錄裡，那麼瀏覽器在顯示您的網站時就能顯示您自訂的圖示。如果您使用的是
Xuite、樂多等部落格，根據我的實驗則只能在FireFox裡正常的顯示自訂圖示，IE不管我如何修改，始終是無法顯示。

根據規格，我們必須在網頁的&lt;head&gt;區裡加入下面的Tag：



&lt;link rel=&quot;SHORTCUT
ICON&quot; href=&quot;http://上傳的圖示檔路徑/上傳的圖示檔名.ico&quot;/&gt;




樂多可以設定在它的【Blog基本設定→說明欄位】裡，產生出來的指令就會被包含在&lt;head&gt;區。但
Xuite沒有地方可以讓指令被放置在&lt;head&gt;區，不過，只要把指令放到自由欄位裡，竟然也能顯示出來。還有，如果上傳
的是別的格式的圖形檔（如GIF或JPG檔；不管是Xuite或樂多，都無法上傳ICO格式的圖檔）在FireFox裡也都能顯示，這似乎是
FireFox的特異功能。

我製作圖示的步驟略述如下：
啟動IcoFX，執行功能表上的【File→New】，指定新圖形的顏色為16色，大小為自訂的80x80在OpenOffice.org的Writer裡輸入48級的「簡」字，變更為正黑體，此時也可變更文字顏色與背景顏色切回IcoFX，選【File→Capture...】，此功能可以讓我指定一個大小80x80的區域做螢幕擷取回到Writer畫面，把螢幕擷取的方框對準步驟2輸入的文字，對準後按左鈕對抓回來的80x80圖形做編修，例如加底色或加圓形、加符號等調整完畢後，按圖片區的第二個按鈕 Insert New Image，以依據現有圖形產生第二個16x16的圖示，此時
【Create the new image from the selected image:】 必須要打勾再把新產生出的16x16圖形放大顯示比例再細部修改
整個調整完畢後上傳到部落格，再把&lt;link&gt;加入，如此應該就能在FireFox裡顯示自訂圖示了。IcoFX的各項功能
與特效頗為豐富且齊備，s也能匯入與匯出別的檔案格式，再加上又是自由軟體，推薦大家使用。

另外，網路上也有提供製作最愛圖示服務的網站：http://www.htmlkit.com/services/favicon，它同時能產生動態的圖
示展示，也值得一試。

動態圖示的指令：



&lt;link rel=&quot;SHORTCUT
ICON&quot; href=&quot;http://上傳的圖示檔路徑/上傳的圖示檔名.ico&quot;/&gt;
&lt;link rel=&quot;icon&quot; href=&quot;http://上傳的圖示檔路徑/animated_favicon1.gif&quot;
type=&quot;image/gif&quot; /&gt;



下載：IcoFX-The
Free Icon
Editor
##

		]]>
	</description>
	<content:encoded><![CDATA[
			
<p><img vspace="10" hspace="20" style="width: 451px; height: 359px; float: left;" alt="IcoFX Image" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10947763/0.jpg" />因為今天發現了一套超優且為Freeware的圖示編修程式：<a href="http://icofx.xhost.ro/" target="_blank">IcoFX</a><a href="http://icofx.xhost.ro/" target="_blank">-The
Free Icon
Editor</a>，因此在測試的過程中，順便把網頁的最愛圖示(favicon.ico)給換掉，也讓讀者在現行多頁籤的環境裡，能更容易地辨識本網站。
<input type="hidden" id="mytag" value="IcoFX favicon.ico" />
</p>
如果您有自己的網站，那麼只要把16X16、16色且名為favicon.ico的圖示檔放到網站的文件根目錄裡，那麼瀏覽器在顯示您的網站時就能顯示您自訂的圖示。如果您使用的是
Xuite、樂多等部落格，根據我的實驗則只能在FireFox裡正常的顯示自訂圖示，IE不管我如何修改，始終是無法顯示。<br />
<br />
根據規格，我們必須在網頁的<span style="font-weight: bold;">&lt;head&gt;</span>區裡加入下面的Tag：<br />
<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(153, 153, 153); width: 100%; height: 54px;">
<tbody>
<tr>
<td style="background-color: rgb(255, 255, 204);"><span style="font-family: Courier New;">&lt;link rel=&quot;SHORTCUT
ICON&quot; href=&quot;http://上傳的圖示檔路徑/上傳的圖示檔名.ico&quot;/&gt;</span></td>
</tr>
</tbody>
</table>
<br />
樂多可以設定在它的【Blog基本設定→說明欄位】裡，產生出來的指令就會被包含在&lt;head&gt;區。但
Xuite沒有地方可以讓指令被放置在&lt;head&gt;區，不過，只要把指令放到自由欄位裡，竟然也能顯示出來。還有，如果上傳
的是別的格式的圖形檔（如GIF或JPG檔；不管是Xuite或樂多，都無法上傳ICO格式的圖檔）在FireFox裡也都能顯示，這似乎是
FireFox的特異功能。<br />
<br />
我製作圖示的步驟略述如下：<br />
<ol><li>啟動IcoFX，執行功能表上的【File→New】，指定新圖形的顏色為16色，大小為自訂的80x80</li><li>在OpenOffice.org的Writer裡輸入48級的「簡」字，變更為正黑體，此時也可變更文字顏色與背景顏色</li><li>切回IcoFX，選【File→Capture...】，此功能可以讓我指定一個大小80x80的區域做螢幕擷取</li><li>回到Writer畫面，把螢幕擷取的方框對準步驟2輸入的文字，對準後按左鈕</li><li>對抓回來的80x80圖形做編修，例如加底色或加圓形、加符號等</li><li>調整完畢後，按圖片區的第二個按鈕 Insert New Image，以依據現有圖形產生第二個16x16的圖示，此時
【Create the new image from the selected image:】 必須要打勾</li><li>再把新產生出的16x16圖形放大顯示比例再細部修改</li></ol>
整個調整完畢後上傳到部落格，再把&lt;link&gt;加入，如此應該就能在FireFox裡顯示自訂圖示了。IcoFX的各項功能
與特效頗為豐富且齊備，s也能匯入與匯出別的檔案格式，再加上又是自由軟體，推薦大家使用。<br />
<br />
另外，網路上也有提供製作最愛圖示服務的網站：http://www.htmlkit.com/services/favicon，它同時能產生動態的圖
示展示，也值得一試。<br />
<br />
動態圖示的指令：<br />
<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(153, 153, 153); width: 100%; height: 54px;">
<tbody>
<tr>
<td style="background-color: rgb(255, 255, 204);"><span style="font-family: Courier New;">&lt;link rel=&quot;SHORTCUT
ICON&quot; href=&quot;http://上傳的圖示檔路徑/上傳的圖示檔名.ico&quot;/&gt;<br />
&lt;link rel=&quot;icon&quot; href=&quot;http://</span><span style="font-family: Courier New;">上傳的圖示檔路徑/</span><span style="font-family: Courier New;">animated_favicon1.gif&quot;
type=&quot;image/gif&quot; /&gt;</span></td>
</tr>
</tbody>
</table>
<br />下載：<a href="http://icofx.xhost.ro/" target="_blank">IcoFX</a><a href="http://icofx.xhost.ro/" target="_blank">-The
Free Icon
Editor</a><br /><br />
##

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2970253.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2970253.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2970253.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 08 Apr 2007 00:56:31 +0800</pubDate>
</item>
<item>
	<title>常見的收錄書籤網址寫法之彙總表格 V1.1</title>
	<description><![CDATA[
			

收錄社交書籤時，因為每家書籤系統的網址（專業的說法是Query
String）寫法都不一致，導致每次在網頁裡要使用時都要再去查詢，實在很麻煩。因此我整理了一份表格，將常用的幾個書籤系
統的網址格式彙總起來，使用時就是把每個欄位都連接起來就可以了，當然囉，欄位間的分隔符號＆和要傳入的參數值（用encodeURIComponent
先行編碼）都要自行指定。如果有要訂正或補充的請留言，我會再修訂本表格，使之更臻完備。




  

    

      常
見的書籤系統

      執
行網址

      收
錄網址

      標
題

      描
述

      標
籤名稱

    

    

      
      

      HEMiDEMI黑米書籤

      http://www.hemidemi.com/user_bookmark/new?via=sticker

      url

      title

      description

      tag_string

    

    

      

      MyShare網路書籤

      http://myshare.url.com.tw/index.php?func=newurl&amp;NewsMaster=1

      url

      desc

      contents

      

    

    

      

      Yahoo!分享書籤

      http://tw.myweb2.search.yahoo.com/myresults/bookmarklet?ei=UTF-8

      u

      t

      d

      tag

    

    

      

      del.icio.us美味書籤

      http://del.icio.us/post?

      url

      title

      notes

      tags

    

    

      

      Technotati Bookmark

      http://technorati.com/faves?

      add

      sub

      

      

    

    

      

      FURL Bookmark

      http://furl.net/storeIt.jsp?

      u

      t

      

      

    

    

      

      Digg Bookmark

      http://digg.com/submit?phase=2

      url

      title

      

      

    天天網摘http://www.365key.com/storeit.aspx?utc

  Google書籤http://www.google.com/bookmarks/mark?op=addbkmktitle百度搜藏http://cang.baidu.com/do/add?iuitdcWindows Live Favoriteshttps://favorites.live.com/quickadd.aspx?mkt=zh-twurltitle


2007/04/02 V1.1 修改：加入天天網摘、Google書籤、百度搜藏、Windows Live Favorites2007/04/01 V1.0

##

		]]>
	</description>
	<content:encoded><![CDATA[
			

<p><input type="hidden" value="HEMiDEMi MyShare del.icio.us" id="mytag" />收錄社交書籤時，因為每家書籤系統的網址（專業的說法是<span style="font-weight: bold;">Query
String</span>）寫法都不一致，導致每次在網頁裡要使用時都要再去查詢，實在很麻煩。因此我整理了一份表格，將常用的幾個書籤系
統的網址格式彙總起來，使用時就是把每個欄位都連接起來就可以了，當然囉，欄位間的分隔符號＆和要傳入的參數值（用encodeURIComponent
先行編碼）都要自行指定。如果有要訂正或補充的請留言，我會再修訂本表格，使之更臻完備。</p>


<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(153, 153, 153); width: 100%;">

  <tbody>

    <tr>

      <td style="text-align: center; background-color: rgb(0, 102, 0); color: rgb(153, 255, 255);">常
見的書籤系統</td>

      <td style="text-align: center; background-color: rgb(0, 102, 0); color: rgb(153, 255, 255);">執
行網址</td>

      <td style="text-align: center; background-color: rgb(0, 102, 0); color: rgb(153, 255, 255);">收
錄網址</td>

      <td style="text-align: center; background-color: rgb(0, 102, 0); color: rgb(153, 255, 255);">標
題</td>

      <td style="text-align: center; background-color: rgb(0, 102, 0); color: rgb(153, 255, 255);">描
述</td>

      <td style="text-align: center; background-color: rgb(0, 102, 0); color: rgb(153, 255, 255);">標
籤名稱</td>

    </tr>

    <tr>

      <td style="background-color: rgb(255, 255, 204); text-align: center;"><img src="http://www.hemidemi.com/sticker/addblackcolor_8015.gif" alt="HEMiDEMi" style="width: 80px; height: 15px;" />
      <br />

      <span style="font-weight: bold;">HEMiDEMI黑米書籤</span></td>

      <td style="background-color: rgb(255, 255, 204);">http://www.hemidemi.com/user_bookmark/new?via=sticker</td>

      <td style="background-color: rgb(255, 255, 204);">url</td>

      <td style="background-color: rgb(255, 255, 204);">title</td>

      <td style="background-color: rgb(255, 255, 204);">description</td>

      <td style="background-color: rgb(255, 255, 204);">tag_string</td>

    </tr>

    <tr>

      <td style="background-color: rgb(204, 255, 255); text-align: center;"><img src="http://digest.url.com.tw/images/add2myshare_80x15-1.gif" alt="MyShare" style="width: 80px; height: 15px;" /><br />

      <span style="font-weight: bold;">MyShare網路書籤</span></td>

      <td style="background-color: rgb(204, 255, 255);">http://myshare.url.com.tw/index.php?func=newurl&amp;NewsMaster=1</td>

      <td style="background-color: rgb(204, 255, 255);">url</td>

      <td style="background-color: rgb(204, 255, 255);">desc</td>

      <td style="background-color: rgb(204, 255, 255);">contents</td>

      <td style="background-color: rgb(204, 255, 255);"><br /></td>

    </tr>

    <tr>

      <td style="background-color: rgb(255, 255, 204); text-align: center;"><img src="http://us.i1.yimg.com/us.yimg.com/i/us/sch/el/addtomy.gif" alt="Yahoo!" style="width: 90px; height: 14px;" /><br />

      <span style="font-weight: bold;">Yahoo!分享書籤</span></td>

      <td style="background-color: rgb(255, 255, 204);">http://tw.myweb2.search.yahoo.com/myresults/bookmarklet?ei=UTF-8</td>

      <td style="background-color: rgb(255, 255, 204);">u</td>

      <td style="background-color: rgb(255, 255, 204);">t</td>

      <td style="background-color: rgb(255, 255, 204);">d</td>

      <td style="background-color: rgb(255, 255, 204);">tag</td>

    </tr>

    <tr>

      <td style="background-color: rgb(204, 255, 255); text-align: center;"><img src="http://blog.roodo.com/emisjerry/5507ca4d.png" alt="del.icio.us" style="width: 80px; height: 15px;" /><br />

      <span style="font-weight: bold;">del.icio.us美味書籤</span></td>

      <td style="background-color: rgb(204, 255, 255);">http://del.icio.us/post?</td>

      <td style="background-color: rgb(204, 255, 255);">url</td>

      <td style="background-color: rgb(204, 255, 255);">title</td>

      <td style="background-color: rgb(204, 255, 255);">notes</td>

      <td style="background-color: rgb(204, 255, 255);">tags</td>

    </tr>

    <tr>

      <td style="background-color: rgb(255, 255, 204); text-align: center;"><img src="http://static.technorati.com/pix/fave/btn-fave2.png'" alt="Technorati" /><img src="http://static.technorati.com/pix/fave/btn-fave2.png" alt="Technorati" style="width: 80px; height: 15px;" /><br />

      <span style="font-weight: bold;">Technotati Bookmark</span></td>

      <td style="background-color: rgb(255, 255, 204);">http://technorati.com/faves?</td>

      <td style="background-color: rgb(255, 255, 204);">add</td>

      <td style="background-color: rgb(255, 255, 204);">sub</td>

      <td style="background-color: rgb(255, 255, 204);"><br /></td>

      <td style="background-color: rgb(255, 255, 204);"><br /></td>

    </tr>

    <tr>

      <td style="background-color: rgb(204, 255, 255); text-align: center;"><img src="http://blog.roodo.com/emisjerry/09034406.png" alt="FURL" style="width: 80px; height: 15px;" /><br />

      <span style="font-weight: bold;">FURL Bookmark</span></td>

      <td style="background-color: rgb(204, 255, 255);">http://furl.net/storeIt.jsp?</td>

      <td style="background-color: rgb(204, 255, 255);">u</td>

      <td style="background-color: rgb(204, 255, 255);">t</td>

      <td style="background-color: rgb(204, 255, 255);"><br /></td>

      <td style="background-color: rgb(204, 255, 255);"><br /></td>

    </tr>

    <tr>

      <td style="background-color: rgb(255, 255, 204); text-align: center;"><img src="http://www.digg.com/img/little-digg.gif" alt="Digg" style="width: 40px; height: 40px;" /><br />

      <span style="font-weight: bold;">Digg Bookmark</span></td>

      <td style="background-color: rgb(255, 255, 204);">http://digg.com/submit?phase=2</td>

      <td style="background-color: rgb(255, 255, 204);">url</td>

      <td style="background-color: rgb(255, 255, 204);">title</td>

      <td style="background-color: rgb(255, 255, 204);"><br /></td>

      <td style="background-color: rgb(255, 255, 204);"><br /></td>

    </tr><tr><td style="text-align: center; background-color: rgb(204, 255, 255);"><img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10834132/17.gif" alt="365key" style="width: 80px; height: 15px;" /><br />天天網摘</td><td style="background-color: rgb(204, 255, 255);">http://www.365key.com/storeit.aspx?</td><td style="background-color: rgb(204, 255, 255);">u</td><td style="background-color: rgb(204, 255, 255);">t</td><td style="background-color: rgb(204, 255, 255);">c</td><td style="background-color: rgb(204, 255, 255);"><br /></td></tr>

  <tr><td style="text-align: center; background-color: rgb(255, 255, 204);"><img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10834132/18.gif" alt="Google bookmark" style="width: 114px; height: 27px;" /><br />Google書籤</td><td style="background-color: rgb(255, 255, 204);">http://www.google.com/bookmarks/mark?op=add</td><td style="background-color: rgb(255, 255, 204);">bkmk</td><td style="background-color: rgb(255, 255, 204);">title</td><td style="background-color: rgb(255, 255, 204);"><br /></td><td style="background-color: rgb(255, 255, 204);"><br /></td></tr><tr><td style="text-align: center; background-color: rgb(204, 255, 255);"><img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10834132/19.gif" alt="Baidu" style="width: 137px; height: 46px;" /><br />百度搜藏</td><td style="background-color: rgb(204, 255, 255);">http://cang.baidu.com/do/add?</td><td style="background-color: rgb(204, 255, 255);">iu</td><td style="background-color: rgb(204, 255, 255);">it</td><td style="background-color: rgb(204, 255, 255);">dc</td><td style="background-color: rgb(204, 255, 255);"><br /></td></tr><tr><td style="text-align: center; background-color: rgb(255, 255, 204);"><img src="http://www.live.com/getstarted.aspx" alt="Windows Live" /><img src="http://www.live.com/live/1.900.8.041/img/wl_jewel.gif" alt="Windows Live" style="width: 49px; height: 49px;" /><br />Windows Live Favorites</td><td style="background-color: rgb(255, 255, 204);">https://favorites.live.com/quickadd.aspx?mkt=zh-tw</td><td style="background-color: rgb(255, 255, 204);">url</td><td style="background-color: rgb(255, 255, 204);">title</td><td style="background-color: rgb(255, 255, 204);"><br /></td><td style="background-color: rgb(255, 255, 204);"><br /></td></tr></tbody>
</table>

<br /><span style="font-weight: bold;">2007/04/02 V1.1 修改：加入天天網摘、Google書籤、百度搜藏、Windows Live Favorites</span><br />2007/04/01 V1.0<br /><br />

##

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2939769.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2939769.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2939769.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 01 Apr 2007 21:43:05 +0800</pubDate>
</item>
<item>
	<title>邁向國際化；幫網頁添加翻譯功能：使用Google翻譯與魔匠靈通</title>
	<description><![CDATA[
			


這兩天又把翻譯的功能加進部落格裡。網頁的自動翻譯功能有兩個選擇：

使用Google的Translate功能：http://translate.google.comXuite.net也提供了魔匠靈通的線上翻譯功能





我用來開啟Google翻譯網頁的執行指令如下：



  

    

         
var _iIndex = document.URL.indexOf(&quot;/blog.&quot;);  //
blog.xuite.net or blog.roodo.com

    var _sURL =
document.URL.substring(_iIndex+1);  // 去掉http://

    var
e=(document.charset||document.characterSet);  // 取得網頁的編碼

   
window.open('http://translate.google.com/translate?u='+_sURL+'&amp;hl=zh-TW&amp;langpair='+sLangPair+'&amp;tbb=1&amp;ie='+e);

    

  




langpair 格式是 來源語言 | 目標語言，
例如：



  

    

      zh_TW|zh_CN

      繁體中
文轉成簡體中文

    

    

      zh|en

      中文轉
成英文

    

  


(為何中文會以 zh 來表示？有興趣者請參考：語系/地區碼 zh-TW與zh-CN 中的zh代表什麼?)

可惜目前還找不到中文轉日文的選項。可使用的各式語言轉換清單可由 此處 查到。

Google的翻譯還算快速，但品質卻會讓我大大懷疑真的有老外能看得懂嗎？:-)



Xuite的使用方法則是：



  

    

       
  var _iIndex = document.URL.indexOf(&quot;/blog.&quot;);  //
blog.xuite.net or blog.roodo.com

    var _sURL =
document.URL.substring(_iIndex+1);

    if (sLangPair != &quot;&quot;) {

      _sURL = &quot;http://&quot; + sLangPair
+ &quot;.mojolingo.xuite.net/m2m-0000/&quot;
+ 

       
_sURL;

    } else {

      _sURL = &quot;http://&quot; +
_sURL;

    }

    //console.log(_sURL);

    window.open(_sURL);

      

      

    

  




sLangPair的寫法是 來源語言2目標語言：



  

    

      tc2sc

      繁體中
文轉成簡體中文；在Xuite日誌站長的這篇裡Blog
Q&amp;A - 使用繁簡轉換遇到的問題裡，則是說要用http://gb.blog.xuite.net/m2m-0000/部落格網址這
樣的格式
      

    

    

      tc2en

      繁體中
文轉
成英文

    

    

      tc2jp

      繁體中
文轉
成日文

    

  




不過，由於今天Xuite的翻譯網站似乎有狀況，始終連接不上，因此無法做最後的確認。因為一直無法順利連線，因此我網頁上的已換成Google的翻譯
了。



我的擴充功能源碼：http://emisjerry.googlepages.com/bookmark_buttons.js



##

		]]>
	</description>
	<content:encoded><![CDATA[
			

<img vspace="20" hspace="20" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10819296/0.jpg" alt="Translate" style="width: 514px; height: 93px; float: left;" /><input type="hidden" value="translate.Google.com mojolingo" id="mytag" />
<p>這兩天又把翻譯的功能加進部落格裡。網頁的自動翻譯功能有兩個選擇：</p>

<ol><li>使用Google的Translate功能：<a target="_blank" href="http://translate.google.com">http://translate.google.com</a></li><li>Xuite.net也提供了<a target="_blank" href="http://www.mojolingo.com/">魔匠靈通</a>的線上翻譯功能</li></ol>

<br />

<br />

我用來開啟Google翻譯網頁的執行指令如下：<br />

<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(0, 153, 0); width: 100%;">

  <tbody>

    <tr>

      <td style="background-color: rgb(255, 255, 204);">   
var _iIndex = document.URL.indexOf(&quot;/blog.&quot;);  //
blog.xuite.net or blog.roodo.com<br />

    var _sURL =
document.URL.substring(_iIndex+1);  // 去掉http://<br />

    var
e=(document.charset||document.characterSet);  // 取得網頁的編碼<br />

   
window.open('<span style="font-weight: bold;">http://translate.google.com/translate</span>?u='+_sURL+'&amp;hl=zh-TW&amp;langpair='+sLangPair+'&amp;tbb=1&amp;ie='+e);</td>

    </tr>

  </tbody>
</table>

<br />

langpair 格式是 <span style="font-weight: bold;">來源語言 | 目標語言</span>，
例如：<br />

<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(0, 153, 0); width: 100%;">

  <tbody>

    <tr>

      <td style="background-color: rgb(255, 255, 204); font-family: Courier New;">zh_TW|zh_CN</td>

      <td style="background-color: rgb(255, 255, 204);">繁體中
文轉成簡體中文</td>

    </tr>

    <tr>

      <td style="background-color: rgb(255, 255, 204); font-family: Courier New;">zh|en</td>

      <td style="background-color: rgb(255, 255, 204);">中文轉
成英文</td>

    </tr>

  </tbody>
</table>

<br />(為何中文會以 zh 來表示？有興趣者請參考：<a target="_blank" href="http://blog.xuite.net/emisjerry/tech/337730"><span class="titlename">語系/地區碼 zh-TW與zh-CN 中的zh代表什麼?</span></a>)<br /><br />

可惜目前還找不到中文轉日文的選項。可使用的各式語言轉換清單可由 <a target="_blank" href="http://translate.google.com/translate_buttons?hl=zh-TW">此處 </a>查到。<br />

Google的翻譯還算快速，但品質卻會讓我大大懷疑真的有老外能看得懂嗎？:-)<br />

<br />

Xuite的使用方法則是：<br />

<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(0, 153, 0); width: 100%;">

  <tbody>

    <tr>

      <td style="background-color: rgb(255, 255, 204);"> 
  var _iIndex = document.URL.indexOf(&quot;/blog.&quot;);  //
blog.xuite.net or blog.roodo.com<br />

    var _sURL =
document.URL.substring(_iIndex+1);<br />

    if (sLangPair != &quot;&quot;) {<br />

      _sURL = &quot;<span style="font-weight: bold;">http://</span>&quot; + sLangPair
+ &quot;<span style="font-weight: bold;">.mojolingo.xuite.net/m2m-0000/</span>&quot;
+ <br />

       
_sURL;<br />

    } else {<br />

      _sURL = &quot;http://&quot; +
_sURL;<br />

    }<br />

    //console.log(_sURL);<br />

    window.open(_sURL);<br />

      <br />

      </td>

    </tr>

  </tbody>
</table>

<br />

sLangPair的寫法是 <span style="font-weight: bold;">來源語言2目標語言</span>：<br />

<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(0, 153, 0); width: 100%;">

  <tbody>

    <tr>

      <td style="font-family: Courier New; background-color: rgb(255, 255, 204);">tc2sc</td>

      <td style="background-color: rgb(255, 255, 204);">繁體中
文轉成簡體中文；在<a target="_blank" href="http://blog.xuite.net/blog/baby">Xuite日誌站長</a>的這篇裡<a target="_blank" href="http://blog.xuite.net/blog/baby/8761140">Blog
Q&amp;A - 使用繁簡轉換遇到的問題</a>裡，則是說要用<font size="3"><font color="#4400ff"><font color="#000000"><span style="font-weight: bold; color: rgb(255, 0, 0);">http://</span><font color="#ff0000" style="font-weight: bold; color: rgb(255, 0, 0);">gb.blog.xuite.net/m2m-0000/</font><span style="font-weight: bold; color: rgb(255, 0, 0);">部落格網址</span>這
樣的格式</font></font></font>
      </td>

    </tr>

    <tr>

      <td style="font-family: Courier New; background-color: rgb(255, 255, 204);">tc2en</td>

      <td style="background-color: rgb(255, 255, 204);">繁體中
文轉
成英文</td>

    </tr>

    <tr>

      <td style="font-family: Courier New; background-color: rgb(255, 255, 204);">tc2jp</td>

      <td style="background-color: rgb(255, 255, 204);">繁體中
文轉
成日文</td>

    </tr>

  </tbody>
</table>

<br />

不過，由於今天Xuite的翻譯網站似乎有狀況，始終連接不上，因此無法做最後的確認。因為一直無法順利連線，因此我網頁上的已換成Google的翻譯
了。<br />

<br />

我的擴充功能源碼：<a target="_blank" href="http://emisjerry.googlepages.com/bookmark_buttons.js" style="font-family: Courier New;">http://emisjerry.googlepages.com/bookmark_buttons.js</a><br />

<br />

##

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2933547.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2933547.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2933547.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sat, 31 Mar 2007 00:03:45 +0800</pubDate>
</item>
<item>
	<title>原來也有圖片式的Google AdSense廣告</title>
	<description><![CDATA[
			第一次看到不是文字模式的Google廣告，蠻新鮮的。

##


		]]>
	</description>
	<content:encoded><![CDATA[
			<img vspace="20" hspace="20" align="left" src="http://b.blog.xuite.net/_temp/2/b/3/a/9268a4fa739657947b1f1b75e750bdf81175010722.jpg" />第一次看到不是文字模式的Google廣告，蠻新鮮的。

##


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2920175.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2920175.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2920175.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Tue, 27 Mar 2007 23:54:35 +0800</pubDate>
</item>
<item>
	<title>將部落格加上動態放大與縮小字體大小的功能</title>
	<description><![CDATA[
			眼尖的讀者或許會發現在我部落格標題附近加了放大
與縮小文章內容字體的按鈕，用來動態把文章內容的字體做放大與縮小的控制。目前在FireFox裡的Xuite與樂
多都運作正常，但在IE裡仍有問題，嗯，應該不能說有問題，而是按了後毫無反應。
IE裡的
除錯工具真是比FireFox裡的FireBug差多了，Visual Studio for Web
2005又無法安裝．．．不是遇到Service Patch的問題，就是Just-in-time
Debugging無法正常執行。看來只能找舊版的Visual Studio再來試試了。##


		]]>
	</description>
	<content:encoded><![CDATA[
			<img vspace="20" hspace="20" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10760008/0.jpg" alt="Font increment/Decrement" style="width: 330px; height: 82px; float: left;" /><input type="hidden" value="fontSize" id="mytag" /><p>眼尖的讀者或許會發現在我部落格標題附近加了放大
與縮小文章內容字體的按鈕，用來動態把文章內容的字體做<span style="font-weight: bold;">放大與縮小的控制</span>。目前在FireFox裡的<a target="_blank" href="http://blog.xuite.net/emisjerry/tech">Xuite</a>與<a target="_blank" href="http://blog.roodo.com/emisjerry">樂
多</a>都運作正常，但在IE裡仍有問題，嗯，應該不能說有問題，而是按了後毫無反應。</p>
IE裡的
除錯工具真是比FireFox裡的FireBug差多了，Visual Studio for Web
2005又無法安裝．．．不是遇到Service Patch的問題，就是Just-in-time
Debugging無法正常執行。看來只能找舊版的Visual Studio再來試試了。<br /><br />##


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2915163.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2915163.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2915163.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Mon, 26 Mar 2007 23:02:15 +0800</pubDate>
</item>
<item>
	<title>替部落格的側邊欄位加上縮起與展開功能</title>
	<description><![CDATA[
			


下列網址都是替部落格的側邊欄位加上縮起與展開功能：
Racklin's 阿土伯程式大觀園: 輕
鬆擴充 Blogger 功能: Blogger_ext2.js (jQuery way)!Without
Boundaries: 
教學 樂多折疊邊欄插件就我所知以上二者都是使用jQuery Framework來實作的，以下說明的版本則是以最單純的JavaScript來撰寫。首先說明樂多的大致寫法。樂多的側邊欄位結構如下：側邊的標題欄類別名稱是 sidetitle，對應的內容為平行位置的&lt;div&gt;，類別名稱是 side，
我們要做的是當sidetitle上的某個物件（即程式中新增進去的&lt;img&gt;，上圖中以紅框標示）被按下時，在其onclick事件處理程
式裡，對&lt;div
class=&quot;side&quot;&gt;做隱藏或顯示的切換。程式中用toggleSideBoxRoodo函數實作了需要的功能，請有興趣的讀者自行閱讀。Xuite的側邊欄位結構和樂多的稍有不同：在&lt;div class=&quot;sidetitle&quot;&gt;裡還有兩層，程式以toggleSideBoxXuite函數實作。程式裡有做註解說明，應該是不難理解的。不想看程式只要使用的讀者，請自行增加一個自由欄位（樂多稱插入欄位），在欄位裡輸入下列指令即可使用：&lt;script src=&quot;http://emisjerry.googlepages.com/bookmark_buttons.js&quot;&gt;&lt;/script&gt;原始程式：http://emisjerry.googlepages.com/bookmark_buttons.js不知為何，IE執行上會有問題，FireFox則正常。##

		]]>
	</description>
	<content:encoded><![CDATA[
			
<input type="hidden" id="mytag" value="javascript 側邊" />
<img vspace="20" hspace="20" style="width: 217px; height: 339px; float: left;" alt="Sidebar effects" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10638904/7.jpg" />
下列網址都是替部落格的側邊欄位加上<span style="font-weight: bold;">縮起與展開</span>功能：<br />
<ul><li>Racklin's 阿土伯程式大觀園: <a href="http://racklin.blogspot.com/2007/01/blogger-jquery-way.html">輕
鬆擴充 Blogger 功能: Blogger_ext2.js (jQuery way)!</a></li><li>Without
Boundaries: <a href="http://blog.roodo.com/withoutboundaries/archives/2847329.html">
教學 樂多折疊邊欄插件</a></li></ul>就我所知以上二者都是使用jQuery Framework來實作的，以下說明的版本則是以最單純的JavaScript來撰寫。<br /><br />首先說明<a href="http://www.roodo.com">樂多</a>的大致寫法。樂多的側邊欄位結構如下：<br /><img vspace="20" style="width: 682px; height: 129px;" alt="Roodo Sidebar structure" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10638904/1.jpg" /><br />側邊的標題欄類別名稱是<span style="font-weight: bold;"> sidetitle</span>，對應的內容為平行位置的&lt;div&gt;，類別名稱是<span style="font-weight: bold;"> side</span>，
我們要做的是當sidetitle上的某個物件（即程式中新增進去的&lt;img&gt;，上圖中以紅框標示）被按下時，在其onclick事件處理程
式裡，對&lt;div
class=&quot;side&quot;&gt;做隱藏或顯示的切換。程式中用toggleSideBoxRoodo函數實作了需要的功能，請有興趣的讀者自行閱讀。<br /><br />Xuite的側邊欄位結構和樂多的稍有不同：<img vspace="20" style="width: 729px; height: 193px;" alt="Xuite Sidebar Structure" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10638904/0.jpg" /><br />在&lt;div class=&quot;sidetitle&quot;&gt;裡還有兩層，程式以toggleSideBoxXuite函數實作。程式裡有做註解說明，應該是不難理解的。<br /><br />不想看程式只要使用的讀者，請自行增加一個自由欄位（樂多稱插入欄位），在欄位裡輸入下列指令即可使用：<br /><table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(102, 102, 102); width: 90%;"><tbody><tr><td style="background-color: rgb(255, 255, 204);"><span style="font-family: Courier;">&lt;script src=&quot;http://emisjerry.googlepages.com/bookmark_buttons.js&quot;&gt;<br />&lt;/script&gt;</span></td></tr></tbody></table><br />原始程式：<span style="font-family: Courier;"><a href="http://emisjerry.googlepages.com/bookmark_buttons.js">http://emisjerry.googlepages.com/bookmark_buttons.js</a><br /><br /></span><span style="font-family: Courier; text-decoration: line-through;">不知為何，IE執行上會有問題，FireFox則正常。</span><br /><span style="font-family: Courier;"><br /></span>##

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2873367.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2873367.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2873367.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 18 Mar 2007 21:51:11 +0800</pubDate>
</item>
<item>
	<title>自動填Google搜尋的輸入字串：Xuite自動書籤按鈕 V1.4</title>
	<description><![CDATA[
			

為
了能方便訪客針對瀏覽中的文章快速搜尋與檢索，我在新文章裡加入一個命名為 mytag 的＜INPUT＞控制項，把它的值當做要搜尋的關鍵字串，直接填入Google的輸入框裡。

控制項的用法如下：



&lt;input type=&quot;Hidden&quot; id=&quot;mytag&quot; value=&quot;opendesktop 螢火飛 font&quot; /&gt;




填值的寫法如下：



   
var sSearchText = document.getElementById('mytag').value;
    document.getElementById('sbi').value =
sSearchText;





原始程式可由此檢視。

##


		]]>
	</description>
	<content:encoded><![CDATA[
			
<input type="hidden" value="bookmarks hemidemi javascript" id="mytag" />
<img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10563346/0.jpg" alt="Google auto-text" style="width: 210px; height: 171px; float: left;" />為
了能方便訪客針對瀏覽中的文章快速搜尋與檢索，我在新文章裡加入一個命名為 mytag 的＜INPUT＞控制項，把它的值當做要搜尋的關鍵字串，<span style="font-weight: bold;">直接填入Google的輸入框</span>裡。<br />
<br />
控制項的用法如下：<br />
<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(102, 102, 102); width: 699px; height: 46px;">
<tbody>
<tr>
<td style="background-color: rgb(255, 255, 204);"><span style="font-family: Courier New;">&lt;input type=&quot;Hidden&quot; id=&quot;mytag&quot; value=&quot;opendesktop 螢火飛 font&quot; /&gt;</span></td>
</tr>
</tbody>
</table>
<br />
填值的寫法如下：<br />
<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(102, 102, 102); width: 699px; height: 46px;">
<tbody>
<tr>
<td style="background-color: rgb(255, 255, 204);"><span style="font-family: Courier New;">   
var sSearchText = document.getElementById('mytag').value;<br />
    document.getElementById('sbi').value =
sSearchText;<br />
</span></td>
</tr>
</tbody>
</table>
<br />
原始程式可<a target="_blank" href="http://emisjerry.googlepages.com/bookmark_buttons.js">由此檢視</a>。<br />
<br />
##


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2848703.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2848703.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2848703.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Tue, 13 Mar 2007 22:08:29 +0800</pubDate>
</item>
<item>
	<title>MyBlogLog似乎造成網頁載入速度變慢?</title>
	<description><![CDATA[
			

自從把MyBlogLog的JavaScript加入側邊欄後，網頁在重新整理時，經常看到狀態列出現讀取s3.amazonaws.com網頁，感覺讓網頁的載入變慢。雖然尚不清楚二者間到底是否真的有關聯，但，還是先把MyBlogLog拿掉好了。##


		]]>
	</description>
	<content:encoded><![CDATA[
			
<input type="hidden" id="mytag" value="MyBlogLog" />
自從把<a href="http://www.mybloglog.com" target="_blank">MyBlogLog</a>的JavaScript加入側邊欄後，網頁在重新整理時，經常看到狀態列出現讀取<a href="http://s3.amazonaws.com" target="_blank">s3.amazonaws.com</a>網頁，感覺讓網頁的載入變慢。雖然尚不清楚二者間到底是否真的有關聯，但，還是先把MyBlogLog拿掉好了。<br /><br />##


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2845259.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2845259.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2845259.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Mon, 12 Mar 2007 23:54:53 +0800</pubDate>
</item>
<item>
	<title>把文章的分類當做HEMiDEMi的標籤：Xuite自動書籤按鈕 V1.3</title>
	<description><![CDATA[
			
把Xuite自動書籤按鈕 V1.2又
加了點程式以偷懶少打幾個字：自動把文章的分類當
做HEMiDEMi的標籤。
由於查不到完整的Query String，因此在討論區留言，很快的得知要使用 tag_string。

首先找出網頁裡的分類名稱：



   
var sTagString = &quot;&quot;;  // 把類別當成標籤Tag
    if (isXuite) {
      oTag =
findTag('span','category');
      sTagString =
findTag('span','category').childNodes[0].childNodes[0].firstChild.textContent;
      //alert(sCategory);
    }




再加入傳給黑米書籤的URL：



 
var bookmarklets=[
    [ hemidemiImg,
      false,
     
'http://www.hemidemi.com/user_bookmark/new?via=sticker&amp;url='+u+
       
'&amp;title='+t+'&amp;tag_string='+sTagString+'&amp;description='+d,
      'HEMiDEMi黑米書籤'
    ],  .....




完整的程式如下：
/* 
 * $Id: bookmark_buttons.js 7348 2007-02-16 03:44:02Z emisjerry $
 *  
 * Copyleft (c) Jerry Chien (http://blog.xuite.net/emisjerry), 2007/02/15
 * Most of the codes were written by RockSaying (http://blog.roodo.com/rocksaying)
 * What i have done is minor modification.  
 */
var isXuite = false, isRoodo = false;
if (document.URL.indexOf(&quot;.roodo.&quot;) &gt; 0) {  // for Xuite
  isRoodo = true;
} 
if (!isRoodo || document.URL.indexOf(&quot;.xuite.&quot;) &gt; 0) {  // for Roodo
  isXuite = true;
} 
if (isXuite || isRoodo) {
  if (window.attachEvent) window.attachEvent('onload', addCurrentArticleBookmarklets);
  else window.addEventListener('load', addCurrentArticleBookmarklets, false);
}

//--FUNCTIONS-----------------------------------------------------------
  // findTag('span','titlename', 'text');
  function findTag(sTag, sName, sType) {  
    var aTags = document.getElementsByTagName(sTag);
    var reg = new RegExp(sName);
    var oResult = &quot;&quot;;
    for (var i in aTags) {
      //alert(aTags[i].className);
      if (reg.test(aTags[i].className)) {
        if (sType=='text') {
          oResult = aTags[i].textContent;
        } else {
          oResult = aTags[i];
        }
        break;
      }
    }
    return oResult;
  }

  function addCurrentArticleBookmarklets() {
    // http://www.dreamprojections.com/syntaxhighlighter/Usage.aspx
    // 要在自由欄位加上&lt;script src&gt;等指令
    //dp.SyntaxHighlighter.HighlightAll('code');
  
    var u = document.URL;
    if (isXuite &amp;&amp; !//d+/.test(u)) {
      var oTag = findTag('span','titlename');  // 取回span,第1個Node為 a
      u = oTag.childNodes[0].href;  // 本篇文章的URL
    }

    var index = u.indexOf('#');  // 以回應進入時未帶不到資料,因此要trim掉
    if (index &gt; 0) {
      u = u.substring(0, index);
    }
    // title: 標題
    var t = &quot;&quot;;
    if (isRoodo) {
      t = encodeURIComponent(document.title);
    } else {
      t = findTag('span','titlename','text');
      t = encodeURIComponent(t);
    }
    // description: 取出文章內容,最多4000個字元
    var d = &quot;&quot;;
    var iMaxLength = 4000;
    if (isXuite) {
      d = findTag('div', 'blogbody','text');    
      var iStopIndex = d.indexOf(&quot;(繼續閱讀)&quot;);
      d = d.substring(0, iStopIndex &gt; 0? iStopIndex : iMaxLength);
    } else if (isRoodo) {
      d = findTag('div', 'main','text');
      d = d.substring(0,iMaxLength);
    }
    var sTagString = &quot;&quot;;  // 把類別當成標籤Tag
    if (isXuite) {
      oTag = findTag('span','category');
      sTagString = findTag('span','category').childNodes[0].childNodes[0].firstChild.textContent;
      //alert(sCategory);
    }

    var furlImg = document.createElement('img');
    with (furlImg) {
      src = 'http://blog.roodo.com/emisjerry/09034406.png';
      alt = '[+]FURL'; border = '0';
    }
    var myYahooImg = document.createElement('img');
    with (myYahooImg) {
      src = 'http://us.i1.yimg.com/us.yimg.com/i/us/sch/el/addtomy.gif';
      alt = '[+]My Yahoo!'; border = '0';
    }
    var myShareImg = document.createElement('img');
    with (myShareImg) {
      src = 'http://digest.url.com.tw/images/add2myshare_80x15-1.gif';
      alt = '[+]My Share'; border = '0';
    }
    var hemidemiImg = document.createElement('img');
    with (hemidemiImg) {
      src = 'http://www.hemidemi.com/sticker/addblackcolor_8015.gif';
      alt = '[+]HEMIDEMI'; border = '0';
    }
    var delicioImg = document.createElement('img');
    with (delicioImg) {
      src = 'http://blog.roodo.com/emisjerry/5507ca4d.png';
      alt = '[+]del.icio.us'; border = '0';
    }
    var technoratiImg = document.createElement('img');
    with(technoratiImg) {
      src = 'http://static.technorati.com/pix/fave/btn-fave2.png';
      alt = '[+]technorati fave';
      border = '0';
    }

    var bookmarklets=[
    [ hemidemiImg,
      false,
      'http://www.hemidemi.com/user_bookmark/new?via=sticker&amp;url='+u+
        '&amp;title='+t+'&amp;tag_string='+sTagString+'&amp;description='+d,
      'HEMiDEMi黑米書籤'
    ],
    [ myYahooImg,
      false,
      'http://tw.myweb2.search.yahoo.com/myresults/bookmarklet?ei=UTF-8&amp;u='+u+'&amp;t='+t+'&amp;d='+d,
      '雅虎分享書籤'
    ],
    [ myShareImg,  // 4000會造成MyShare錯誤
      false,
      'http://myshare.url.com.tw/index.php?func=newurl&amp;from=mysharepop'+
        '&amp;NewsMaster=1&amp;url='+u+'&amp;desc='+t+'&amp;contents='+d.substring(0,500),
      'MyShare網路書籤'
    ],
    [ delicioImg,
      false,
      'http://del.icio.us/post?url='+u+'&amp;title='+t,
      'del.icio.us美味書籤'
    ],
    [ technoratiImg,
      false,
      'http://technorati.com/faves?sub='+t+'&amp;add='+u,
      'Technotati bookmark'
    ],
    [ furlImg,
      false,
      'http://furl.net/storeIt.jsp?&amp;u='+u+'&amp;t='+t,
      'FURL bookmark'
    ]
    ];

    var posted = null;
    if (isXuite || isRoodo) {
      posted = findTag('div','posted');
    }

    posted.insertBefore(document.createElement('br'), posted.firstChild);
    for (var i = bookmarklets.length - 1, a; i &gt;= 0; --i) {
      a = document.createElement('a');
      a.target = '_blank';
      a.href = bookmarklets[i][2];
      a.title = bookmarklets[i][3];
      a.appendChild(bookmarklets[i][0]);
      if (bookmarklets[i][1])
        a.appendChild(document.createTextNode(bookmarklets[i][1]));
      posted.insertBefore(document.createTextNode(' '), posted.firstChild);
      posted.insertBefore(a, posted.firstChild);
    }
  }
&lt;/body&gt;
&lt;/html&gt;&lt;/HTML&gt;

		]]>
	</description>
	<content:encoded><![CDATA[
			
把<a target="_blank" href="http://blog.xuite.net/emisjerry/tech/10208006"><span class="titlename"></span><big>Xuite自動書籤按鈕 V1.2</big></a>又
加了點程式以偷懶少打幾個字：自動把文章的<span style="font-weight: bold;">分類</span>當
做HEMiDEMi的<span style="font-weight: bold;">標籤</span>。<br />
由於查不到完整的Query String，因此在<a href="http://www.hemidemi.com/board/hemidemi.help/thread/50427" target="_blank">討論區留言</a>，很快的得知要使用<span style="font-weight: bold;"> tag_string</span>。<br />
<br />
首先找出網頁裡的分類名稱：<br />
<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(0, 102, 0); width: 100%;">
<tbody>
<tr>
<td style="background-color: rgb(255, 255, 204);">   
var sTagString = &quot;&quot;;  // 把類別當成標籤Tag<br />
    if (isXuite) {<br />
      oTag =
findTag('span','category');<br />
      sTagString =
findTag('span','category').childNodes[0].childNodes[0].firstChild.textContent;<br />
      //alert(sCategory);<br />
    }</td>
</tr>
</tbody>
</table>
<br />
再加入傳給黑米書籤的URL：<br />
<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(0, 102, 0); width: 100%;">
<tbody>
<tr>
<td style="background-color: rgb(255, 255, 204);"> 
var bookmarklets=[<br />
    [ hemidemiImg,<br />
      false,<br />
     
'http://www.hemidemi.com/user_bookmark/new?via=sticker&amp;url='+u+<br />
       
'&amp;title='+t+<span style="font-weight: bold;">'&amp;tag_string='+sTagString</span>+'&amp;description='+d,<br />
      'HEMiDEMi黑米書籤'<br />
    ],  .....</td>
</tr>
</tbody>
</table>
<br />
完整的程式如下：<br />
<textarea name="code" class="javascript:collapse" rows="10" cols="80">/* 
 * $Id: bookmark_buttons.js 7348 2007-02-16 03:44:02Z emisjerry $
 *  
 * Copyleft (c) Jerry Chien (http://blog.xuite.net/emisjerry), 2007/02/15
 * Most of the codes were written by RockSaying (http://blog.roodo.com/rocksaying)
 * What i have done is minor modification.  
 */
var isXuite = false, isRoodo = false;
if (document.URL.indexOf(&quot;.roodo.&quot;) &gt; 0) {  // for Xuite
  isRoodo = true;
} 
if (!isRoodo || document.URL.indexOf(&quot;.xuite.&quot;) &gt; 0) {  // for Roodo
  isXuite = true;
} 
if (isXuite || isRoodo) {
  if (window.attachEvent) window.attachEvent('onload', addCurrentArticleBookmarklets);
  else window.addEventListener('load', addCurrentArticleBookmarklets, false);
}

//--FUNCTIONS-----------------------------------------------------------
  // findTag('span','titlename', 'text');
  function findTag(sTag, sName, sType) {  
    var aTags = document.getElementsByTagName(sTag);
    var reg = new RegExp(sName);
    var oResult = &quot;&quot;;
    for (var i in aTags) {
      //alert(aTags[i].className);
      if (reg.test(aTags[i].className)) {
        if (sType=='text') {
          oResult = aTags[i].textContent;
        } else {
          oResult = aTags[i];
        }
        break;
      }
    }
    return oResult;
  }

  function addCurrentArticleBookmarklets() {
    // http://www.dreamprojections.com/syntaxhighlighter/Usage.aspx
    // 要在自由欄位加上&lt;script src&gt;等指令
    //dp.SyntaxHighlighter.HighlightAll('code');
  
    var u = document.URL;
    if (isXuite &amp;&amp; !//d+/.test(u)) {
      var oTag = findTag('span','titlename');  // 取回span,第1個Node為 a
      u = oTag.childNodes[0].href;  // 本篇文章的URL
    }

    var index = u.indexOf('#');  // 以回應進入時未帶不到資料,因此要trim掉
    if (index &gt; 0) {
      u = u.substring(0, index);
    }
    // title: 標題
    var t = &quot;&quot;;
    if (isRoodo) {
      t = encodeURIComponent(document.title);
    } else {
      t = findTag('span','titlename','text');
      t = encodeURIComponent(t);
    }
    // description: 取出文章內容,最多4000個字元
    var d = &quot;&quot;;
    var iMaxLength = 4000;
    if (isXuite) {
      d = findTag('div', 'blogbody','text');    
      var iStopIndex = d.indexOf(&quot;(繼續閱讀)&quot;);
      d = d.substring(0, iStopIndex &gt; 0? iStopIndex : iMaxLength);
    } else if (isRoodo) {
      d = findTag('div', 'main','text');
      d = d.substring(0,iMaxLength);
    }
    var sTagString = &quot;&quot;;  // 把類別當成標籤Tag
    if (isXuite) {
      oTag = findTag('span','category');
      sTagString = findTag('span','category').childNodes[0].childNodes[0].firstChild.textContent;
      //alert(sCategory);
    }

    var furlImg = document.createElement('img');
    with (furlImg) {
      src = 'http://blog.roodo.com/emisjerry/09034406.png';
      alt = '[+]FURL'; border = '0';
    }
    var myYahooImg = document.createElement('img');
    with (myYahooImg) {
      src = 'http://us.i1.yimg.com/us.yimg.com/i/us/sch/el/addtomy.gif';
      alt = '[+]My Yahoo!'; border = '0';
    }
    var myShareImg = document.createElement('img');
    with (myShareImg) {
      src = 'http://digest.url.com.tw/images/add2myshare_80x15-1.gif';
      alt = '[+]My Share'; border = '0';
    }
    var hemidemiImg = document.createElement('img');
    with (hemidemiImg) {
      src = 'http://www.hemidemi.com/sticker/addblackcolor_8015.gif';
      alt = '[+]HEMIDEMI'; border = '0';
    }
    var delicioImg = document.createElement('img');
    with (delicioImg) {
      src = 'http://blog.roodo.com/emisjerry/5507ca4d.png';
      alt = '[+]del.icio.us'; border = '0';
    }
    var technoratiImg = document.createElement('img');
    with(technoratiImg) {
      src = 'http://static.technorati.com/pix/fave/btn-fave2.png';
      alt = '[+]technorati fave';
      border = '0';
    }

    var bookmarklets=[
    [ hemidemiImg,
      false,
      'http://www.hemidemi.com/user_bookmark/new?via=sticker&amp;url='+u+
        '&amp;title='+t+'&amp;tag_string='+sTagString+'&amp;description='+d,
      'HEMiDEMi黑米書籤'
    ],
    [ myYahooImg,
      false,
      'http://tw.myweb2.search.yahoo.com/myresults/bookmarklet?ei=UTF-8&amp;u='+u+'&amp;t='+t+'&amp;d='+d,
      '雅虎分享書籤'
    ],
    [ myShareImg,  // 4000會造成MyShare錯誤
      false,
      'http://myshare.url.com.tw/index.php?func=newurl&amp;from=mysharepop'+
        '&amp;NewsMaster=1&amp;url='+u+'&amp;desc='+t+'&amp;contents='+d.substring(0,500),
      'MyShare網路書籤'
    ],
    [ delicioImg,
      false,
      'http://del.icio.us/post?url='+u+'&amp;title='+t,
      'del.icio.us美味書籤'
    ],
    [ technoratiImg,
      false,
      'http://technorati.com/faves?sub='+t+'&amp;add='+u,
      'Technotati bookmark'
    ],
    [ furlImg,
      false,
      'http://furl.net/storeIt.jsp?&amp;u='+u+'&amp;t='+t,
      'FURL bookmark'
    ]
    ];

    var posted = null;
    if (isXuite || isRoodo) {
      posted = findTag('div','posted');
    }

    posted.insertBefore(document.createElement('br'), posted.firstChild);
    for (var i = bookmarklets.length - 1, a; i &gt;= 0; --i) {
      a = document.createElement('a');
      a.target = '_blank';
      a.href = bookmarklets[i][2];
      a.title = bookmarklets[i][3];
      a.appendChild(bookmarklets[i][0]);
      if (bookmarklets[i][1])
        a.appendChild(document.createTextNode(bookmarklets[i][1]));
      posted.insertBefore(document.createTextNode(' '), posted.firstChild);
      posted.insertBefore(a, posted.firstChild);
    }
  }
&lt;/body&gt;
&lt;/html&gt;&lt;/HTML&gt;<br /></textarea>

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2779595.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2779595.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2779595.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Tue, 27 Feb 2007 23:18:49 +0800</pubDate>
</item>
<item>
	<title>dp.SyntaxHighlighter: 在網頁顯示美觀的程式碼</title>
	<description><![CDATA[
			
真是由石頭成這裡學到不少網頁處理的小技巧耶。不管是Xuite或樂多，對於原貌
呈現的＜xmp&gt;或
＜pre&gt;標籤，在處理上總是有不少奇奇怪怪的小問題，因此每次要貼HTML或JavaScript的程式時，總是要多花時間去修改可能會
造成問題的符號，而在石頭成網站上看到了使用.dp.SyntaxHighlighter 的解決方法。以下是簡單的使
用步驟：


把 dp.SyntaxHighlighter 下載回來，解壓縮後再將需要用到的檔案上傳到Google
pages，以下是基本的幾個必須的檔案：SyntaxHighlighter.css
(在解壓縮目錄的Styles裡)shCore.js
(在解壓縮目錄的Scripts裡)要貼上的程式種類用的.js檔；要貼JavaScript則上傳shBrushJScript.js在文章的最後面要加上下列指令(把emisjerry換成自己的網址)： 
&lt;!--
style sheet should be linked at the
top of the page
--&gt;
&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot;
href=&quot;http://emisjerry.googlepages.com/SyntaxHighlighter.css&quot;&gt;&lt;/link&gt;
&lt;!-- the following code should be place at the bottom of the
page --&gt;
&lt;script language=&quot;javascript&quot;
src=&quot;http://emisjerry.googlepages.com/shCore.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot;
src=&quot;http://emisjerry.googlepages.com/shBrushJScript.js&quot;&gt;&lt;/script&gt;
&lt;script&gt; dp.SyntaxHighlighter.HighlightAll('code');
&lt;/script&gt; 
要貼上的程式碼必須置於&lt;textarea&gt;
&lt;/textarea&gt;裡，此&lt;textarea&gt;必須設定下列屬性：

name=&quot;code&quot;class=&quot;使用的程式語言名稱&quot;，如javascript、java等，詳細程式語言清單請參考 [這裡]。非必要屬性：rows=顯示的列數，cols=顯示的行數
class屬性另外可以控制顯示區的外觀，細節請參考 [這裡]。我試用過的說明如下：

collapse: 程式碼顯示區最上方顯示 + expand
source，按下才會顯示完整的程式碼showcolumns: 顯示行號，即...10....20....30這種尺規不同的控制之間以冒號隔開

##



 dp.SyntaxHighlighter.HighlightAll('code'); 

		]]>
	</description>
	<content:encoded><![CDATA[
			
<big>真是由<a target="_blank" href="http://blog.roodo.com/rocksaying">石頭成</a>這裡學到不少網頁處理的小技巧耶。不管是Xuite或樂多，對於原貌
呈現的＜xmp&gt;或
＜pre&gt;標籤，在處理上總是有不少奇奇怪怪的小問題，因此每次要貼HTML或JavaScript的程式時，總是要多花時間去修改可能會
造成問題的符號，而在石頭成網站上看到了使用.<a target="_blank" href="http://www.dreamprojections.com/syntaxhighlighter/Usage.aspx">dp.SyntaxHighlighter </a>的解決方法。以下是簡單的使
用步驟：<br />
<br />
</big>
<ol><li><big>把 dp.SyntaxHighlighter 下載回來，解壓縮後再將需要用到的檔案上傳到<a target="_blank" href="http://pages.google.com">Google
pages</a>，以下是基本的幾個必須的檔案：</big></li><ul><li><big><span style="font-weight: bold;">SyntaxHighlighter.css
</span>(在解壓縮目錄的Styles裡)</big></li><li><big><span style="font-weight: bold;">shCore.js</span>
(在解壓縮目錄的Scripts裡)</big></li><li><big>要貼上的程式種類用的.js檔；要貼JavaScript則上傳<span style="font-weight: bold;">shBrushJScript.js</span></big></li></ul><li><big>在文章的最後面要加上下列指令(把emisjerry換成自己的網址)：</big> <big><br />
<textarea class="javascript:showcolumns:collapse" name="code" rows="10" cols="70">&lt;!--
style sheet should be linked at the
top of the page
--&gt;
&lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot;
href=&quot;http://emisjerry.googlepages.com/SyntaxHighlighter.css&quot;&gt;&lt;/link&gt;
&lt;!-- the following code should be place at the bottom of the
page --&gt;
&lt;script language=&quot;javascript&quot;
src=&quot;http://emisjerry.googlepages.com/shCore.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot;
src=&quot;http://emisjerry.googlepages.com/shBrushJScript.js&quot;&gt;&lt;/script&gt;
&lt;script&gt; dp.SyntaxHighlighter.HighlightAll('code');
&lt;/script&gt; </textarea></big></li></ol>
<big>要貼上的程式碼必須置於&lt;textarea&gt;
&lt;/textarea&gt;裡，此&lt;textarea&gt;必須設定下列屬性：<br />
</big>
<ul><li><big>name=&quot;code&quot;</big></li><li><big>class=&quot;使用的程式語言名稱&quot;，如javascript、java等，詳細程式語言清單請參考<a target="_blank" href="http://www.dreamprojections.com/syntaxhighlighter/Usage.aspx#languages"> [這裡]</a>。</big></li><li><big>非必要屬性：rows=顯示的列數，cols=顯示的行數</big></li></ul>
<big>class屬性另外可以控制顯示區的外觀，細節請參考<a target="_blank" href="http://www.dreamprojections.com/syntaxhighlighter/Usage.aspx#extendedconfiguration"> [這裡]</a>。我試用過的說明如下：<br />
</big>
<ul><li><big>collapse: 程式碼顯示區最上方顯示 + expand
source，按下才會顯示完整的程式碼</big></li><li><big>showcolumns: 顯示行號，即...10....20....30這種尺規</big></li><li><big>不同的控制之間以冒號隔開<br />
</big></li></ul>
<big>##</big>
<link href="http://emisjerry.googlepages.com/SyntaxHighlighter.css" rel="stylesheet" type="text/css" /><script src="http://emisjerry.googlepages.com/shCore.js" language="javascript"></script><script src="http://emisjerry.googlepages.com/shBrushJScript.js" language="javascript"></script>


<script> dp.SyntaxHighlighter.HighlightAll('code'); </script>

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2738415.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2738415.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2738415.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Fri, 16 Feb 2007 20:03:27 +0800</pubDate>
</item>
<item>
	<title>幫荒廢的部落格加上自動提示轉址功能</title>
	<description><![CDATA[
			
經過前一陣子的部落格搬家風潮後，我原先使用的http://blog.yam.com/emisjerry就荒廢在天空部落裡。今天趁便做個歲末大清理，將它加上自動提示轉址的功能，以方便舊雨新知按個鈕就能轉址到現行使用的Blog。簡單的操作步驟如下：登入blog.yam.com的【後端管理介面】按選單上的【功能設定】在部落格描述欄位最後加入如下指令：＜script&gt; sBlogName=&quot;新的網址&quot;;  ＜script src=&quot;http://emisjerry.googlepages.com/redirect.js&quot;&gt;按儲存更新指令第一行的新網址可以不指定，則轉址前會彈出輸入視窗，供使用者輸入新網址，若有指定則自動轉向新網址。按http://blog.yam.com/emisjerry就可以看到執行的樣子了。##


		]]>
	</description>
	<content:encoded><![CDATA[
			
經過前一陣子的部落格搬家風潮後，我原先使用的<a href="http://blog.yam.com/emisjerry" target="_blank">http://blog.yam.com/emisjerry</a>就荒廢在天空部落裡。今天趁便做個歲末大清理，將它加上自動提示轉址的功能，以方便舊雨新知按個鈕就能轉址到現行使用的Blog。簡單的操作步驟如下：<br /><ol><li>登入blog.yam.com的【後端管理介面】</li><li>按選單上的【功能設定】</li><li>在部落格描述欄位最後加入如下指令：<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(0, 102, 0); width: 80%;"><tbody><tr><td style="background-color: rgb(255, 255, 204);"><span style="font-weight: bold;">＜script&gt; sBlogName=&quot;新的網址&quot;;  </span><br style="font-weight: bold;" /><span style="font-weight: bold;">＜script src=&quot;http://emisjerry.googlepages.com/redirect.js&quot;&gt;</span></td></tr></tbody></table><br /></li><li>按儲存更新</li></ol>指令第一行的新網址可以不指定，則轉址前會彈出輸入視窗，供使用者輸入新網址，若有指定則自動轉向新網址。<br /><br />按<a href="http://blog.yam.com/emisjerry" target="_blank">http://blog.yam.com/emisjerry</a>就可以看到執行的樣子了。<br /><br />##


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2738409.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2738409.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2738409.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Fri, 16 Feb 2007 20:02:33 +0800</pubDate>
</item>
<item>
	<title>書籤小貼紙工具：Ultra Network轉址系統</title>
	<description><![CDATA[
			
原來已經有人把常見的書籤連結整合成工具網頁了，請到Ultra Network轉址系統一探究竟吧。滿天飛舞的花絮介紹文章實用的網路書籤小貼紙把操作步驟寫得很清楚，請自行閱讀。

該網頁在FireFox裡顯示得很凌亂，但在IE裡就正常，因此建議使用IE來操作。##


		]]>
	</description>
	<content:encoded><![CDATA[
			
原來已經有人把常見的書籤連結整合成工具網頁了，請到<a title="Ultra Network轉址系統" target="_blank" href="http://button.unet.cc/">Ultra Network轉址系統</a>一探究竟吧。<a href="http://www.wretch.cc/blog/joycefairy">滿天飛舞的花絮</a>介紹文章<a href="http://www.wretch.cc/blog/joycefairy&article_id=8165767" target="_blank" title="實用的網路書籤小貼紙">實用的網路書籤小貼紙</a>把操作步驟寫得很清楚，請自行閱讀。

<br /><br />該網頁在FireFox裡顯示得很凌亂，但在IE裡就正常，因此建議使用IE來操作。<br /><br />##


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2738405.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2738405.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2738405.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Fri, 16 Feb 2007 20:01:44 +0800</pubDate>
</item>
<item>
	<title>Xuite自動書籤按鈕 V1.2</title>
	<description><![CDATA[
			
以丸小管在《[Outside Anchor]為樂多加入收藏按鈕》的作法
為範例，把自動產生書籤按鈕放到Google pages裡：http://emisjerry.googlepages.com/bookmark_buttons.js。
同時修改程式以自動判斷是瀏覽樂多或Xuite，而產生對應的連結，不用再分別維護幾個Blog裡的程式了。以下是簡易的安裝方法：
樂多在管理網頁裡修改【Blog基本設定】→在【說明】欄位裡填入下列指令：



 
  &lt;script
 src=&quot;
http://emisjerry.googlepages.com/bookmark_buttons.js&quot;&gt;&lt;/script&gt;




Xuite在管理網頁裡新增一個自由欄位，輸入內容如上。
只要這幾個簡單步驟就幫你的Blog加上書籤按鈕，從此可讓自己和讀者方便的新增書籤了。

參考：
Xuite自動書
籤按鈕 V1.1修改自動產生分享
書籤的按鈕快速增加社交書籤
的網頁工具：AddThis.com遊手好閒的石頭成的部落格：部落格小玩意: 為部落格加上「加入xx分享書籤」的按鈕丸小管：知識：為樂多加入收藏按鈕
##


		]]>
	</description>
	<content:encoded><![CDATA[
			
<table cellspacing="2" cellpadding="2" border="0" style="text-align: left; width: 100%;"><tbody><tr><td><img align="left" src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10207376/0.jpg" /></td></tr></tbody></table>以丸小管在《<a target="_blank" href="http://blog.roodo.com/hiroshiken/archives/2683263.html">[Outside Anchor]為樂多加入收藏按鈕</a>》的作法
為範例，把自動產生書籤按鈕放到<a target="_blank" href="http://pages.google.com">Google pages</a>裡：<a target="_blank" href="http://emisjerry.googlepages.com/bookmark_buttons.js">http://emisjerry.googlepages.com/bookmark_buttons.js</a>。
同時修改程式以自動判斷是瀏覽樂多或Xuite，而產生對應的連結，不用再分別維護幾個Blog裡的程式了。以下是簡易的安裝方法：<br />
<ul><li>樂多</li><ul><li>在管理網頁裡修改【Blog基本設定】→在【說明】欄位裡填入下列指令：</li><li>
<table cellspacing="1" cellpadding="2" border="0" style="text-align: left; background-color: rgb(0, 153, 0); width: 621px; height: 32px;">
<tbody>
<tr>
<td style="background-color: rgb(255, 255, 204);"> 
 <span style="font-weight: bold;"> &lt;script
 src=&quot;
http://emisjerry.googlepages.com/bookmark_buttons.js&quot;&gt;&lt;/script&gt;</span></td>
</tr>
</tbody>
</table>
<br />
</li></ul><li>Xuite</li><ul><li>在管理網頁裡新增一個自由欄位，輸入內容如上。</li></ul></ul>
只要這幾個簡單步驟就幫你的Blog加上書籤按鈕，從此可讓自己和讀者方便的新增書籤了。<br />
<br />
參考：<br />
<ol><li><span class="titlename"></span><a href="http://blog.xuite.net/emisjerry/tech/10173165">Xuite自動書
籤按鈕 V1.1</a></li><li><span class="titlename"></span><a href="http://blog.xuite.net/emisjerry/tech/10137684" dragover="true">修改自動產生分享
書籤的按鈕</a></li><li><span class="titlename"></span><a href="http://blog.xuite.net/emisjerry/tech/10132171">快速增加社交書籤
的網頁工具：AddThis.com<span style="font-weight: bold;"></span></a></li><li>遊手好閒的石頭成的部落格：<a target="_blank" href="http://blog.roodo.com/rocksaying/archives/2639381.html">部落格小玩意: 為部落格加上「加入xx分享書籤」的按鈕</a></li><li>丸小管：<a target="_blank" href="http://blog.roodo.com/hiroshiken/archives/2683263.html">知識：為樂多加入收藏按鈕</a></li></ol>
##


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2733787.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2733787.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2733787.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Fri, 16 Feb 2007 00:34:18 +0800</pubDate>
</item>
<item>
	<title>Xuite自動書籤按鈕 V1.1</title>
	<description><![CDATA[
			
繼續對石頭閒語石頭成的程式做修改：加上些許註解與refactoring在首頁按”回應”進入時會造成取不到標題與內容的修改
  對按鈕加上提示小視窗(title)依石頭成的提示修改取文章描述的className
&lt;script type=&quot;text/javascript&quot;&gt;
//全形反斜請改成半形
if (/\/\d+/.test(document.URL)) {
  // findTag('span','titlename', 'text');
  function findTag(sTag, sName, sType) {  
    var aTags = document.getElementsByTagName(sTag);
    var reg = new RegExp(sName);
    var oResult = &quot;&quot;;
    for (var i in aTags) {
      //alert(aTags[i].className);
      if (reg.test(aTags[i].className)) {
        if (sType=='text') {
          oResult = aTags[i].textContent;
        } else {
          oResult = aTags[i];
        }
        break;
      }
    }
    return oResult;
  }
  function addCurrentArticleBookmarklets() {
    var u = document.URL;
    var index = u.indexOf('#');  // 以回應進入時未帶不到資料,因此要trim掉
    if (index &gt; 0) {
      u = u.substring(0, index);
    }
    // title: 標題
    var t = encodeURIComponent(document.title);
    t = findTag('span','titlename','text');
    // description: 取出文章內容,最多4000個字元
    var d = findTag('div', 'blogbody','text');
    d = d.substring(0,4000);

    var diggImg = document.createElement('img');
    with (diggImg) {
      src = 'http://www.digg.com/img/little-digg.gif';
      alt = '[+]digg'; border = '0';
    }
    var myYahooImg = document.createElement('img');
    with (myYahooImg) {
      src = 'http://us.i1.yimg.com/us.yimg.com/i/us/sch/el/addtomy.gif';
      alt = '[+]My Yahoo!'; border = '0';
    }
    var myShareImg = document.createElement('img');
    with (myShareImg) {
      src = 'http://digest.url.com.tw/images/add2myshare_80x15-1.gif';
      alt = '[+]My Share'; border = '0';
    }
    var hemidemiImg = document.createElement('img');
    with (hemidemiImg) {
      src = 'http://www.hemidemi.com/sticker/addblackcolor_8015.gif';
      alt = '[+]HEMIDEMI'; border = '0';
    }
    var delicioImg = document.createElement('img');
    with (delicioImg) {
      src = 'http://blogimage.roodo.com/rocksaying/a584b41e.gif';
      alt = '[+]del.icio.us'; border = '0';
    }
    var technoratiImg = document.createElement('img');
    with(technoratiImg) {
      src = 'http://static.technorati.com/pix/fave/btn-fave2.png';
      alt = '[+]technorati fave';
      border = '0';
    }

    var bookmarklets=[
    [ hemidemiImg,
      false,
      'http://www.hemidemi.com/user_bookmark/new?via=sticker&amp;url='+u+'&amp;title='+t+'&amp;description='+d,
      'HEMiDEMi黑米書籤'
    ],
    [ myYahooImg,
      false,
      'http://tw.myweb2.search.yahoo.com/myresults/bookmarklet?u='+u+'&amp;t='+t+'&amp;d='+d,
      '雅虎分享書籤'
    ],
    [ myShareImg,
      false,
      'http://myshare.url.com.tw/index.php?func=newurl&amp;from=mysharepop&amp;NewsMaster=1&amp;url='+u+'&amp;desc='+t+'&amp;contents='+d,
      'MyShare網路書籤'
    ],
    [ delicioImg,
      false,
      'http://del.icio.us/post?url='+u+'&amp;title='+t,
      'del.icio.us美味書籤'
    ],
    [ technoratiImg,
      false,
      'http://technorati.com/faves?sub='+t+'&amp;add='+u,
      'Technotati bookmark'
    ],
    [ diggImg,
      false,
      'http://www.digg.com/submit?phase=2&amp;url='+u+'&amp;title='+t,
      'Digg bookmark'
    ]
    ];

    var posted = findTag('div','posted');

    posted.insertBefore(document.createElement('br'), posted.firstChild);
    for (var i = bookmarklets.length - 1, a; i &gt;= 0; --i) {
      a = document.createElement('a');
      a.target = '_blank';
      a.href = bookmarklets[i][2];
      a.title = bookmarklets[i][3];
      a.appendChild(bookmarklets[i][0]);
      if (bookmarklets[i][1])
        a.appendChild(document.createTextNode(bookmarklets[i][1]));
      posted.insertBefore(document.createTextNode(' '), posted.firstChild);
      posted.insertBefore(a, posted.firstChild);
    }
  };
  if (window.attachEvent) window.attachEvent('onload', addCurrentArticleBookmarklets);
  else window.addEventListener('load', addCurrentArticleBookmarklets, false);
}






		]]>
	</description>
	<content:encoded><![CDATA[
			
繼續對<a href="http://blog.roodo.com/rocksaying">石頭閒語</a>石頭成的程式做修改：<ul><li>加上些許註解與refactoring</li><li>在首頁按”回應”進入時會造成取不到標題與內容的修改<br />
  </li><li>對按鈕加上提示小視窗(title)</li><li>依石頭成的提示修改取文章描述的className</li></ul>
<textarea rows="10" cols="70" name="code" class="javascript:collapse">&lt;script type=&quot;text/javascript&quot;&gt;
//全形反斜請改成半形
if (/\/\d+/.test(document.URL)) {
  // findTag('span','titlename', 'text');
  function findTag(sTag, sName, sType) {  
    var aTags = document.getElementsByTagName(sTag);
    var reg = new RegExp(sName);
    var oResult = &quot;&quot;;
    for (var i in aTags) {
      //alert(aTags[i].className);
      if (reg.test(aTags[i].className)) {
        if (sType=='text') {
          oResult = aTags[i].textContent;
        } else {
          oResult = aTags[i];
        }
        break;
      }
    }
    return oResult;
  }
  function addCurrentArticleBookmarklets() {
    var u = document.URL;
    var index = u.indexOf('#');  // 以回應進入時未帶不到資料,因此要trim掉
    if (index &gt; 0) {
      u = u.substring(0, index);
    }
    // title: 標題
    var t = encodeURIComponent(document.title);
    t = findTag('span','titlename','text');
    // description: 取出文章內容,最多4000個字元
    var d = findTag('div', 'blogbody','text');
    d = d.substring(0,4000);

    var diggImg = document.createElement('img');
    with (diggImg) {
      src = 'http://www.digg.com/img/little-digg.gif';
      alt = '[+]digg'; border = '0';
    }
    var myYahooImg = document.createElement('img');
    with (myYahooImg) {
      src = 'http://us.i1.yimg.com/us.yimg.com/i/us/sch/el/addtomy.gif';
      alt = '[+]My Yahoo!'; border = '0';
    }
    var myShareImg = document.createElement('img');
    with (myShareImg) {
      src = 'http://digest.url.com.tw/images/add2myshare_80x15-1.gif';
      alt = '[+]My Share'; border = '0';
    }
    var hemidemiImg = document.createElement('img');
    with (hemidemiImg) {
      src = 'http://www.hemidemi.com/sticker/addblackcolor_8015.gif';
      alt = '[+]HEMIDEMI'; border = '0';
    }
    var delicioImg = document.createElement('img');
    with (delicioImg) {
      src = 'http://blogimage.roodo.com/rocksaying/a584b41e.gif';
      alt = '[+]del.icio.us'; border = '0';
    }
    var technoratiImg = document.createElement('img');
    with(technoratiImg) {
      src = 'http://static.technorati.com/pix/fave/btn-fave2.png';
      alt = '[+]technorati fave';
      border = '0';
    }

    var bookmarklets=[
    [ hemidemiImg,
      false,
      'http://www.hemidemi.com/user_bookmark/new?via=sticker&amp;url='+u+'&amp;title='+t+'&amp;description='+d,
      'HEMiDEMi黑米書籤'
    ],
    [ myYahooImg,
      false,
      'http://tw.myweb2.search.yahoo.com/myresults/bookmarklet?u='+u+'&amp;t='+t+'&amp;d='+d,
      '雅虎分享書籤'
    ],
    [ myShareImg,
      false,
      'http://myshare.url.com.tw/index.php?func=newurl&amp;from=mysharepop&amp;NewsMaster=1&amp;url='+u+'&amp;desc='+t+'&amp;contents='+d,
      'MyShare網路書籤'
    ],
    [ delicioImg,
      false,
      'http://del.icio.us/post?url='+u+'&amp;title='+t,
      'del.icio.us美味書籤'
    ],
    [ technoratiImg,
      false,
      'http://technorati.com/faves?sub='+t+'&amp;add='+u,
      'Technotati bookmark'
    ],
    [ diggImg,
      false,
      'http://www.digg.com/submit?phase=2&amp;url='+u+'&amp;title='+t,
      'Digg bookmark'
    ]
    ];

    var posted = findTag('div','posted');

    posted.insertBefore(document.createElement('br'), posted.firstChild);
    for (var i = bookmarklets.length - 1, a; i &gt;= 0; --i) {
      a = document.createElement('a');
      a.target = '_blank';
      a.href = bookmarklets[i][2];
      a.title = bookmarklets[i][3];
      a.appendChild(bookmarklets[i][0]);
      if (bookmarklets[i][1])
        a.appendChild(document.createTextNode(bookmarklets[i][1]));
      posted.insertBefore(document.createTextNode(' '), posted.firstChild);
      posted.insertBefore(a, posted.firstChild);
    }
  };
  if (window.attachEvent) window.attachEvent('onload', addCurrentArticleBookmarklets);
  else window.addEventListener('load', addCurrentArticleBookmarklets, false);
}
</textarea>
<link type="text/css" rel="stylesheet" href="http://emisjerry.googlepages.com/SyntaxHighlighter.css"></link>
<script src="http://emisjerry.googlepages.com/shCore.js" language="javascript"></script>
<script src="http://emisjerry.googlepages.com/shBrushJScript.js" language="javascript"></script>


		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2722283.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2722283.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2722283.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Wed, 14 Feb 2007 00:26:34 +0800</pubDate>
</item>
<item>
	<title>修改自動產生分享書籤的按鈕</title>
	<description><![CDATA[
			
石頭閒語的作者提供了自動增加分享書籤的簡便寫法，我做了小修改使能運用於Xuite上；也換了Digg圖片，以避免版權問題；另外取得文章標題的方法也做了符合Xuite的調整：
&lt;script type=&quot;text/javascript&quot;&gt;
//全形反斜請改成半形
if (/\/\d+/.test(document.URL)) {
  function addCurrentArticleBookmarklets() {
    var u = document.URL;
    var t = encodeURIComponent(document.title);
    var spanTags = document.getElementsByTagName('span');
    for (var i in spanTags) {
      //alert(spanTags[i].className);
      if (/titlename/.test(spanTags[i].className)) {
        t = spanTags[i].textContent;
        break;
      }
    }

    var d = encodeURIComponent((function getInnerText(node) {
      if (!node) return '';
      var t=[];
      for (var n = node.firstChild; n; n = n.nextSibling) {
        if (n.nodeType == 3) t.push(n.nodeValue);
        else t.push(getInnerText(n));
      }
      return t.join('');
    })((function() {
      var ds = document.getElementsByTagName('div');
      for (var i = 0; i &lt; ds.length; ++i) {
        if (ds[i].className == 'main')
          return ds[i];
      }
    })()).substring(0, 4000-u.length-t.length));

    var diggImg = document.createElement('img');
    with (diggImg) {
      src = 'http://www.digg.com/img/little-digg.gif';
      alt = '[+]digg'; border = '0';
    }
    var myYahooImg = document.createElement('img');
    with (myYahooImg) {
      src = 'http://us.i1.yimg.com/us.yimg.com/i/us/sch/el/addtomy.gif';
      alt = '[+]My Yahoo!'; border = '0';
    }
    var myShareImg = document.createElement('img');
    with (myShareImg) {
      src = 'http://digest.url.com.tw/images/add2myshare_80x15-1.gif';
      alt = '[+]My Share'; border = '0';
    }
    var hemidemiImg = document.createElement('img');
    with (hemidemiImg) {
      src = 'http://www.hemidemi.com/sticker/addblackcolor_8015.gif';
      alt = '[+]HEMIDEMI'; border = '0';
    }
    var delicioImg = document.createElement('img');
    with (delicioImg) {
      src = 'http://blogimage.roodo.com/rocksaying/a584b41e.gif';
      alt = '[+]del.icio.us'; border = '0';
    }
    var technoratiImg = document.createElement('img');
    with(technoratiImg) {
      src = 'http://static.technorati.com/pix/fave/btn-fave2.png';
      alt = '[+]technorati fave';
      border = '0';
    }

    var bookmarklets=[
    [ hemidemiImg,
      false,
      'http://www.hemidemi.com/user_bookmark/new?via=sticker&amp;url='+u+'&amp;title='+t+'&amp;description='+d
    ],
    [ myYahooImg,
      false,
      'http://tw.myweb2.search.yahoo.com/myresults/bookmarklet?u='+u+'&amp;t='+t+'&amp;d='+d
    ],
    [ myShareImg,
      false,
      'http://myshare.url.com.tw/index.php?func=newurl&amp;from=mysharepop&amp;NewsMaster=1&amp;url='+u+'&amp;desc='+t+'&amp;contents='+d
    ],
    [ delicioImg,
      false,
      'http://del.icio.us/post?url='+u+'&amp;title='+t
    ],
    [ technoratiImg,
      false,
      'http://technorati.com/faves?sub='+t+'&amp;add='+u
    ],
    [ diggImg,
      false,
      'http://www.digg.com/submit?phase=2&amp;url='+u+'&amp;title='+t
    ]
    ];

    var posted = document.getElementsByTagName('div');
    for (var i = posted.length - 1; i &gt;= 0; --i) {
      if (/^posted/.test(posted[i].className)) {
        posted = posted[i];
        break;
      }
    }

    posted.insertBefore(document.createElement('br'), posted.firstChild);
    for (var i = bookmarklets.length - 1, a; i &gt;= 0; --i) {
      a = document.createElement('a');
      a.target = '_blank';
      a.href = bookmarklets[i][2];
      a.appendChild(bookmarklets[i][0]);
      if (bookmarklets[i][1])
        a.appendChild(document.createTextNode(bookmarklets[i][1]));
      posted.insertBefore(document.createTextNode(' '), posted.firstChild);
      posted.insertBefore(a, posted.firstChild);
    }
  };
  if (window.attachEvent) window.attachEvent('onload', addCurrentArticleBookmarklets);
  else window.addEventListener('load', addCurrentArticleBookmarklets, false);
}
//--&gt;
&lt;/script&gt;





		]]>
	</description>
	<content:encoded><![CDATA[
			
<a href="http://blog.roodo.com/rocksaying">石頭閒語</a>的作者提供了自動增加分享書籤的簡便寫法，我做了小修改使能運用於Xuite上；也換了Digg圖片，以避免版權問題；另外取得文章標題的方法也做了符合Xuite的調整：
<textarea cols="70" rows="10" name="code" class="javascript:collapse">&lt;script type=&quot;text/javascript&quot;&gt;
//全形反斜請改成半形
if (/\/\d+/.test(document.URL)) {
  function addCurrentArticleBookmarklets() {
    var u = document.URL;
    var t = encodeURIComponent(document.title);
    var spanTags = document.getElementsByTagName('span');
    for (var i in spanTags) {
      //alert(spanTags[i].className);
      if (/titlename/.test(spanTags[i].className)) {
        t = spanTags[i].textContent;
        break;
      }
    }

    var d = encodeURIComponent((function getInnerText(node) {
      if (!node) return '';
      var t=[];
      for (var n = node.firstChild; n; n = n.nextSibling) {
        if (n.nodeType == 3) t.push(n.nodeValue);
        else t.push(getInnerText(n));
      }
      return t.join('');
    })((function() {
      var ds = document.getElementsByTagName('div');
      for (var i = 0; i &lt; ds.length; ++i) {
        if (ds[i].className == 'main')
          return ds[i];
      }
    })()).substring(0, 4000-u.length-t.length));

    var diggImg = document.createElement('img');
    with (diggImg) {
      src = 'http://www.digg.com/img/little-digg.gif';
      alt = '[+]digg'; border = '0';
    }
    var myYahooImg = document.createElement('img');
    with (myYahooImg) {
      src = 'http://us.i1.yimg.com/us.yimg.com/i/us/sch/el/addtomy.gif';
      alt = '[+]My Yahoo!'; border = '0';
    }
    var myShareImg = document.createElement('img');
    with (myShareImg) {
      src = 'http://digest.url.com.tw/images/add2myshare_80x15-1.gif';
      alt = '[+]My Share'; border = '0';
    }
    var hemidemiImg = document.createElement('img');
    with (hemidemiImg) {
      src = 'http://www.hemidemi.com/sticker/addblackcolor_8015.gif';
      alt = '[+]HEMIDEMI'; border = '0';
    }
    var delicioImg = document.createElement('img');
    with (delicioImg) {
      src = 'http://blogimage.roodo.com/rocksaying/a584b41e.gif';
      alt = '[+]del.icio.us'; border = '0';
    }
    var technoratiImg = document.createElement('img');
    with(technoratiImg) {
      src = 'http://static.technorati.com/pix/fave/btn-fave2.png';
      alt = '[+]technorati fave';
      border = '0';
    }

    var bookmarklets=[
    [ hemidemiImg,
      false,
      'http://www.hemidemi.com/user_bookmark/new?via=sticker&amp;url='+u+'&amp;title='+t+'&amp;description='+d
    ],
    [ myYahooImg,
      false,
      'http://tw.myweb2.search.yahoo.com/myresults/bookmarklet?u='+u+'&amp;t='+t+'&amp;d='+d
    ],
    [ myShareImg,
      false,
      'http://myshare.url.com.tw/index.php?func=newurl&amp;from=mysharepop&amp;NewsMaster=1&amp;url='+u+'&amp;desc='+t+'&amp;contents='+d
    ],
    [ delicioImg,
      false,
      'http://del.icio.us/post?url='+u+'&amp;title='+t
    ],
    [ technoratiImg,
      false,
      'http://technorati.com/faves?sub='+t+'&amp;add='+u
    ],
    [ diggImg,
      false,
      'http://www.digg.com/submit?phase=2&amp;url='+u+'&amp;title='+t
    ]
    ];

    var posted = document.getElementsByTagName('div');
    for (var i = posted.length - 1; i &gt;= 0; --i) {
      if (/^posted/.test(posted[i].className)) {
        posted = posted[i];
        break;
      }
    }

    posted.insertBefore(document.createElement('br'), posted.firstChild);
    for (var i = bookmarklets.length - 1, a; i &gt;= 0; --i) {
      a = document.createElement('a');
      a.target = '_blank';
      a.href = bookmarklets[i][2];
      a.appendChild(bookmarklets[i][0]);
      if (bookmarklets[i][1])
        a.appendChild(document.createTextNode(bookmarklets[i][1]));
      posted.insertBefore(document.createTextNode(' '), posted.firstChild);
      posted.insertBefore(a, posted.firstChild);
    }
  };
  if (window.attachEvent) window.attachEvent('onload', addCurrentArticleBookmarklets);
  else window.addEventListener('load', addCurrentArticleBookmarklets, false);
}
//--&gt;
&lt;/script&gt;
</textarea>
<link type="text/css" rel="stylesheet" href="http://emisjerry.googlepages.com/SyntaxHighlighter.css"></link>
<script language="javascript" src="http://emisjerry.googlepages.com/shCore.js"></script>
<script language="javascript" src="http://emisjerry.googlepages.com/shBrushJScript.js"></script>

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2716512.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2716512.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2716512.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Mon, 12 Feb 2007 00:17:22 +0800</pubDate>
</item>
<item>
	<title>快速增加社交書籤的網頁工具：AddThis.com</title>
	<description><![CDATA[
			
 最近為了讓
讀者能方便、迅速地把文章加入社交書籤，許多Blog都加上了快速連結的按鈕，例如HemiDemi或MyShare
等按鈕，每個按鈕連結到不同的書籤系統；今天偶爾發現的AddThis卻將常見的各個書籤系統都彙整在一起，用一個按鈕開啟一個網
頁讓使用者選擇要加到那一個籤系統裡，同時提供JavaScript讓使用者能加到網頁裡，另外也提供了RSS的訂閱按鈕。

不過，書籤系統裡是沒有HemiDemi或MyShare的，
雖然中文的顯示有些問題，但進入到加入書籤網頁時中文又正常出現了。如果你同時使用多個書籤系統，AddThis功
能還頗值得一試。




##

		]]>
	</description>
	<content:encoded><![CDATA[
			
<img src="http://www.addthis.com/images/button2-bm.png" alt="addthis 1" style="width: 160px; height: 24px;" /> <img src="http://www.addthis.com/images/button2-rssfeed.png" alt="addthis 2" style="width: 160px; height: 24px;" />最近為了讓
讀者能方便、迅速地把文章加入社交書籤，許多Blog都加上了快速連結的按鈕，例如<a target="_blank" href="http://www.hemidemo.com">HemiDemi</a>或<a target="_blank" href="http://myshare.url.com.tw">MyShare
</a>等按鈕，每個按鈕連結到不同的書籤系統；今天偶爾發現的<a target="_blank" href="http://www.addthis.com">AddThis</a>卻將常見的各個書籤系統都彙整在一起，用一個按鈕開啟一個網
頁讓使用者選擇要加到那一個籤系統裡，同時提供JavaScript讓使用者能加到網頁裡，另外也提供了RSS的訂閱按鈕。<br />
<br />
不過，書籤系統裡是沒有<a target="_blank" href="http://www.hemidemo.com/">HemiDemi</a>或<a target="_blank" href="http://myshare.url.com.tw/">MyShare</a>的，
雖然中文的顯示有些問題，但進入到加入書籤網頁時中文又正常出現了。如果你同時使用多個書籤系統，<a target="_blank" href="http://www.addthis.com/">AddThis</a>功
能還頗值得一試。<br />
<br />
<img src="http://b.blog.xuite.net/b/3/a/c/11893557/blog_10351/txt/10132011/0.jpg" alt="addthis page" style="width: 496px; height: 567px;" /><br />
<br />
<br />
##<br />

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2715781.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2715781.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2715781.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Sun, 11 Feb 2007 17:29:11 +0800</pubDate>
</item>
<item>
	<title>刪除大批的垃圾回應</title>
	<description><![CDATA[
			今天一口氣刪掉358個垃圾回應，樂多點數由1604p驟降至1246p，這些垃圾大部份集中在一十月，十二月就變少了；再給樂多一次機會，將回應與引用再次開啟。刪除操作時覺得樂多的回應變快了，以前刪除後的進度光捧由50%到100%都要好幾秒，今晚倒是變得飛快，希望這個速度能繼續保持。## 

		]]>
	</description>
	<content:encoded><![CDATA[
			今天一口氣刪掉358個垃圾回應，樂多點數由1604p驟降至1246p，這些垃圾大部份集中在一十月，十二月就變少了；再給樂多一次機會，將回應與引用再次開啟。<br /><br />刪除操作時覺得樂多的回應變快了，以前刪除後的進度光捧由50%到100%都要好幾秒，今晚倒是變得飛快，希望這個速度能繼續保持。<br /><br />##<br /> 

		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2650685.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2650685.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2650685.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Tue, 16 Jan 2007 21:59:06 +0800</pubDate>
</item>
<item>
	<title>FireFox 2.0錯誤的解決方法</title>
	<description><![CDATA[
			
終於由網絡暴民 Jacky’s Blog看到了造成FireFox底部----＜menuitem錯誤的原因與解法了。原因：安裝JDK 6.0時，由於JDK 6.0安裝時把繁體中文的目錄寫錯，導致出現錯誤解法：按照網絡暴民 Jacky’s Blog內的說明，或本篇的說明將zh_TW修改成zh-TW後，必須進入FireFox的「安全模式」，由功能表找了半天也無法尋獲，原來是指：使用-safe-mode參數，步驟如下：進入DOS模式cd &quot;c:Program FilesMozilla Firefox&quot;firefox.exe  -safe-mode進入安全模式後，關閉，再次啟動，錯誤就消失了。##
		]]>
	</description>
	<content:encoded><![CDATA[
			
終於由<a target="_blank" title="網絡暴民 Jacky’s Blog" href="http://jacky.seezone.net/">網絡暴民 Jacky’s Blog</a>看到了造成FireFox底部<span style="color: rgb(255, 0, 0); font-weight: bold;">----＜menuitem</span>錯誤的原因與解法了。<br /><ul><li>原因：安裝JDK 6.0時，由於JDK 6.0安裝時把繁體中文的目錄寫錯，導致出現錯誤</li><li>解法：按照<a title="網絡暴民 Jacky’s Blog" href="http://jacky.seezone.net/">網絡暴民 Jacky’s Blog</a>內的說明，或<a target="_blank" href="http://forum.moztw.org/viewtopic.php?t=16874&highlight=java">本篇</a>的說明</li></ul>將zh_TW修改成zh-TW後，必須進入FireFox的「安全模式」，由功能表找了半天也無法尋獲，原來是指：使用-safe-mode參數，步驟如下：<br /><ol><li>進入DOS模式</li><li>cd &quot;c:Program FilesMozilla Firefox&quot;</li><li>firefox.exe  -safe-mode</li></ol>進入安全模式後，關閉，再次啟動，錯誤就消失了。<br /><br />##<br />
		<a class="acontinues" href="http://blog.roodo.com/emisjerry/archives/2598974.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/emisjerry/archives/2598974.html</link>
	<guid>http://blog.roodo.com/emisjerry/archives/2598974.html</guid>
	<category>Blog工具箱</category>
	<pubDate>Mon, 25 Dec 2006 22:24:07 +0800</pubDate>
</item>
</channel>
</rss>