<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7632642065594584972</id><updated>2024-03-06T09:07:49.106+08:00</updated><category term="HTML"/><category term="CSS"/><category term="DHTML"/><category term="閒聊"/><category term="程式基礎"/><category term="技巧分享"/><category term="Blogger Widget"/><category term="ZK"/><category term="Blogger"/><category term="其他"/><category term="AJAX"/><category term="Java"/><category term="第三方網頁工具"/><category term="Web基礎"/><category term="小遊戲"/><category term="軟體"/><title type='text'>玩Web無窮(Enjoy Web Tech)</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>82</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-2911877010090351962</id><published>2010-03-02T18:33:00.001+08:00</published><updated>2010-03-02T18:36:36.017+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="技巧分享"/><title type='text'>解決在 JBOSS 中的 JSP 使用泛型的問題</title><summary type="text">今天同事遇到了一個問題，他在 jsp 中使用了泛型，但在 jboss (使用的版本是 4.0.4.GA，有點舊@@&quot;)上執行時卻 compile 不過
例如這樣的語法
&amp;lt;%&amp;#13;&amp;#10;java.util.ArrayList&amp;lt;String[]&amp;gt; a = new java.util.ArrayList&amp;lt;String[]&amp;gt;();&amp;#13;&amp;#10;a.add( new String[]{&quot;qq&quot;,&quot;ww&quot;} );&amp;#13;&amp;#10;out.println(a.toString());&amp;#13;&amp;#10;%&amp;gt;
執行後會得到
org.apache.jasper.JasperException: Unable to compile class for JSP&amp;#13;&amp;#10;&amp;#13;&amp;#10;An error occurred at line: 1 </summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/2911877010090351962/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2010/03/jboss-jsp.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/2911877010090351962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/2911877010090351962'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2010/03/jboss-jsp.html' title='解決在 JBOSS 中的 JSP 使用泛型的問題'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-7566051060571342427</id><published>2009-08-19T20:23:00.005+08:00</published><updated>2009-08-19T21:51:00.160+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ZK"/><category scheme="http://www.blogger.com/atom/ns#" term="技巧分享"/><title type='text'>ZK 的 Listbox 或 Grid 在 IE 及 Firefox 中若無資料時沒有橫向 Scrollbar</title><summary type="text">ZK 的 Listbox(或 Grid) 當欄位總寬大於 Listbox 寬度，且無資料時，在 IE 及 Firefox 中不會產生橫向 Scrollbar，在 Chrome 中則會有，這裡就要來說明如何讓 IE 及 Firefox 也能產生 Scrollbar下面是我測試的環境：ZK 3.6.1Firefox 3.0.6IE 6.0.29以 Listbox 為例，下面的 Code 在 IE 及 Firefox 運行時無法有 Scrollbar&amp;lt;?page title=&quot;Test Listbox&quot; contentType=&quot;text/html;charset=UTF-8&quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;zk&amp;gt;&amp;#13;&amp;#10;&amp;lt;window border=&quot;none&quot; width=&quot;100%&quot; height=&quot;100%&quot;&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;lt</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/7566051060571342427/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/08/zk-listbox-grid-ie-firefox-scrollbar.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/7566051060571342427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/7566051060571342427'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/08/zk-listbox-grid-ie-firefox-scrollbar.html' title='ZK 的 Listbox 或 Grid 在 IE 及 Firefox 中若無資料時沒有橫向 Scrollbar'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-3685595852098613278</id><published>2009-08-14T07:49:00.002+08:00</published><updated>2009-08-14T07:57:18.752+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="小遊戲"/><category scheme="http://www.blogger.com/atom/ns#" term="技巧分享"/><title type='text'>無蝦米兩碼字練習器</title><summary type="text">這是用網頁寫成的練習器，功能不多，但可隨機練習所有 676 個兩碼字到底實用性如何？我也不知道，就當它是一種娛樂吧娛樂是寫程式最大的動力 ^_^&amp;lt;html&amp;gt;&amp;#13;&amp;#10;&amp;lt;head&amp;gt;&amp;#13;&amp;#10;&amp;lt;script&amp;gt;&amp;#13;&amp;#10;&amp;lt;!--&amp;#13;&amp;#10;function $(s){&amp;#13;&amp;#10;&amp;#9;return document.getElementById(s);&amp;#13;&amp;#10;}&amp;#13;&amp;#10;var s_enChar = &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;;&amp;#13;&amp;#10;&amp;#9;&amp;#9;&amp;#9; //a b c d e f g h i j k l m n o p q r s t u v w x y z&amp;#13;&amp;#10;var s_words = &quot;寸鎮鏡會金鑑威感俞華駐也貪良</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/3685595852098613278/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/08/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/3685595852098613278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/3685595852098613278'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/08/blog-post.html' title='無蝦米兩碼字練習器'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-9189717998031049658</id><published>2009-08-13T07:42:00.006+08:00</published><updated>2009-08-13T08:10:02.840+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DHTML"/><title type='text'>DHTML基礎教學(10)--JavaScript 資料型態</title><summary type="text">JavaScript 的資料型態大致有下面這幾種number數值，不分int、float …等string字串，以雙引號或單引號括住的範圍boolean布林值，也就是 true | falseobject物件null表示沒有任何值或無意義undefined未被定義(宣告)，連null都不是，也就是不存在這個東西的意思，所以其實這也算不上是一種型態另外，補充一下數值的觀念一般我們所寫的數值都是十進位，例如&amp;lt;script&amp;gt;&amp;#13;&amp;#10;var a = 123;&amp;#13;&amp;#10;alert(a);&amp;#13;&amp;#10;&amp;lt;/script&amp;gt;若想使用十六進位，十六進位值的表示法為 0xHex，例如&amp;lt;script&amp;gt;&amp;#13;&amp;#10;var a = 0x64;&amp;#13;&amp;#10;alert(a);&amp;#13;&amp;#10;&amp;lt;/script&amp;gt;0x 是一個</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/9189717998031049658/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/08/dhtml10-javascript.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/9189717998031049658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/9189717998031049658'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/08/dhtml10-javascript.html' title='DHTML基礎教學(10)--JavaScript 資料型態'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-5486660610739894758</id><published>2009-07-16T12:42:00.003+08:00</published><updated>2009-07-16T21:14:30.112+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="閒聊"/><title type='text'>雲端技術如何防堵攻擊主機？</title><summary type="text">「雲端技術」目前看來似乎是一個趨勢，我還沒仔細的了解它 &gt;&quot;&lt;但突然想到一個問題雲端技術似乎是允許我們在雲端的主機上執行我們自己的應用程式但它要如何防堵應用程式惡意攻擊主機？我就是想起了之前也有很多平台可以讓我們架設 homepage當時甚至可上傳一些運行在 server 端的程式，例如 ASP但後來似乎已找不到可放這類程式的平台了雖然目前有些平台仍能讓我們自訂網頁，但頂多就是只能上傳 HTML 這些運作在 Client 的檔案(甚至 Blog 盛行後，連有這些功能的平台都少了)我沒去了解實際的原因，但我覺得八成是因為運行在 server 端的程式有攻擊主機的風險所以才會紛紛關閉這個功能再回頭來看「雲端技術」，從外表來看，跟之前讓我們架網站的平台很像只是它不只能執行網頁，也能執行其他應用程式但應該也會面臨同樣的問題才對若沒辦法有效的防堵惡意攻擊，大家(尤其是企業)又如何能放心的將東西放上</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/5486660610739894758/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/07/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/5486660610739894758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/5486660610739894758'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/07/blog-post.html' title='雲端技術如何防堵攻擊主機？'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-7185995481133073124</id><published>2009-07-10T07:35:00.002+08:00</published><updated>2009-07-10T08:02:26.170+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Java 中四種四捨五入的比較</title><summary type="text">我所指的四種方法即是(1)Math.round()(2)DecimalFormat.format()(3)BigDecimal(double).setScale()(3)BigDecimal(String).setScale()下面的 Code 是用來測試這四種方法的(取小數兩位)DecimalFormat df = new DecimalFormat(&quot;0.00&quot;);&amp;#13;&amp;#10;double[] adbl = {&amp;#13;&amp;#10;&amp;#9;&amp;#9;245.205&amp;#13;&amp;#10;&amp;#9;&amp;#9;,72.675&amp;#13;&amp;#10;&amp;#9;&amp;#9;,172.675&amp;#13;&amp;#10;&amp;#9;&amp;#9;,-245.205&amp;#13;&amp;#10;&amp;#9;&amp;#9;,-72.675&amp;#13;&amp;#10;&amp;#9;&amp;#9;,-172.675&amp;#13;&amp;#10;&amp;#9;&amp;#9;,-172.674&amp;#</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/7185995481133073124/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/07/java.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/7185995481133073124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/7185995481133073124'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/07/java.html' title='Java 中四種四捨五入的比較'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-2375341068547300878</id><published>2009-06-26T07:56:00.002+08:00</published><updated>2009-06-26T08:04:03.116+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger Widget"/><category scheme="http://www.blogger.com/atom/ns#" term="技巧分享"/><category scheme="http://www.blogger.com/atom/ns#" term="第三方網頁工具"/><title type='text'>修改部落格觀察貼紙的表格框線</title><summary type="text">我沒有查證它有沒有提供改框線的方法，我是自己硬用 script 改的，但其實這樣會拖慢網頁的速度，所以我是不太建議這樣改，但若真的想改，可先試下面的語法看是否合意基本的：&amp;lt;span id=&quot;lookTable&quot;&amp;gt;&amp;#13;&amp;#10;&amp;lt;script language=&quot;JavaScript&quot; src=&quot;http://look.urs.tw/java/hits2.php?BlogID=0&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;#13;&amp;#10;&amp;lt;/span&amp;gt;&amp;#13;&amp;#10;&amp;lt;script language=&quot;JavaScript&quot;&amp;gt;&amp;#13;&amp;#10;var nodelist_look = document.getElementById(&quot;lookTable&quot;).childNodes;&amp;#13;&amp;#</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/2375341068547300878/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/06/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/2375341068547300878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/2375341068547300878'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/06/blog-post.html' title='修改部落格觀察貼紙的表格框線'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-629392591303206947</id><published>2009-06-04T12:34:00.000+08:00</published><updated>2009-06-04T12:34:24.146+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DHTML"/><title type='text'>DHTML基礎教學(9)--JavaScript 基本觀念</title><summary type="text">接下來要開始進入 JavaScript 的說明

