<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[史考特部落格園地]]></title>
<link>http://www.pro-soho.com/Blog/</link>
<description><![CDATA[生命就該浪費在美好的事物上]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog2 v2.4]]></copyright>
<webMaster><![CDATA[scooter.tw@gmail.com(Scott)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>史考特部落格園地</title> 
	<url>http://www.pro-soho.com/Blog/images/logos.gif</url> 
	<link>http://www.pro-soho.com/Blog/</link> 
	<description>史考特部落格園地</description> 
</image>

			<item>
			<link>http://www.pro-soho.com/Blog/default.asp?id=308</link>
			<title><![CDATA[Active Server Pages 事件]]></title>
			<author>scooter.tw@gmail.com(admin)</author>
			<category><![CDATA[小技能]]></category>
			<pubDate>Thu,22 Sep 2011 13:44:20 +0800</pubDate>
			<guid>http://www.pro-soho.com/Blog/default.asp?id=308</guid>	
		<description><![CDATA[事件 ID&#160;&#160;&#160;&#160;說明<br/>100&#160;&#160;&#160;&#160;記憶體不足 無法配置所需的記憶體。<br/>101&#160;&#160;&#160;&#160;意外的錯誤 - 函數傳回 |。<br/>102&#160;&#160;&#160;&#160;需要輸入字串 - 函數需要輸入字串。<br/>103&#160;&#160;&#160;&#160;需要輸入數字 - 函數需要輸入數字。<br/>104&#160;&#160;&#160;&#160;不允許操作。<br/>105&#160;&#160;&#160;&#160;索引超過範圍 - 陣列索引超過範圍。<br/>106&#160;&#160;&#160;&#160;類型不符 - 遇到未處理的資料類型。<br/>107&#160;&#160;&#160;&#160;堆疊溢位 - 處理中的資料超過許可限制。<br/>108&#160;&#160;&#160;&#160;建立物件失敗。 建立物件 &#39;%s&#39; 時發生錯誤。<br/>109&#160;&#160;&#160;&#160;找不到成員。<br/>110&#160;&#160;&#160;&#160;未知的名稱。<br/>111&#160;&#160;&#160;&#160;未知的介面。<br/>112&#160;&#160;&#160;&#160;不存在的參數。<br/>113&#160;&#160;&#160;&#160;指令等候逾時 - 超過可供指令檔執行的最長時間。 您可以指定一個新的逾時值給 Server.ScriptTimeOut 屬性或在 IIS 系統管理工具中變更這個逾時值。<br/>114&#160;&#160;&#160;&#160;物件非自由執行緒 - 應用程式物件只接受自由執行緒的物件；物件 &#39;%s&#39; 不是自由執行緒。<br/>115&#160;&#160;&#160;&#160;意外的錯誤 - 外部物件上發生一個可捕捉的錯誤 (%X)。 指令無法繼續執行。<br/>116&#160;&#160;&#160;&#160;缺少 script 分隔字元的結束符號 - Script 區塊缺少 script 標記的結束符號 (%&gt;)。<br/>117&#160;&#160;&#160;&#160;缺少 script 標記的結束符號 - Script 區塊缺少 script 標記的結束符號 (&lt;/SCRIPT&gt;) 或標記的結束符號 (&gt;)。<br/>118&#160;&#160;&#160;&#160;缺少 object 標記的結束符號 - Object 區塊缺少 object 標記的結束符號 (&lt;/OBJECT&gt;) 或標記的結束符號 (&gt;)。<br/>119&#160;&#160;&#160;&#160;缺少 Classid 或 Progid 屬性 - 物件例項 &#39;|&#39; 要求物件標記內有正確的 Classid 或 Progid。<br/>120&#160;&#160;&#160;&#160;不正確的 Runat 屬性 - Script 標記或 Object 標記的 Runat 屬性只能有 &#39;Server&#39; 值。<br/>121&#160;&#160;&#160;&#160;標記內有不正確的 Scope - 物件例項 &#39;|&#39; 不能有 Application 或 Session 作用範圍。 要建立有 Session 或 Application 作用範圍的物件例項，請將 Object 標記置於 Global.asa 檔案。<br/>122&#160;&#160;&#160;&#160;標記內有不正確的 Scope - 物件例項 &#39;|&#39; 必須有 Application 或 Session 作用範圍。 這個方法可以套用到所有在 Global.asa 檔案內建立的物件。<br/>123&#160;&#160;&#160;&#160;缺少 Id 屬性 - 缺少所需的 Object 標記的 Id 屬性。<br/>124&#160;&#160;&#160;&#160;缺少 Language 屬性 - 缺少所需的 Script 標記的 Language 屬性。<br/>125&#160;&#160;&#160;&#160;缺少屬性的結束符號 - &#39;|&#39; 的屬性值沒有結束的分隔符號。<br/>126&#160;&#160;&#160;&#160;找不到包含檔 - 找不到包含檔 &#39;|&#39;。<br/>127&#160;&#160;&#160;&#160;缺少 HTML 註解的結束符號 - HTML 註解或包含的伺服器端缺少結束標記 (--&gt;)。<br/>128&#160;&#160;&#160;&#160;缺少 File 或 Virtual 屬性 - 標題檔檔名必須使用 File 或 Virtual 屬性來指定。<br/>129&#160;&#160;&#160;&#160;未知的指令語言 - 伺服器上找不到指令語言 &#39;|&#39;。<br/>130&#160;&#160;&#160;&#160;不正確的檔案屬性 - 檔案屬性 &#39;|&#39; 不能以斜線或反斜線為起首。<br/>131&#160;&#160;&#160;&#160;不允許的上層路徑 - 包含檔 &#39;|&#39; 不能包含 &#39;..&#39; 來指出上層目錄。<br/>132&#160;&#160;&#160;&#160;編譯錯誤 - 無法處理 Active Server Page &#39;|&#39;。<br/>133&#160;&#160;&#160;&#160;不正確的 ClassID 屬性 - 物件標記有不正確的 &#39;|&#39; ClassID。<br/>134&#160;&#160;&#160;&#160;不正確的 ProgID 屬性 - 物件標記有不正確的 &#39;|&#39; ProgID。<br/>135&#160;&#160;&#160;&#160;循環包含 - 檔案 &#39;|&#39; 包含它本身 (可能是間接地)。 請檢查其他包含陳述式的包含檔案。<br/>136&#160;&#160;&#160;&#160;不正確的物件例項名稱 - 物件例項 &#39;|&#39; 正嘗試使用保留名稱。 這個名稱是由 Active Server Pages 本質物件所使用。<br/>137&#160;&#160;&#160;&#160;不正確的 Global 指令 - Script 區塊必須是允許的 Global.asa 程序之一。 Global.asa 檔案內不允許有 &lt;% ... %&gt; 之間的 script 語句。 允許的程序名稱為 Application_OnStart、Application_OnEnd、Session_OnStart 或 Session_OnEnd。<br/>138&#160;&#160;&#160;&#160;交叉的 Script 區塊 - Script 區塊無法放在另一個 script 區塊內。<br/>139&#160;&#160;&#160;&#160;交叉的 Object - Object 標記無法放在另一個 object 標記內。<br/>140&#160;&#160;&#160;&#160;頁命令順序混淆 - @ 命令必須是 Active Server Page 內的第一個命令。<br/>141&#160;&#160;&#160;&#160;頁命令重複 - Active Server Page 內只可使用一次 @ 命令。<br/>142&#160;&#160;&#160;&#160;執行緒符記錯誤 - 執行緒符記無法開啟。<br/>143&#160;&#160;&#160;&#160;不正確的應用程式名稱 - 找不到正確的應用程式名稱。<br/>144&#160;&#160;&#160;&#160;初始化錯誤 - 頁級物件清單初始化失敗。<br/>145&#160;&#160;&#160;&#160;新增應用程式失敗 - 無法新增應用程式。<br/>146&#160;&#160;&#160;&#160;新增工作階段失敗 - 無法新增工作階段。<br/>147&#160;&#160;&#160;&#160;伺服器錯誤。<br/>148&#160;&#160;&#160;&#160;伺服器忙碌中。<br/>149&#160;&#160;&#160;&#160;應用程式正在重新啟動 應用程式重新啟動時無法處理要求。<br/>150&#160;&#160;&#160;&#160;應用程式目錄錯誤 - 無法開啟應用程式目錄。<br/>151&#160;&#160;&#160;&#160;變更通知錯誤 - 無法建立變更通知事件。<br/>152&#160;&#160;&#160;&#160;安全性錯誤 處理使用者的安全性憑證時發生錯誤。<br/>153&#160;&#160;&#160;&#160;執行緒錯誤 - 新的執行緒要求失敗。<br/>154&#160;&#160;&#160;&#160;寫入 HTTP 標題錯誤 - 無法將 HTTP 標題寫入用戶端瀏覽器。<br/>155&#160;&#160;&#160;&#160;寫入頁內容錯誤 - 無法將頁內容寫入用戶端瀏覽器。<br/>156&#160;&#160;&#160;&#160;標題錯誤 - 已將 HTTP 標題寫入用戶端瀏覽器。 對任何 HTTP 的標題所做的修改必須要在寫入頁內容之前。<br/>157&#160;&#160;&#160;&#160;緩衝處理開啟 - 一旦開啟緩衝處理，就不能將它關閉。<br/>158&#160;&#160;&#160;&#160;缺少 URL - 必須有 URL。<br/>159&#160;&#160;&#160;&#160;緩衝處理關閉 - 緩衝處理必須是開啟狀態。<br/>160&#160;&#160;&#160;&#160;記錄失敗 - 無法將項目寫入日誌中。<br/>161&#160;&#160;&#160;&#160;資料類型錯誤 - Variant 到字串變數間的轉換失敗。<br/>162&#160;&#160;&#160;&#160;無法修改 Cookie - 無法修改 cookie &#39;ASPSessionID&#39;。 它是保留的 cookie 名稱。<br/>163&#160;&#160;&#160;&#160;逗號的使用不正確 - 日誌項目內無法使用逗號。 請選取另一個分隔字元。<br/>164&#160;&#160;&#160;&#160;不正確的 TimeOut 值 - 指定了不正確的 TimeOut 值。<br/>165&#160;&#160;&#160;&#160;SessionID 錯誤 - 無法建立 SessionID 字串。<br/>166&#160;&#160;&#160;&#160;未初始化的物件 - 嘗試存取未初始化的物件。<br/>167&#160;&#160;&#160;&#160;工作階段初始化錯誤 - 當初始化工作階段物件時發生錯誤。<br/>168&#160;&#160;&#160;&#160;不允許的物件使用 - 本質物件無法儲存在工作階段物件內。<br/>169&#160;&#160;&#160;&#160;缺少物件資訊 - 缺少資訊的物件無法儲存在 Session 物件中。 必須要有物件的執行緒模式資訊。<br/>170&#160;&#160;&#160;&#160;刪除工作階段錯誤 - 工作階段並未適當地刪除。<br/>171&#160;&#160;&#160;&#160;缺少路徑 - 必須指定 MapPath 方法的路徑參數。<br/>172&#160;&#160;&#160;&#160;不正確的路徑 - MapPath 方法的路徑參數必須是虛擬路徑。 您使用了實體路徑。<br/>173&#160;&#160;&#160;&#160;不正確的路徑字元 - MapPath 方法的路徑參數中指定了不正確的字元。<br/>174&#160;&#160;&#160;&#160;不正確的路徑字元 - MapPath 方法的路徑參數中有不正確的 &#39;/&#39; 或 &#39;\\&#39;。<br/>175&#160;&#160;&#160;&#160;不允許的路徑字元 - MapPath 方法的路徑參數中不允許有 &#39;..&#39; 字元。<br/>176&#160;&#160;&#160;&#160;找不到路徑 - MapPath 方法的路徑參數並未對應到已知的路徑。<br/>177&#160;&#160;&#160;&#160;Server.Cr&#101;ateObject 失敗。<br/>178&#160;&#160;&#160;&#160;Server.Cr&#101;ateObject 存取錯誤 - 當檢查使用權限時 Server.Cr&#101;ateObject 的呼叫失敗。 拒絕存取此物件。<br/>179&#160;&#160;&#160;&#160;應用程式初始化錯誤 - 初始化應用程式物件時發生錯誤。<br/>180&#160;&#160;&#160;&#160;不允許的物件使用 - 本質物件無法儲存在應用程式物件內。<br/>181&#160;&#160;&#160;&#160;不正確的執行緒模式 - 使用 apartment 執行緒模式的物件無法儲存在應用程式物件內。<br/>182&#160;&#160;&#160;&#160;缺少物件資訊 - 缺少資訊的物件無法儲存在應用程式物件中。 必須要有物件的執行緒模式資訊。<br/>183&#160;&#160;&#160;&#160;空的 Cookie 索引鍵 - 無法儲存有空索引鍵的 Cookie。<br/>184&#160;&#160;&#160;&#160;缺少 Cookie 名稱 - 必須為 Cookie 指定名稱。<br/>185&#160;&#160;&#160;&#160;缺少預設屬性 - 找不到物件的預設屬性。<br/>186&#160;&#160;&#160;&#160;錯誤的標記憑證。<br/>187&#160;&#160;&#160;&#160;物件新增衝突 - 無法將物件新增到應用程式。 應用程式已由另一個新增物件要求鎖定。<br/>188&#160;&#160;&#160;&#160;不允許的物件使用 - 無法將使用 object 標記所建立的物件新增到工作階段本質中。<br/>189&#160;&#160;&#160;&#160;不允許的物件使用 - 無法將使用 object 標記所建立的物件新增到應用程式本質中。<br/>190&#160;&#160;&#160;&#160;意外的錯誤 - 當釋放外部物件時發生可捕捉的錯誤。<br/>191&#160;&#160;&#160;&#160;意外的錯誤 - 外部物件的 OnStartPage 方法發生可捕捉的錯誤。<br/>192&#160;&#160;&#160;&#160;意外的錯誤 - 外部物件的 OnEndPage 方法發生可捕捉的錯誤。<br/>193&#160;&#160;&#160;&#160;OnStartPage 失敗 - 外部物件的 OnStartPage 方法發生錯誤。<br/>194&#160;&#160;&#160;&#160;OnEndPage 失敗 - 外部物件的 OnEndPage 方法發生錯誤。<br/>195&#160;&#160;&#160;&#160;不正確的伺服器方法呼叫 - Session_OnEnd 及 Application_OnEnd 時無法呼叫伺服器物件的這個方法。<br/>197&#160;&#160;&#160;&#160;不允許的物件使用 - 無法將含有 apartment 模式行為的物件新增到應用程式本質物件。<br/>198&#160;&#160;&#160;&#160;伺服器關閉。 無法處理要求。<br/>199&#160;&#160;&#160;&#160;不允許的物件使用 - 無法將 Jscript 物件新增到工作階段。<br/>200&#160;&#160;&#160;&#160; &#39;Expires&#39; 屬性超出範圍 - 提供給 &#39;Expires&#39; 的日期和時間在西元 1970 年 1 月 1 日之前，或在西元 2038 年 1 月 19 日，格林威治標準時間 3 點 14 分 7 秒之後。<br/>201&#160;&#160;&#160;&#160;登錄中有未知的指令語言 - 在伺服器中無法找到登錄中設定的語言 &#39;|&#39; 。<br/>202&#160;&#160;&#160;&#160;缺少字碼頁 - 缺少字碼頁屬性。<br/>203&#160;&#160;&#160;&#160;不正確的字碼頁 - 指定的字碼頁屬性不正確。<br/>205&#160;&#160;&#160;&#160;變更通知 - 無法建立變更通知的事件。<br/>206&#160;&#160;&#160;&#160;無法呼叫 BinaryRead - 使用 Request.Form 集合之後無法呼叫 BinaryRead。<br/>207&#160;&#160;&#160;&#160;無法使用 Request.Form - 呼叫 BinaryRead 之後無法使用 Request.Form 集合。<br/>208&#160;&#160;&#160;&#160;無法使用一般要求集合 - 呼叫 BinaryRead 之後無法使用一般要求集合。<br/>209&#160;&#160;&#160;&#160;TRANSACTION 屬性值不正確 - TRANSACTION 的屬性只能為 REQUIRED、REQUIRES_NEW、SUPPORTED 或 NOT_SUPPORTED。<br/>210&#160;&#160;&#160;&#160;未執行方法 - 尚未執行此方法。<br/>211&#160;&#160;&#160;&#160;物件超過範圍 - 內建的 ASP 物件已被參照，物件不再正確。<br/>212&#160;&#160;&#160;&#160;無法清除緩衝區 - 當已啟用用戶端偵錯時，Response.Flush 之後不允許執行 Response.Clear。<br/>214&#160;&#160;&#160;&#160;不正確的路徑參數 - 路徑參數超過允許的最大長度。<br/>215&#160;&#160;&#160;&#160;ENABLESESSIONSTATE 屬性值不正確 - ENABLESESSIONSTATE 的屬性只能為 TRUE 或 FALSE。<br/>216&#160;&#160;&#160;&#160;MSDTC 服務沒有在執行 - 如果 MSDTC 服務沒有在執行，就無法執行異動的網頁。<br/>217&#160;&#160;&#160;&#160;標記中有不正確的 scope - 物件作用範圍必須是 Page、Session 或 Application。<br/>218&#160;&#160;&#160;&#160;缺少 LCID - 缺少 LCID 屬性。<br/>219&#160;&#160;&#160;&#160;不正確的 LCID - 無法使用指定的 LCID。<br/>220&#160;&#160;&#160;&#160;系統不允許對 GLOBAL.ASA 的要求 系統不允許具有指向GLOBAL.ASA 的 URL 的要求。<br/>221&#160;&#160;&#160;&#160;不正確的 @ 命令語句 - 指定的 &#39;|&#39; 選項無法辨識或不正確。<br/>222&#160;&#160;&#160;&#160;不正確的 TypeLib 規格 - METADATA 標記包含了一個不正確的類型程式庫規格。<br/>223&#160;&#160;&#160;&#160;找不到 TypeLib - METADATA 標記包含了一個與任何登錄項目都不符合的類型程式庫規格。<br/>224&#160;&#160;&#160;&#160;無法載入 TypeLib - 無法載入 METADATA 標記中所指定的類型程式庫。<br/>225&#160;&#160;&#160;&#160;無法重疊 TypeLibs - 無法從 METADATA 標記中所指定的類型程式庫建立類型程式庫 Wrapper 物件。<br/>226&#160;&#160;&#160;&#160;無法修改 StaticObjects - 執行時期無法修改 StaticObjects 集合。<br/>227&#160;&#160;&#160;&#160;Server.Execute 失敗 - Server.Execute 的呼叫失敗。<br/>228&#160;&#160;&#160;&#160;Server.Execute 錯誤 - 當載入頁面時，erver.Execute 的呼叫失敗。<br/>229&#160;&#160;&#160;&#160;Server.Transfer 失敗 - 呼叫到 Server.Transfer 失敗。<br/>230&#160;&#160;&#160;&#160;Server.Transfer 錯誤 - 當載入頁面時，呼叫到 Server.Transfer 失敗。<br/>231&#160;&#160;&#160;&#160;Server.Execute 錯誤 - 使用無效的 URL 格式或完全合格的絕對 URL 位址。 使用相對的 URL 位址。<br/>232&#160;&#160;&#160;&#160;無效 Cookie 規格 - METADATA 標記含無效 Cookie 規格。<br/>233&#160;&#160;&#160;&#160;無法載入 cookie script 來源 - 無法載入指定在 METADATA 標記的 cookie script 來源檔案。<br/>234&#160;&#160;&#160;&#160;無效包含語句 - 含語句的伺服器站台不顯示在 script 區塊。 請使用 &lt;SCRIPT&gt; 標記的 SRC= 屬性。<br/>235&#160;&#160;&#160;&#160;Server.Transfer 錯誤 - 無效的 URL form格式或完全合格的絕對 URL 正在使用中。 請使用相對的 URL。<br/>236&#160;&#160;&#160;&#160;無效 Cookie 指定 - METADATA 標記含無效或缺失的 SRC 參數。<br/>237&#160;&#160;&#160;&#160;無效 Cookie 指定 - METADATA 標記含無效或缺失的 NAME 參數。<br/>238&#160;&#160;&#160;&#160;缺少屬性值 - 沒有指定值給 &#39;|&#39; 屬性。<br/>239&#160;&#160;&#160;&#160;無法處理檔案 - 不支援 UNICODE ASP 檔案。<br/>240&#160;&#160;&#160;&#160;指令引擎例外 - ScriptEngine 將例外 &#39;%X&#39; 由 &#39;%s&#39; 置入 &#39;%s&#39; 。<br/>241&#160;&#160;&#160;&#160;Cr&#101;ateObject 例外 - 引起例外 %X 的 Cr&#101;ateObject &#39;%s&#39;。<br/>242&#160;&#160;&#160;&#160;查詢 OnStartPage 介面例外 - 正在查詢的物件 &#39;%s&#39;&#39; OnStartPage 或 OnEndPage 方法導致例外 %X。]]></description>
		</item>
		
			<item>
			<link>http://www.pro-soho.com/Blog/default.asp?id=307</link>
			<title><![CDATA[Windows DNS 備份]]></title>
			<author>scooter.tw@gmail.com(admin)</author>
			<category><![CDATA[小技能]]></category>
			<pubDate>Thu,01 Sep 2011 16:09:32 +0800</pubDate>
			<guid>http://www.pro-soho.com/Blog/default.asp?id=307</guid>	
		<description><![CDATA[Windows DNS 備份<br/>1.建立次要DNS伺服器。<br/>2.備份主要DNS伺服器的資料。<br/>只要主要伺服器沒事，次要DNS伺服器故障很好處理，如果是主要伺服，就要靠備份了！<br/>那要備份哪些東西呢？<br/>1.備份註冊機碼<br/>進入註冊表編輯器對話框(regedit.exe)<br/>「HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS」「HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DNS Server」的部分都備份出來。<br/>這樣就完成了DNS註冊表的備份。<br/>2.備份DNS服務檔案<br/>備份「C:\Windows\System32\DNS」目錄裡的所有.dns的檔案。<br/>如何還原呢？<br/>1.在新的機器上先停止DNS服務，匯入備份的註冊機碼。<br/>2.將檔案複製到「C:\Windows\System32\DNS」目錄裡。<br/>3.將DNS Server啟動即可。<br/>除非有改設定，註冊機碼通常只要備份一次，而「C:\Windows\System32\DNS」只要有調整紀錄就要備份！]]></description>
		</item>
		
			<item>
			<link>http://www.pro-soho.com/Blog/default.asp?id=303</link>
			<title><![CDATA[讓Windows Server 2008 自動登錄方式]]></title>
			<author>scooter.tw@gmail.com(admin)</author>
			<category><![CDATA[小技能]]></category>
			<pubDate>Thu,01 Sep 2011 14:37:32 +0800</pubDate>
			<guid>http://www.pro-soho.com/Blog/default.asp?id=303</guid>	
		<description><![CDATA[Rundll32 netplwiz.dll,UsersRunDll]]></description>
		</item>
		
			<item>
			<link>http://www.pro-soho.com/Blog/default.asp?id=295</link>
			<title><![CDATA[實現透過CDO.Message寄發Gmail信件]]></title>
			<author>scooter.tw@gmail.com(admin)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Mon,19 Oct 2009 22:58:29 +0800</pubDate>
			<guid>http://www.pro-soho.com/Blog/default.asp?id=295</guid>	
		<description><![CDATA[礙於JMail本身對SSL之限制，若有Gmail發送信件需求朋友，可以透過CDO.Message實現<br/><br/>&lt;%<br/>dim myMail<br/>Set myMail=Cr&#101;ateObject(&#34;CDO.Message&#34;)<br/>myMail.Configuration.Fields.Item(&#34;<a href="http://schemas.microsoft.com/cdo/configuration/sendusing" target="_blank">http://schemas.microsoft.com/cdo/configuration/sendusing</a>&#34;) = 2<br/>myMail.Configuration.Fields.Item(&#34;<a href="http://schemas.microsoft.com/cdo/configuration/smtpserver" target="_blank">http://schemas.microsoft.com/cdo/configuration/smtpserver</a>&#34;) = &#34;smtp.gmail.com&#34;<br/>myMail.Configuration.Fields.Item(&#34;<a href="http://schemas.microsoft.com/cdo/configuration/smtpserver" target="_blank">http://schemas.microsoft.com/cdo/configuration/smtpserver</a>port&#34;) = 465<br/>&#39;Authentication method, ssl o&#114; not, Username and password for the SMTP Server<br/>myMail.Configuration.Fields.Item(&#34;<a href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" target="_blank">http://schemas.microsoft.com/cdo/configuration/smtpauthenticate</a>&#34;) = 1<br/>myMail.Configuration.Fields.Item(&#34;<a href="http://schemas.microsoft.com/cdo/configuration/smtpusessl" target="_blank">http://schemas.microsoft.com/cdo/configuration/smtpusessl</a>&#34;) = true<br/>myMail.Configuration.Fields.Item(&#34;<a href="http://schemas.microsoft.com/cdo/configuration/sendusername" target="_blank">http://schemas.microsoft.com/cdo/configuration/sendusername</a>&#34;) = &#34;你的Gmail帳號&#34;<br/>myMail.Configuration.Fields.Item(&#34;<a href="http://schemas.microsoft.com/cdo/configuration/sendpassword" target="_blank">http://schemas.microsoft.com/cdo/configuration/sendpassword</a>&#34;) = &#34;你的Gmail密碼&#34;<br/>&#39;-------------------------------------<br/>myMail.Configuration.Fields.Up&#100;ate<br/>myMail.From = &#34;&lt;xxxxxxx@gmail.com&gt;&#34;<br/>myMail.To = &#34;&lt;xxxxxx@yahoo.com.tw&gt;&#34;<br/>myMail.Subject =&#34;&#34; <br/>myMail.TextBody = &#34;&#34;<br/>myMail.Send<br/>set myMail=nothing<br/>%&gt;<br/><br/>-------------------------------------------------------------------------------------------------------------------<br/>CDO 郵件元件使用方法 <br/>Microsoft從Windows Server 2000 及 Windows XP開始內建郵件元件已改為CDO <br/>在之前的系統內建郵件元件則是 CDONTS，各位要注意，以下是CDO的用法 <br/><br/>屬性 說明 <br/>Subject 郵件的主旨 <br/>From 寄件人的電子郵件信箱 <br/>To&nbsp;&nbsp; 收件人的電子郵件，可用分號；或逗號，斷開成多位收件人 <br/>CC&nbsp;&nbsp; 副本收件人的電子郵件，可用分號；或逗號，斷開成多位收件人 <br/>BCC 密送副本收件人的電子郵件，可用分號；或逗號，斷開成多位收件人 <br/>TextBody 郵件的本文-純文字模式 <br/>HTMLBody 郵件的本文-HTML模式 <br/><br/>方法 說明 <br/>Send 送出郵件 <br/>AddAttachment &#34;c:\mydocuments\test.txt&#34; 附件 <br/>Cr&#101;ateMHTMLBody &#34;<a href="http://www.w3schools.com/asp/" target="_blank">http://www.w3schools.com/asp/</a>&#34; 將一個網頁用HTML格式送出 <br/>Cr&#101;ateMHTMLBody &#34;file://c:/mydocuments/test.htm&#34; 將本機硬碟中的一個網頁用HTML格式送出 <br/><br/>範例： <br/>送出一封純文字信件: <br/>&lt;% <br/>Set myMail=Cr&#101;ateObject(&#34;CDO.Message&#34;) <br/>myMail.Subject=&#34;Sending email with CDO&#34; <br/>myMail.From=&#34;mymail@mydomain.com&#34; <br/>myMail.To=&#34;someone@somedomain.com&#34; <br/>myMail.TextBody=&#34;This is a message.&#34; <br/>myMail.Send <br/>set myMail=nothing <br/>%&gt; <br/><br/>送出一封純文字信件並給副本收件人及密送副本收件人 <br/>&lt;% <br/>Set myMail=Cr&#101;ateObject(&#34;CDO.Message&#34;) <br/>myMail.Subject=&#34;Sending email with CDO&#34; <br/>myMail.From=&#34;mymail@mydomain.com&#34; <br/>myMail.To=&#34;someone@somedomain.com&#34; <br/>myMail.Bcc=&#34;someoneelse@somedomain.com&#34; <br/>myMail.Cc=&#34;someoneelse2@somedomain.com&#34; <br/>myMail.TextBody=&#34;This is a message.&#34; <br/>myMail.Send <br/>set myMail=nothing <br/>%&gt; <br/><br/>送出一封HTML信件 <br/>&lt;% <br/>Set myMail=Cr&#101;ateObject(&#34;CDO.Message&#34;) <br/>myMail.Subject=&#34;Sending email with CDO&#34; <br/>myMail.From=&#34;mymail@mydomain.com&#34; <br/>myMail.To=&#34;someone@somedomain.com&#34; <br/>myMail.HTMLBody = &#34;&lt;h1&gt;This is a message.&lt;/h1&gt;&#34; <br/>myMail.Send <br/>set myMail=nothing <br/>%&gt; <br/><br/>將一個網頁用HTML格式送出 <br/>&lt;% <br/>Set myMail=Cr&#101;ateObject(&#34;CDO.Message&#34;) <br/>myMail.Subject=&#34;Sending email with CDO&#34; <br/>myMail.From=&#34;mymail@mydomain.com&#34; <br/>myMail.To=&#34;someone@somedomain.com&#34; <br/>myMail.Cr&#101;ateMHTMLBody &#34;<a href="http://www.w3schools.com/asp/" target="_blank">http://www.w3schools.com/asp/</a>&#34; <br/>myMail.Send <br/>set myMail=nothing <br/>%&gt; <br/><br/>將本機硬碟中的一個網頁用HTML格式送出 <br/>&lt;% <br/>Set myMail=Cr&#101;ateObject(&#34;CDO.Message&#34;) <br/>myMail.Subject=&#34;Sending email with CDO&#34; <br/>myMail.From=&#34;mymail@mydomain.com&#34; <br/>myMail.To=&#34;someone@somedomain.com&#34; <br/>myMail.Cr&#101;ateMHTMLBody &#34;file://c:/mydocuments/test.htm&#34; <br/>myMail.Send <br/>set myMail=nothing <br/>%&gt; <br/><br/>送出一封純文字信件並含附件 <br/>&lt;% <br/>Set myMail=Cr&#101;ateObject(&#34;CDO.Message&#34;) <br/>myMail.Subject=&#34;Sending email with CDO&#34; <br/>myMail.From=&#34;mymail@mydomain.com&#34; <br/>myMail.To=&#34;someone@somedomain.com&#34; <br/>myMail.TextBody=&#34;This is a message.&#34; <br/>myMail.AddAttachment &#34;c:\mydocuments\test.txt&#34; <br/>myMail.Send <br/>set myMail=nothing <br/>%&gt; <br/><br/>Sending a text e-mail using a remote server: <br/><br/>用遠端SMTP主機送出一封純文字信件 <br/>&lt;% <br/>Set myMail=Cr&#101;ateObject(&#34;CDO.Message&#34;) <br/>myMail.Subject=&#34;Sending email with CDO&#34; <br/>myMail.From=&#34;mymail@mydomain.com&#34; <br/>myMail.To=&#34;someone@somedomain.com&#34; <br/>myMail.TextBody=&#34;This is a message.&#34; <br/>myMail.Configuration.Fields.Item (&#34;<a href="http://schemas.microsoft.com/cdo/configuration/sendusing" target="_blank">http://schemas.microsoft.com/cdo/configuration/sendusing</a>&#34;) =2 <br/>&#39;遠端SMTP主機名稱或IP位址 <br/>myMail.Configuration.Fields.Item (&#34;<a href="http://schemas.microsoft.com/cdo/configuration/smtpserver" target="_blank">http://schemas.microsoft.com/cdo/configuration/smtpserver</a>&#34; )=&#34;smtp.server.com&#34; <br/>&#39;遠端SMTP主機埠號 Server port <br/>myMail.Configuration.Fields.Item (&#34;<a href="http://schemas.microsoft.com/cdo/configuration/smtpserver" target="_blank">http://schemas.microsoft.com/cdo/configuration/smtpserver</a>p o&#114;t&#34;) =25 <br/>myMail.Configuration.Fields.Up&#100;ate <br/>myMail.Send <br/>set myMail=nothing <br/>%&gt; <br/>]]></description>
		</item>
		
			<item>
			<link>http://www.pro-soho.com/Blog/default.asp?id=294</link>
			<title><![CDATA[利用text-align:justify完成單行文字兩端對齊]]></title>
			<author>scooter.tw@gmail.com(admin)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Sun,18 Jan 2009 22:18:41 +0800</pubDate>
			<guid>http://www.pro-soho.com/Blog/default.asp?id=294</guid>	
		<description><![CDATA[text-align:justify只能對多行中的非最後一行進行兩端對齊。對於單行自己沒辦法，IE有text-justify 可以解決問題，對了非IE的我的方式比較垃圾，因為只在特殊場合下才會用。<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">.justify{<br/>height:1.1em;<br/>overflow:hidden;<br/>text-align:justify;<br/>text-justify :distribute-all-lines;<br/>}<br/>div.cn:after {<br/>content: &#34;__________________________________________&#34;;<br/>font-size:100px;<br/>} </div></div><br/><br/>對了非IE的我是使用content還增加內容達到有第二行，才會在第一行兩端對齊。<br/><br/>不過各瀏覽器對中文的理解不一樣。Firefox 是直接分割中文，Opera不會分割中文，只認空格，要是在中文中間插點半角的英文或者標號它還會對不齊，safari接近Opera。都是不加空格沒法分<br/><br/>英文比較好，因為大家只能用空格分來單詞，不過IE用text-justify :distribute-all-lines來分真是難看得要命。本來想過用htc或者js幫IE，可是發現,IE6好笨的說，家裡沒IE7不知道怎樣。<br/><br/>或者敲空格是一種比較好的方式，可firefox這種只放大文本的瀏覽器一放大文字就XX了，寫的那個爛方法也只有在一定的情況下有用，想起一句話：珍惜生命，遠離Firefix!(作者的想法，我的想法全世界只有一個瀏覽器就好！) <br/>]]></description>
		</item>
		
			<item>
			<link>http://www.pro-soho.com/Blog/default.asp?id=284</link>
			<title><![CDATA[line-height屬性的繼承問題]]></title>
			<author>scooter.tw@gmail.com(admin)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,30 Jul 2008 22:05:55 +0800</pubDate>
			<guid>http://www.pro-soho.com/Blog/default.asp?id=284</guid>	
		<description><![CDATA[淘寶商城 的detail 頁面「產品詳情」部分是商家自定義區塊，曾出現這樣一個問題：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">&lt;style type=&#34;text/css&#34;&gt;<br/>p {<br/>&nbsp;&nbsp;&nbsp;&nbsp;line-height:17px;<br/>}<br/>&lt;/style&gt;<br/><br/>&lt;div class=&#34;mdse-detail&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;strong style=&#34;font-size:30px&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;品牌：XZX&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;市場價：145元&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;顏色：黑色&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;面料：棉&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;尺碼：S&nbsp;&nbsp;M&nbsp;&nbsp;L&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;衣長：S 89&nbsp;&nbsp;M 90&nbsp;&nbsp; L 91&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;肩寬：S 35&nbsp;&nbsp;M 36&nbsp;&nbsp; L 37&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;胸圍：S 88&nbsp;&nbsp;M 92&nbsp;&nbsp; L 96&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;下擺：S 104 M 108&nbsp;&nbsp;L 112&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;袖長：S 17&nbsp;&nbsp;M 17.5 L18&lt;br /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由於測量方法不同，誤差在2CM左右！<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/strong&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/p&gt;<br/>&lt;/div&gt;</div></div><br/><br/>你會發現上面例子的文字會重疊在一起！這是什麼原因呢？<br/><br/>由於.detail-content 中的 p 元素繼承了默認設置的全局樣式 line-height:17px，而自定義區塊又是由商家自定義，其內字體被設置為了 font-size:30px;（可能為任意值），根據 Inline formatting model，得知該文字的 line-box 高為 17px，多出的字體部分上下溢出，所以會出現字體重疊的現象。<br/><br/>那這個問題如何解決呢？<br/><br/>解決方案：我們給 .mdse-detail 下的 p 元素設定樣式屬性 line-height:1.4。<br/><br/>為什麼解決方案裡的 1.4 不帶單位？<br/><br/>元素的 line-height 屬性值會繼承父元素（或祖先元素）的 line-height 屬性值，如果屬性值有單位，則繼承的值是換算後具體的 px 值而非原始的值（比如：em、%），而如果屬性值沒有單位，則瀏覽器會繼承數值（無單位），然後根據該元素的 font-size 值重新解析得到新的 line-height 值。這個和 table 的 tr 設置 display 屬性有一點點類似（tr.style.display = 」;，IE 顯示 block，而 Firefox 等標準瀏覽器顯示 table-row）。<br/><br/>還有另外一個相對低效的方法，但也不失為一個快捷的解決方案：<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">.mdse-detail p * {<br/>&nbsp;&nbsp;&nbsp;&nbsp;line-height:140%;<br/>}</div></div><br/><br/>參考閱讀：《Unitless line-heights》<a href="http://www.blueidea.com/tech/web/2008/6014.asp" target="_blank">http://www.blueidea.com/tech/web/2008/6014.asp</a><br/><br/>個人會建議使用em這個單位來解決，例如：1.6em，另外關於繼承的問題，始於文字屬性的部份都是會繼承的，好比文字大小、字型、顏色、行距、字元間距等，這些都是會繼承的，其他屬性是不可以繼承的，好比寬度，一個DIV裡面又包了幾個DIV，外面DIV(父)設定寬度100PX，裡面(子)也繼承為100PX，這樣不就天下大亂了！]]></description>
		</item>
		
			<item>
			<link>http://www.pro-soho.com/Blog/default.asp?id=281</link>
			<title><![CDATA[Google 地圖API 實作範例 (教你回何將Google地圖放到網頁中.)]]></title>
			<author>scooter.tw@gmail.com(admin)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Mon,14 Jul 2008 20:55:33 +0800</pubDate>
			<guid>http://www.pro-soho.com/Blog/default.asp?id=281</guid>	
		<description><![CDATA[<img src="http://www.pro-soho.com/Blog/attachments/month_0802/Map.gif" border="0" alt=""/><br/><br/>今天興致來朝玩了一下Google的Map，覺得還真的不錯，尤其開放了API之後，受益最多的應該是牽涉到旅遊、休閒..等涉及地圖服務相關網站，真的挺方便的喔！小弟就簡單的介紹一下如何利用Google所提供之 Maps API 將 Google 地圖服務內嵌到你的網頁中，並且將座標定至你所要標記的地點。<br/><br/>步驟1：先至 Google Maps 申請一組 API Key (網址：<a href="http://www.google.com/apis/maps/signup.html" target="_blank">http://www.google.com/apis/maps/signup.html</a>)<br/><br/>1. 將核取控制項打勾(I have read and agree with the terms and conditions的那個按鈕)，並將欲申請Google Maps API的網址填入(例如像本站就輸入：<a href="http://www.pro-soho.com" target="_blank">http://www.pro-soho.com</a> )。<br/><br/>2. 按 &#34;Generate API Key&#34; 取得 Key。<br/><br/>3. 最後會出現三個方塊，分別是你取得的 Key (Your key is)，你設定之URL(This key is good for all URLs in this directory:)，以及一個範例(Here is an example web page to get you started on your way to mapping glory)。<br/><br/>範例中會有如下的片段：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">&lt;script src=&#34;<a href="http://maps.google.com/maps?file=api" target="_blank">http://maps.google.com/maps?file=api</a>&amp;v=2&amp;key=ABQIAAAAU42K6cZiPBspSseDAjgVrxRepqq5VEHxc05H62box0rt476kmhQ0nk6V2K6RWEv9xHr3ovELZDXswA&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type=&#34;text/javascript&#34;&gt;&lt;/script&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;script type=&#34;text/javascript&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;//&lt;![CDATA[<br/>&nbsp;&nbsp;&nbsp;&nbsp;function load() {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (GBrowserIsCompatible()) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var map = new GMap2(document.getElementById(&#34;map&#34;));<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map.setCenter(new GLatLng(24.854726,121.232184), 13);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;//]]&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/script&gt;<br/></div></div><br/>此段中(key=ABQIAAAAU42K6cZiPBspSseDAjgVrxRepqq5VEHxc05H62box0rt476kmhQ0nk6V2K6RWEv9xHr3ovELZDXswA)<br/>等於後面的這串ABQ......swA就是你的key，整段JavaScript需放至HTML中之&lt;head&gt;&lt;/head&gt;之間。<br/><br/>步驟2：取得欲標記的地點的經緯座標值<br/><br/><br/>1. 進入 Google Maps搜尋頁面：<a href="http://maps.google.com/maps/ms?ie=UTF8" target="_blank">http://maps.google.com/maps/ms?ie=UTF8</a>&amp;hl=zh-TW&amp;msa=2<br/>2. 輸入欲標記的地點的地址或名稱，並按&#34;搜尋地圖&#34;(例如：桃園大飯店)。<br/>3. 確認搜尋結果無誤後，請按&#34;連結至此網頁&#34;，取得地圖的連結。<br/>連結如下：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">http://maps.google.com/maps?f=q&amp;hl=zh-TW&amp;geocode=&amp;q=%E6%A1%83%E5%9C%92%E5%A4%A7%E9%A3%AF%E5%BA%97&amp;ie=UTF8&amp;ll=24.853419,121.231384&amp;spn=0.255451,0.422974&amp;z=11</div></div><br/><br/>步驟3：將以下範例程式片段copy到&lt;body&gt;&lt;/body&gt;之間：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">&lt;!--Google Map 顯示的位置，可自由決定大小--&gt;<br/>&lt;div id=&#34;mymap&#34; style=&#34;width: 500px; height: 500px&#34;&gt;&lt;/div&gt;<br/><br/>&lt;!--以下為控制Google Maps的JavaScript--&gt;<br/>&lt;script type=&#34;text/javascript&#34;&gt;<br/><br/>//&lt;![CDATA[<br/>var map = new GMap(document.getElementById(&#34;mymap&#34;));<br/><br/>//設定要顯示的控制項<br/>map.addControl(new GSmallMapControl());<br/>map.addControl(new GMapTypeControl());<br/><br/>//決定你 Google 地圖的中心點位置和縮放大小<br/>map.setCenter(new GLatLng(24.853419,121.231384), 16);<br/><br/>//標記在 Google 地圖上的經緯度<br/>var point = new GLatLng(24.853419,121.231384);<br/>var marker = new GMarker(point);<br/>map.addOverlay(marker);<br/><br/>//在地圖上放置標點說明<br/>var html = &#34;桃園大飯店&#34;;<br/>map.openInfoWindowHtml (map.getCenter(), html);<br/><br/>//]]&gt;<br/>&lt;/script&gt; <br/></div></div><br/><br/>範例網址：<a target="_blank" href="http://www.pro-soho.com/Blog/GoogleMap.htm">http://www.pro-soho.com/Blog/GoogleMap.htm</a><br/><br/><br/>相關參數說明：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">//設定要顯示的控制項<br/>map.addControl(new GSmallMapControl());<br/>map.addControl(new GMapTypeControl<br/>()); </div></div><br/><br/>Google Maps API 內建四種控制項：<br/><br/>1. GLargeMapControl : 適合給大型地圖的控制項。<br/>2. GSmallMapControl : 適合給小型地圖的控制項。<br/>3. GSmallZoomControl : 只有 Zoom Level 的調整，沒有地圖移動控制。<br/>4. GMapTypeControl : 顯示地圖型態切換的控制項。 <br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">//決定你 Google 地圖的中心點位置和縮放大小<br/>map.setCenter(new GLatLng(24.853419,121.231384), 16);</div></div><br/><br/>設定 Google 地圖的中心點位置和縮放大小：<br/><br/>1. setCenter(GLatLng(經度, 緯度), [+ 放大(近)] -&gt; [- 縮小(遠)]); <br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">//標記在 Google 地圖上的經緯度<br/>var point = new GLatLng(24.853419,121.231384);<br/>var marker = new GMarker(point);<br/>map.addOverlay(marker);<br/><br/>//在此標記所要顯示的資訊<br/>var html = &#34;桃園大飯店&#34;;<br/>map.openInfoWindowHtml (map.getCenter(), html);</div></div><br/><br/>在地圖上標記地點：<br/><br/>1. 設定座標值：<br/>var point = new GLatLng(24.853419,121.231384);<br/>var marker = new GMarker(point);<br/><br/>2. 在地圖上放置標點 :<br/>map.addOverlay(marker);<br/><br/>3. 在地圖上放置標點說明 :<br/>var html = &#34;桃園大飯店&#34;;<br/>map.openInfoWindowHtml (map.getCenter(), html ]]></description>
		</item>
		
			<item>
			<link>http://www.pro-soho.com/Blog/default.asp?id=282</link>
			<title><![CDATA[輸入框高度自動增加]]></title>
			<author>scooter.tw@gmail.com(admin)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Mon,14 Jul 2008 20:39:25 +0800</pubDate>
			<guid>http://www.pro-soho.com/Blog/default.asp?id=282</guid>	
		<description><![CDATA[一個文字輸入框，若輸入內容超過寬度換行後，輸入框的高度隨之改變，增加一行高，像gtalk的輸入框一樣。<br/>想了想用css的overflow控制&lt;textarea&gt;，好像不能達到這效果。不知各位能否用js做出來？<br/><br/><br/>[html]&lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;&gt;<br/>&lt;html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&#34;&gt;<br/>&lt;head&gt;<br/>&lt;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&gt;<br/>&lt;title&gt;nothing is impossible&lt;/title&gt;<br/>&lt;style type=&#34;text/css&#34; media=&#34;screen&#34;&gt;<br/>* {margin:0;padding:0;}<br/>body {font-family:Arial,Helvetica,sans-serif;font-size:12px;}<br/>ul {list-style-type:none;}<br/>&lt;/style&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>&lt;textarea cols=&#34;40&#34; rows=&#34;4&#34;&gt;&lt;/textarea&gt;<br/>&lt;/body&gt;<br/>&lt;script type=&#34;text/javascript&#34;&gt;<br/>var ta=document.getElementsByTagName(&#39;textarea&#39;)[0];<br/>ta.onkeyup=function(ev) {<br/>var e=ev||window.event;<br/>if (e.keyCode==13) {<br/>var ar=ta.getAttribute(&#39;rows&#39;);<br/>ar++;<br/>ta.setAttribute(&#39;rows&#39;,ar);<br/>}<br/>}<br/>&lt;/script&gt;<br/>&lt;/html&gt;[html]]]></description>
		</item>
		
			<item>
			<link>http://www.pro-soho.com/Blog/default.asp?id=280</link>
			<title><![CDATA[如何將全形英文字、數值轉半形]]></title>
			<author>scooter.tw@gmail.com(admin)</author>
			<category><![CDATA[ASP]]></category>
			<pubDate>Fri,11 Jul 2008 23:08:46 +0800</pubDate>
			<guid>http://www.pro-soho.com/Blog/default.asp?id=280</guid>	
		<description><![CDATA[最近有網友詢問如何將全形英文字、數值轉成半形(作為使用者資料輸入之驗證)<br/>提供以下函數供需要的網友直接使用<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">Function ChgToHalfStr(strInput) <br/>strFullshape=&#34;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-_~+, ?!@#$%^&amp;*().&#34; <br/>&nbsp;&nbsp;strHalfshape=&#34;ＡＢＣＤＥＦＧＨＩＪＫＬＭＮＯＰＱＲＳＴＵＶＷＸＹＺａｂｃｄｅｆｇｈｉｊｋｌｍｎｏｐｑｒｓｔｕｖｗｘｙｚ１２３４５６７８９０－＿～＋，　？！＠＃＄％︿＆＊（）‧&#34; <br/>&nbsp;&nbsp;For Subi=1 To len(strFullshape) <br/>&nbsp;&nbsp;&nbsp;&nbsp;strInput=Replace(strInput,Mid(strHalfshape,Subi,1),Mid(strFullshape,Subi,1)) <br/>&nbsp;&nbsp;Next <br/>&nbsp;&nbsp;ChgToHalfStr=strInput <br/>End Function</div></div><br/><br/>這是我的作法，如果格友有更具效率的寫法，歡迎分享喔~<br/>那如果是要將半形轉全形呢？聰明的您~應該不難反解了吧....]]></description>
		</item>
		
			<item>
			<link>http://www.pro-soho.com/Blog/default.asp?id=279</link>
			<title><![CDATA[解決 Flash 蓋住彈出目錄的方法]]></title>
			<author>scooter.tw@gmail.com(admin)</author>
			<category><![CDATA[JavaScript]]></category>
			<pubDate>Fri,07 Mar 2008 21:08:31 +0800</pubDate>
			<guid>http://www.pro-soho.com/Blog/default.asp?id=279</guid>	
		<description><![CDATA[無論是 CSS 下拉式目錄，或是 Javascript 製作出來的彈出式清單，一旦遇到 Flash 時，就被 Flash 遮蓋住，這個問題困擾了不少設計人員，原則上有兩種解決方法，一種是在圖層中使用 IFRAME，另一種則是改變 Flash 嵌入方式。<br/><br/>以下提供改變Flash嵌入方式的語法：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">&lt;script type=&#34;text/javascript&#34; src=&#34;images/swfobject.js&#34;&gt;&lt;/script&gt;<br/>&lt;div id=&#34;flashcontent&#34;&gt;無法播放 Flash 時替代的文字內容&lt;/div&gt;<br/>&lt;script type=&#34;text/javascript&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; var fo = new FlashObject(&#34;images/flash.swf&#34;, &#34;mymovie&#34;, &#34;200&#34;, &#34;200&#34;, &#34;7&#34;, &#34;#ff00ff&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp; fo.addParam(&#34;wmode&#34;, &#34;transparent&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp; fo.write(&#34;flashcontent&#34;);<br/>&lt;/scrip&gt;</div></div><br/><br/>步驟是先連結 swfobject.js 這個檔案，檔案的官方下載位置是：<br/><br/><a href="http://download.macromedia.com/pub/developer/swfobj&#101;ct_1.4.zip" target="_blank">http://download.macromedia.com/pub/developer/swfobj&#101;ct_1.4.zip</a><br/><br/>壓縮檔中檔案很多，是範例及說明，要用到的只有 swfobject.js一個檔案。 <br/><br/>然後宣告一個放置 flash 的區塊，這個例子的識別名稱為 flashcontent，接下來，建立 FlashObject 物件，語法是：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">var fo=new FlashObject(swf檔,識別元,寬度,高度,Flash版本,背景色);</div></div><br/><br/>如果需要加其他屬性，例如透明，則使用 fo.addParam 加入，語法為：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">fo.addParam(&#34;wmode&#34;, &#34;transparent&#34;); </div></div><br/><br/>最後，把物件寫到 flashcontent 區塊中，語法為：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">fo.write(&#34;flashcontent&#34;);</div></div><br/><br/>如此就完成了，原文刊載於：<br/><a href="http://www.adobe.com/devnet/flash/articles/swfobj&#101;ct.html" target="_blank">http://www.adobe.com/devnet/flash/articles/swfobj&#101;ct.html</a><br/>]]></description>
		</item>
		
</channel>
</rss>