先來說明一下 JavaScript 的一些基本觀念
區分大小寫：這要特別注意，在之前的 HTML 和 CSS 都是不分大小寫，但 JavaScript 是有分的，也就是說 ok、Ok、oK、OK 對於 JavaScript 而言都是不同的東西，初學者常會因為大小寫不對而造成 Script 錯誤
註解(Comment)：註解是指不會被執行的內容，一般來說是用來說明程式碼的用途，當做備忘錄，或是將暫時不想執行，又不想刪掉的程式先註解起來，這通常是在除錯時會用到。註解的語法有兩種：
   單行註解 //：寫在 // 之後一直到行尾的所有文字都是註解，所以寫在 // 之前一直到行首的語法還會執行哦
  多行註解 /* ~ */：寫在 /* 與 */ 之間的所有文字都是註解
 
命令(Statement)要以分號【;】結尾：雖然這不是一個強制性的</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/629392591303206947/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/06/dhtml9-javascript.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/629392591303206947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/629392591303206947'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/06/dhtml9-javascript.html' title='DHTML基礎教學(9)--JavaScript 基本觀念'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-5739045319755372854</id><published>2009-05-27T12:43:00.000+08:00</published><updated>2009-05-27T12:43:33.641+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DHTML"/><category scheme="http://www.blogger.com/atom/ns#" term="程式基礎"/><title type='text'>DHTML基礎教學(8)--程式基本概念之物件導向篇</title><summary type="text">物件導向的領域很廣，不是在一篇中三言兩語就能說完的，本篇主要說明的是在 JavaScript 中會用到的觀念

物件導向主要是要將現實生活中的物件(物品)觀念帶入程式語言中

例如冷氣機是一個物件，它有顏色，有造型，有送風、吹冷氣、除濕等功能，若我們不是製造冷氣機的人，那我們不需要知道它是如何送風、吹冷氣、以及除濕，我們只要知道怎麼用它即可，冷氣機自己不會知道現在要送風還是要除濕，而是要等人們去開了送風的開關時，它才會送風

上面一段話就有表達出一個物件所具備有的東西

物件的顏色、造型…等等，即是物件的特徵，在程式語言中稱之為屬性(Property)，例如上述的冷氣機可看作它有兩個屬性，一個是顏色，一個是造型

物件的功能，例如上述的送風、吹冷氣、除濕等功能，在程式語言中稱之為方法(Method)，也就是這個物件能做些什麼事情

而上述中，當開了送風的開關後，冷氣機就開始送風，這種「當</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/5739045319755372854/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/05/dhtml8.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/5739045319755372854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/5739045319755372854'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/05/dhtml8.html' title='DHTML基礎教學(8)--程式基本概念之物件導向篇'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-304408819445898479</id><published>2009-04-20T07:55:00.001+08:00</published><updated>2009-04-20T07:56:06.311+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DHTML"/><category scheme="http://www.blogger.com/atom/ns#" term="程式基礎"/><title type='text'>DHTML基礎教學(7)--程式基本概念之程式的執行流程篇</title><summary type="text">程式就是一行一行的指令(statement)，告訴電腦要做什麼事，但程式執行時不盡然是一行一行地一直執行下來，它的執行方式可以簡單的分為三種流程
由上往下繼續執行下一行的指令
不執行下一行指令，改跳到某一行指令繼續執行
停下來，等待使用者給一個資訊，再繼續往下執行
由這三種行為，可以再得到很多變化

變化(1)--if else
在某條件(condition)成立時(註1)，才執行某些指令，也就是不成立時會跳過某些指令再往下執行。在大部份的程式語言中都是用 if…else…來表示這種行為，也是就 if (如果)某條件成立，就執行某些指令，else (否則)就執行另外一些指令

註1：condition 即是一個邏輯運算式，當運算結果為真(true)時，即是此條件成立

變化(2)--loop
在某條件成立時，重覆執行某些指令(可以是重覆任意多次)，也就是當條件成立時會跳回之前的某行指令再</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/304408819445898479/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/04/dhtml7.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/304408819445898479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/304408819445898479'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/04/dhtml7.html' title='DHTML基礎教學(7)--程式基本概念之程式的執行流程篇'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-6741363530303047055</id><published>2009-04-13T21:40:00.000+08:00</published><updated>2009-04-13T21:40:24.598+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="軟體"/><title type='text'>DB 存取工具 - SQL Workbench/J</title><summary type="text">開發程式難免要連資料庫去看看或修改資料，由於 Licence 的問題，有一段時間我都是用 Oracle 出品的 SQL Developer ，因為它是免費的，但是，它真是有夠慢的，耗的資源又多，其實已經忍受它很久了

其實大部份的 Programer 都不是 DBA，我們最常用的不外乎就是新增、修改、刪除、查詢這些動作，並不需要太強大的資料庫管理工具，所以用這些龐然大物根本是多餘的

這幾天一直在找看看有沒有比較快的資料庫存取工具，結果發現了這套軟體SQL Workbench/J，它也是免安裝的免費軟體(最近迷上了這類的軟體 ^_^)，執行起來真的快多了，值得推薦，不像 SQL Developer 光是要開起來就讓我快睡著了，過一陣子沒用時還會像當掉一樣一動也不動，必須耐心的等一下它才會醒過來

不過這套軟體也不是沒有缺點
(1)它是用 Java 寫的，所以跑起來多少還是有點慢，我無意說</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/6741363530303047055/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/04/db-sql-workbenchj.html#comment-form' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/6741363530303047055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/6741363530303047055'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/04/db-sql-workbenchj.html' title='DB 存取工具 - SQL Workbench/J'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-5553188970380000357</id><published>2009-04-13T07:37:00.002+08:00</published><updated>2009-04-13T08:08:50.697+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="其他"/><title type='text'>按住什麼鍵再點連結時會開新分頁？而不是新視窗</title><summary type="text">我知道按住 Shift 再點連結是會將該連結開在新視窗，但現在很多 browser 都有頁籤的功能，那若我是想開在新分頁，我到底該按什麼啊？其實這個問題困擾了我很久，也許很多人都知道了，但我是今天才發現的(我是笨蛋 &gt;&quot;&lt;)原來是要按住 Ctrl 再點連結，就會開在新分頁了(在 Chrome 及 Firefox 上都是這樣，我沒裝 IE7 以上的版本，但我想應該也是一樣的)，在此分享給那些還不知道的人其實這裡挺詭異的，我記得我之前 Shift 、Ctrl、Alt 及它們的組合我都試過了，就是不行，怎麼今天按 Ctrl 就可以了，奇怪了，我真的沒試到它嗎？@@Chrome 的其他快速鍵可以參考重灌狂人21個必學的Google Chrome瀏覽器「快速鍵、快捷操作」技巧Firefox 的其他快速鍵可以參考神蹟的FirefoxFirefox火狐瀏覽器快速鍵--gs--{瀏覽器快速鍵}</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/5553188970380000357/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/04/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/5553188970380000357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/5553188970380000357'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/04/blog-post.html' title='按住什麼鍵再點連結時會開新分頁？而不是新視窗'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-434923454456785387</id><published>2009-03-26T07:49:00.000+08:00</published><updated>2009-03-26T07:49:03.551+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DHTML"/><category scheme="http://www.blogger.com/atom/ns#" term="程式基礎"/><title type='text'>DHTML基礎教學(6)--程式基本概念之真值表(Truth Table)篇</title><summary type="text">之前的文章有提過，布林(Boolean)這個型態的值只有兩種，就是 true 與 false，這兩個值通常是邏輯運算的結果

這裡先來看看邏輯運算子的意義
&amp;amp;&amp;amp; ： 念作 and，表示「並且」的意思，即在運算子兩邊的運算元都要為真，其運算結果才會為真
|| ： 念作 or，表示「或者」的意思，即在運算子兩邊的運算元至少有一個為真，其運算結果就為真
^  ： 對應的字為 xor，這個我也不知道怎麼念 ^_^&quot;，表示「不同於」的意思，即在運算子兩邊的運算元是不同值時，其運算結果才會為真
!  ： 念作 not，表示「否定、不是」的意思，也可以想成是「相反」的意思，這個運算子比較特別，它不是做兩個運算元的運算，而是只對它後面的運算元做運算，即運算後的結果就是運算元相反的值
其中 ! 的優先順序最高，運算時要先算 !，其他就不分了，依撰寫的順序來算，或用 ( ) 來改變順序，原理</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/434923454456785387/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/03/dhtml6-truth-table.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/434923454456785387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/434923454456785387'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/03/dhtml6-truth-table.html' title='DHTML基礎教學(6)--程式基本概念之真值表(Truth Table)篇'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-5168748612391163254</id><published>2009-03-21T08:43:00.002+08:00</published><updated>2009-03-21T21:23:13.728+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger"/><category scheme="http://www.blogger.com/atom/ns#" term="Blogger Widget"/><category scheme="http://www.blogger.com/atom/ns#" term="技巧分享"/><title type='text'>Google Friend Connect 已與 Blogger Followers 整合 ??</title><summary type="text">自從 GFC 出來後，很多網站都紛紛加上這個工具，安裝方法可參考 Google Friend Connect 申請&amp;#12289;設定與放置於網頁之實戰手札 | 海芋小站

在前陣子，我也幫我另一個 blogger 平台的 blog 申請了 GFC ，當時按照海芋的做法很順利的就加入了，如同裡面所說的，那兩個檔無需上傳，但詭異的事來了

為什麼 GFC 上的 members 跟 followers 會不同 ？

這還不算什麼，這兩天我要幫本站申請 GFC 時，卻一直無法通過「Test your setup」這一個步驟，一直出現

We were unable to locate required files at the Home URL:
Confirm that http://enjoywebtech.blogspot.com/ is the correct Home URL of </summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/5168748612391163254/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/03/google-friend-connect-blogger-followers.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/5168748612391163254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/5168748612391163254'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/03/google-friend-connect-blogger-followers.html' title='Google Friend Connect 已與 Blogger Followers 整合 ??'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-2437236542113390589</id><published>2009-03-11T07:48:00.001+08:00</published><updated>2009-03-11T07:52:55.604+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DHTML"/><category scheme="http://www.blogger.com/atom/ns#" term="程式基礎"/><title type='text'>DHTML基礎教學(5)--程式基本概念之運算式篇</title><summary type="text">在變數篇中有個例子Z = X + Y這就是一個簡單的運算式在運算式中有分兩種東西，一個是運算元(Operand)，另一個是運算子(Operator)。在上例中，X Y Z 這三個被運算的東西就是運算元，而 = + 這些用來運算別人的東西就叫運算子要注意的是，不只是變數才是運算元，就算是固定的值，只要是被運算的，就是運算元例如X = Y + 33Z = 68在上例中，X Y 33 Z 68 這五個都是運算元而運算子的部份，一般程式語言都會有下面幾種運算子註：不同的程式語言，可能用的符號會不同，因為我們後續是要介紹 JavaScript，因此這裡使用的符號會以 JavaScript 的為主指定運算子：=例如 X = 3 中的 = 即是指定運算子用來將某個變數名稱對應到一個值算術運算子：+ - * / %上面的符號依序代表的意思是 加 減 乘 除 取餘數，一般都會用 * 來代表乘法，其他的用法</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/2437236542113390589/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/03/dhtml5.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/2437236542113390589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/2437236542113390589'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/03/dhtml5.html' title='DHTML基礎教學(5)--程式基本概念之運算式篇'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-7429945300643947225</id><published>2009-03-05T12:42:00.002+08:00</published><updated>2009-05-20T07:58:22.681+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DHTML"/><category scheme="http://www.blogger.com/atom/ns#" term="程式基礎"/><title type='text'>DHTML基礎教學(4)--程式基本概念之資料型態篇</title><summary type="text">所謂的資料型態 Data Type，像是數字是一種資料型態，文字是一種資料型態，還有很多種資料型態，甚至在物件導向的程式語言中，還能透過自訂類別(Class)來自訂資料型態在大部份的程式語言中都會有下面幾種型態 數字型態：大部份的程式語言還會再細分為整數、長整數(簡單說就是值可以比整數大)、小數、長小數(好像沒有人這麼稱呼 ^^&quot;，反正也是值可以比小數大)… 字串型態(String)：也就是文字資料，一般都會稱之為「字串」，一般來說，在程式碼中用雙引號括起來的內容就是字串，例如 &quot;我是字串&quot; 布林型態(Boolean)：這種型態的值只有兩種，即「true」與「false」，一般翻成「真」與「假」，也可以理解為「對」與「錯」或「成立」與「不成立」，這種型態主要運用在邏輯的運算或邏輯的判斷其他依據程式語言的不同，可能還有其他的型態，在這裡就不提那麼多了在資料型態嚴謹的程式語言中，宣告變數時即</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/7429945300643947225/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/03/dhtml4.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/7429945300643947225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/7429945300643947225'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/03/dhtml4.html' title='DHTML基礎教學(4)--程式基本概念之資料型態篇'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-1702486813486684516</id><published>2009-02-23T07:31:00.002+08:00</published><updated>2009-02-23T07:35:18.067+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="閒聊"/><title type='text'>狂賀破萬</title><summary type="text">狂賀！狂賀！再狂賀！開站將近一年半，訪客人次終於破萬，真是太感動了 *^_________________^*感謝大家的支持，希望以後大家還會繼續來捧場，我也會盡我所能提供相關資訊給大家--gs--{玩Web無窮|Enjoy Web Tech}</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/1702486813486684516/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/02/blog-post.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/1702486813486684516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/1702486813486684516'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/02/blog-post.html' title='狂賀破萬'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-4971498231747921683</id><published>2009-02-20T07:31:00.006+08:00</published><updated>2009-02-20T08:07:13.967+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="技巧分享"/><title type='text'>用 HTML 產生的 Excel 如何換行</title><summary type="text">先做個前言在做系統時，有時會需要將資料轉成 Excel，最簡單的方法就是用 HTML 畫好你要的格式及資料，再用 Excel 開啟即可例如你可以在本機上新增一個文字檔，寫入下面的內容&amp;lt;HTML&amp;gt;&amp;#13;&amp;#10;&amp;lt;BODY&amp;gt;&amp;#13;&amp;#10;&amp;lt;TABLE border=&quot;1&quot;&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;lt;TR&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;#9;&amp;lt;TD&amp;gt;Enjoy&amp;lt;/TD&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;#9;&amp;lt;TD&amp;gt;Web&amp;lt;/TD&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;#9;&amp;lt;TD&amp;gt;Tech&amp;lt;/TD&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;lt;/TR&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;lt;TR&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;#9;&amp;lt;TD colspan=&quot;3&quot;&amp;</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/4971498231747921683/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/02/html-excel.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/4971498231747921683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/4971498231747921683'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/02/html-excel.html' title='用 HTML 產生的 Excel 如何換行'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2LBgEWkTJnzs8CMjYklyNpsZggPfugqhwapajQH65Dwj2U1OyNNyd7a4ru5uMNbHWXWlfpzN_SpcogTvdewt-05B6oNG0ZECxGPotI42SNSjxrdJNHFuAbalHNKgy5_zwDjeEVfhFHFw/s72-c/html_to_excel_1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-7979848538402053024</id><published>2009-02-19T12:40:00.002+08:00</published><updated>2009-02-19T12:44:29.427+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DHTML"/><category scheme="http://www.blogger.com/atom/ns#" term="程式基礎"/><title type='text'>DHTML基礎教學(3)--程式基本概念之陣列(數組)篇</title><summary type="text">什麼是陣列(Array)，陣列跟數學上的矩陣是不同的，不要搞混了。(其實基本上我已經忘了什麼是矩陣了 :P)陣列是一種資料型態(Data Type)，而陣列變數有點像是多個變數的組合，在上一篇中若你已了解到變數相當於是用一個名稱來代表某個東西，那麼陣列就可以將它看成是用一個名稱再加上一個編號來代表某一個東西就好像一個班級中每個學生都會有一個座號，只要說出某一個班級名稱以及座號，我們就知道是代表哪一個學生了以這個例子來說，班級名稱就是陣列名稱，這個班級裡面的學生就是陣列元素(element)，座號則是陣列元素的序號或索引(index)陣列中可以有多個陣列元素(element)，每一個元素就類似一個變數，可以分別代表一個值，透過陣列的名字以及陣列元素的序號，我們就可以去使用陣列元素，就跟使用一般變數差不多陣列名稱[元素序號] = 代表的值例如X[1] = 5X[2] = 3Z = X[1] </summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/7979848538402053024/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/02/dhtml3.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/7979848538402053024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/7979848538402053024'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/02/dhtml3.html' title='DHTML基礎教學(3)--程式基本概念之陣列(數組)篇'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-890942969752690114</id><published>2009-01-19T12:50:00.001+08:00</published><updated>2009-01-20T07:39:35.926+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DHTML"/><category scheme="http://www.blogger.com/atom/ns#" term="程式基礎"/><title type='text'>DHTML基礎教學(2)--程式基本概念之變數篇</title><summary type="text">在前一篇有提到，要做 DHTML 必須搭配 Script，而 Script 是一種程式語言，所以必須先了解一些程式的基本觀念什麼是變數(Variable)，變數跟數學上的代數有點像，例如X = 5Y = 3Z = X + Y那我們就可以知道 Z 會等於 8而這些 X Y Z 在數學上叫代數，可以理解成代表某個數的東西，換到程式這邊來時，X Y Z 就是變數，所以變數就是用來代表某個東西的某個名字變數是相對於常數的一個用詞，常數是指恆常不變的一個值，例如數學上(還是物理上? @@) PI=3.1415926...，所以我們可以理解到當有一個算式如下2 x PI所代表的就是 2 乘上 3.1415926...而變數就是指它可以被改變它所代表的值，例如A = 5B = 7X = A + BA = 1B = 8Y = A + B在上例中，X 的值會是 12 ，在那之後，我們改變了 A 和 B 所</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/890942969752690114/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/01/dhtml2.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/890942969752690114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/890942969752690114'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/01/dhtml2.html' title='DHTML基礎教學(2)--程式基本概念之變數篇'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-8675107980682617304</id><published>2009-01-06T21:18:00.003+08:00</published><updated>2009-01-06T22:28:15.587+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DHTML"/><title type='text'>DHTML基礎教學(1)--基本觀念</title><summary type="text">所謂 DHTML 是指 Dynamic HTML，也就是讓原本靜態的網頁能有一些動態的效果，例如本站在載入頁面時，內容未全部載完前，會在 logo 旁顯示 Loading... 的字樣，內容載完後就會消失這只是個簡單的動態顯示或隱藏的例子，若技巧純熟的話，還可以有很多的應用，例如選單、頁籤…等等，若再加上 AJAX 那就更豐富了網頁要有動態的效果，主要是利用 Script 語言來處理，HTML 本身並不能做運算，CSS 也只是補強樣式，唯有 Script 才能對網頁內容做一些動態的處理Script 大致上有 JavaScript 與 VBScript 兩種，一般都是使用 JavaScript，後續這裡也只會以 JavaScript 來說明Script 語法的撰寫位置有幾種寫在 &amp;lt;SCRIPT&amp;gt;&amp;lt;/SCRIPT&amp;gt; 標籤內寫在一個 js 檔內，再用 &amp;lt;</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/8675107980682617304/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2009/01/dhtml1.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/8675107980682617304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/8675107980682617304'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2009/01/dhtml1.html' title='DHTML基礎教學(1)--基本觀念'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-2784121997463306487</id><published>2008-12-05T07:35:00.001+08:00</published><updated>2008-12-05T07:39:50.327+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>CSS基礎教學(16)--CSS 樣式檔</title><summary type="text">在「CSS基礎教學(1)--CSS基本語法」一文中有提到了 CSS 語法可以寫在標籤的 style 屬性、可以寫在 &amp;lt;STYLE&amp;gt; 標籤中、也可以寫在獨立的樣式檔。在「CSS基礎教學(1)--CSS基本語法」文章中有大概介紹了前兩種寫法，下面就來介紹一下樣式檔的用法其實樣式檔的寫法很簡單，同樣用文字編輯器新增一個檔案，副檔名一般會用 css，裡面的內容就是寫在 &amp;lt;STYLE&amp;gt; 標籤內的東西，但要注意不需要將 &amp;lt;STYLE&amp;gt; 標籤寫入寫好後，在 HTML 檔中就可以將視需要來將它載入使用，載入的方法是在 &amp;lt;HEAD&amp;gt; 標籤中寫入以下的語法&amp;lt;LINK REL=&quot;stylesheet&quot; HREF=&quot;樣式檔URL&quot; TYPE=&quot;text/css&quot;&amp;gt;例如test.css.redWords{&amp;#13;&amp;#10;&amp;#9;color:red;&amp;</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/2784121997463306487/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2008/12/css16-css.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/2784121997463306487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/2784121997463306487'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2008/12/css16-css.html' title='CSS基礎教學(16)--CSS 樣式檔'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-6558472799057279545</id><published>2008-12-03T07:49:00.002+08:00</published><updated>2008-12-03T07:52:43.124+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ZK"/><title type='text'>ZK 筆記--EL (Expression Language) 的使用記要</title><summary type="text">老實說，我對 EL 不是很熟，所以有些其實是很基本的 ^_^&quot;(1) EL 不可使用於 zscript 內，例如&amp;lt;window&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;lt;label id=&quot;spn_test&quot;&amp;gt;Hello&amp;lt;/label&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;lt;zscript&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;lt;![CDATA[&amp;#13;&amp;#10;&amp;#9;String s_1 = &quot;${spn_test.value}&quot;;&amp;#13;&amp;#10;&amp;#9;]]&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;lt;/zscript&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;lt;button label=&quot;${spn_test.value}&quot; onClick=&#39;&amp;#13;&amp;#10;&amp;#9;&amp;#9;alert(s_1+&quot;${spn_test.value}&quot;+</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/6558472799057279545/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2008/12/zk-el-expression-language.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/6558472799057279545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/6558472799057279545'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2008/12/zk-el-expression-language.html' title='ZK 筆記--EL (Expression Language) 的使用記要'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-7176235190758102532</id><published>2008-11-24T12:41:00.002+08:00</published><updated>2008-11-24T12:46:16.532+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ZK"/><title type='text'>ZK 筆記--放置 zs 檔的位置(關乎隱密性)</title><summary type="text">要將程式碼從 ZUML 中抽離，最簡單的方法是將 zscript 寫在另外的 zs 檔，然後在 ZUML 中再做引用，方法跟在 HTML 中引用 js 檔的方法很像，例如分別寫了 test.zs 及 test.zul 並放在同一個資料夾中test.zsvoid fn() {&amp;#13;&amp;#10;&amp;#9;alert(&quot;Hello in zs file.&quot;);&amp;#13;&amp;#10;}test.zul&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;?page title=&quot;My Title&quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;window&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;lt;zscript src=&quot;test.zs&quot;/&amp;gt;&amp;#13;&amp;#10;&amp;#9;&amp;lt;button label=&quot;Alert&quot; onClick=&quot;</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/7176235190758102532/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2008/11/zk-zs.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/7176235190758102532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/7176235190758102532'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2008/11/zk-zs.html' title='ZK 筆記--放置 zs 檔的位置(關乎隱密性)'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7632642065594584972.post-5459805824463853890</id><published>2008-11-17T21:04:00.001+08:00</published><updated>2008-11-17T21:09:30.956+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ZK"/><title type='text'>ZK 筆記--在 zscript 中寫 &lt; 會發生錯誤，該怎麼辦？</title><summary type="text">在 zscript 中，&amp;lt; 與 &amp;gt; 分別是「小於」與「大於」的意思，在撰寫程式時難都會用這兩個符號，例如 if 或 for 迴圈，但因為 ZUML 是一個 XML 文件，所以 &amp;lt; 符號會被當成是要寫 XML 的標籤，因此才會發生問題解決的方法有兩種：(1)在 XML 中的一些特殊符號都須要改以 &amp;amp;xxx 來表示，故可以將 zscript 中的 &amp;lt; 與 &amp;gt; 符號都換成 &amp;amp;lt; 與 &amp;amp;gt; ，例如&amp;lt;zscript&amp;gt;&amp;#13;&amp;#10;for( int i=0 ; i &amp;amp;lt; 10 ; i++ ){&amp;#13;&amp;#10;&amp;#9;//do something&amp;#13;&amp;#10;}&amp;#13;&amp;#10;&amp;lt;zscript&amp;gt;(2)但上面的方法在撰寫及閱讀上顯然不是很方便，故可以改用第 2 個方法，在 &amp;lt;</summary><link rel='replies' type='application/atom+xml' href='http://enjoywebtech.blogspot.com/feeds/5459805824463853890/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://enjoywebtech.blogspot.com/2008/11/zk-zscript.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/5459805824463853890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7632642065594584972/posts/default/5459805824463853890'/><link rel='alternate' type='text/html' href='http://enjoywebtech.blogspot.com/2008/11/zk-zscript.html' title='ZK 筆記--在 zscript 中寫 &lt; 會發生錯誤，該怎麼辦？'/><author><name>小妖</name><uri>http://www.blogger.com/profile/06060389698986204709</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>