29 October, 2007

How to make DIV layer overlap a Flash movie?

1. Use <param name="wmode" value="transparent">, for IE.
2. Add the wmode="transparent" parameter to the EMBED tag, for FF & Safari.

Example:

<object width="100" height="100">
<param name="movie" value="http://www.lavatica.com/test.swf">
<param name="wmode" value="transparent">
<embed src="http://www.lavatica.com/test.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="100" height="100"></embed>
</object>

p/s: tested in IE 6&7, Safari, Opera 9, FF 2.

24 October, 2007

align="absmiddle" or align="absbottom" not validate in W3C Markup Validator

Normally we will use align="absmiddle" to make an image align in the middle between a HTML element/object, e.g:


< input name="text1" type="text" maxlength="17">< src="button_ok.gif'" alt="OK" style="margin-bottom:1px;" align="absmiddle">
or
<img src="images/icon_diamond.gif" alt="" align="absbottom">

You will get error when you try to validate your page with W3C Markup Validator (http://validator.w3.org/check).

How to solve?

Use this:

<img src="images/icon_diamond.gif" alt="" style="vertical-align:bottom">

Same to:

<img src="images/icon_diamond.gif" alt="" style="vertical-align:middle">

19 October, 2007

How do you stretch a background image?

<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

< html>
< head>
< title>Background to fit screen</title>

<style type="text/css">

html {height:100%;}

body {height:100%; margin:0; padding:0;}

/* set the background image to full capacity of the viewing area */

#bg {position:fixed; top:0; left:0; width:100%; height:100%;}

/* places the content on top of the background image */

#content {position:relative; z-index:1;}

</style>
<!--[if IE 6]>
<style type="text/css">

/* some css fixes for IE browsers */
html {overflow-y:hidden;}
body {overflow-y:auto;}
#bg {position:absolute; z-index:-1;}
#content {position:static;}

</style>
<![endif]-->
</head>

<body>

<div id="bg"><img height="100%" alt="" src="yourimage.jpg" width="100%" /></div>
<div id="content"><p>Enter your content here.</p></div>


17 October, 2007

Div height problem in IE


The following, as the only content in a file, is the requested 5px high in Mozilla and Opera, but 12px high in IE (5.0, 6.0 & 7.o):

<div class="dot" style="height:1px; border:1px solid red;"></div>

Divs in IE have a minimum height when the <div> is empty. There is a couple of ways to solve this:
1) Put a comment tag inside the div:
<div class="dot" style="height:1px; border:1px solid red;"><!-- --></div>

2) Add this to its style inside the div:
<div class="dot" style="font-size:2px; height:2px; border:1px solid red;"></div>

08 September, 2007

2008 财政预算案(The Economic Report 2008)

Total of RM168.8bil has been allocated under The Economic Budget 2008, it is increase of 2.5% over 2007.

教育 (Education)
●所有中小学生可享贷书,不计家庭收入及孩子人数。
●废除中小学生年费。
●非营利学校包括独中、华小、淡小和宗教学校,来自学费、利息及捐款免税。
●月入1千令吉以下家庭的学生,课外活动制服免费。
●赞助学校建设礼堂及其他非营利基本设施的企业,可获扣税。

公司税务 (Companies)
●2008年公司税26%(-1%),2009年再降至25%。
●中小企业首两年不必呈报预估所得税及分期缴税。只需在结账后7 个月内,一次过缴税。
●实施单层次征税制,包括股息可直接免税,直到2013年12月31日。
●上市公司合并活动免印花税优惠期,延长至2010年12月31日。但计划须在2011年12月31日前完成。

个人 (Private)
●购买运动器材可减免300令吉。
●5千令吉深造费减免,扩至硕士及博士课程。
●从2007估税年起,受雇于特定领域,提早在50岁或以上退休的女性,所得税全免。

金融 (Finance)
●明年1月1日起,股票结算费从0.04%减至0.03%,最高为1千令吉。
●股票经纪每项交易抽佣最低40令吉。
●外资在资金管理公司持股权可达70%;土著持股权至少30%。

产业 (Housing/Properties)
●明年1月1日起,公积金会员可每月可从第二户头提款供屋。
●购买不超过25万令吉的房屋印花税减半,只限第一间屋子,优惠期到2010年12月31日。
●设立基金担保无收入证明者,贷款买屋。
●夫妻产业转名手续免印花税。

社会、治安 (Public Safety)
●残疾工人每月津贴从200令吉提高至300令吉。
●照顾卧床及慢性病患者,每月获300令吉特别援助金。
●为残疾员工建设友好环境的资本开销可减税。
●拨款60亿令吉予警察部队,5年内增聘6万警员、增购2千辆警车和1千900辆电单车。

农业 (Farm)
●禽畜业者投资在关闭式农场的再投资津贴优惠延至2010年。
●非橡胶种植公司,种植至少10%胶木所得的提升农业津贴优惠,延至2010年12月31日。

科技 (Technology)
●再生能源公司可免所得税,投资配备可享100%投资税津贴,并可全额抵销法定收入。
●投资省电的配备开销,可100%免税,为期10年。
●工厂保安实施投资的开销,可享更高资本折旧率。
●提供员工电脑或租借宽频的雇主,可获税务回扣。

转载自南洋商报、星洲日报

02 September, 2007

How to speed up my Window XP (1) - Indexing.

Windows XP keeps a record of all files on the hard disk so when you do a search on the hard drive it is faster. There is a downside to this and because the computer has to index all files, it will slow down normal file commands like open, close, etc.
If you do not do a whole lot of searches on your hard drive then I suggest turnning this feature off:
1. Control Panel
2. Administrative Tools
3. Services
4. Disable Indexing Services

01 September, 2007

How to change logo at the top right corner of Internet Exploer (IE)

1. Click Start > Run > Type gpedit.msc

2. Click User Configuration > Windows Setting > Internet Explorer Maintenance > Browser User erface

3. Double click on Custom Logo

4. Click on Customize The Static Logo Bitmaps

5. Click on [Browse...]

6. Browser for your new Logo, click [OK].

7. An error will popup "You have selected to customize a setting but provided no value. The behavior of this will be to delete the setting. Are you sure you want too continue?"

8. Click [Yes].

Note: The Logo have to be (22X22) Small and (38X38) Large and have to be bitmap(.bmp).

17 August, 2007

Javascript : location.href problem in FireFox

The location.href is working fine in IE(Internet Explorer), but not in FireFox or Safari. There are two solutions :

1) Use location.replace('http://www.theURL.com')
- The replace method loads the specified URL over the current history entry, it meant after the replace method is used, the user cannot navigate to the previous URL by using browser's Back button.

2) Use window.location= 'http://www.theURL.com'; return false;
- It will allow you to navigate to the previous URL by using browser's Back button.

Eg:
<tr>
<td onclick="window.location='http://www.yahoo.com'; return false;" style="cursor: pointer;">
</td>
</tr>


3) Another solution provided by reader (updated 10/08/2009):
- Use location.href= 'http://www.theURL.com';

13 August, 2007

Cache Folder Thumbnails

In WinXP to make folders with thumbnail images start up faster, go to control panel and then folder options. Click on the view tab and make sure "Do not cache thumbnails" is not checked.

Control Panel > Folder Options On the View tab, check Do not cache thumbnails. You will have to delete the thumbs.db files that already exist (Use the Search feature).


    1. Click the Start button
    2. Select Control Panel
    3. Select Folder Options
    4. Click the View tab
    5. Check "Do not cache thumbnails"
    6. Click the OK button

















12 August, 2007

Some files cannot be deleted?


1) Go to Start button > Run.. >type cmd into the text box.
Or
Start button > All Programs > Accessories > Command Prompt

2) Go to the file's directory by using cd , type : del thefilename.avi/s



20 May, 2007

06 - How to backup Macromedia Dreamweaver Sites?

To back up Macromedia Dreamweaver Sites:
You have a way to backup all the sites thru Registry with simple steps:
1. Go to regedit. Click here to more detail.
2. Follow the structure nodes : HKEY_CURRENT_USER\Software\Macromedia\Dreamweaver 6\Sites
(p/s: My Dreamweaver version is 6.0)

3. Right click the "Sites" node select "Export", then save the registry file
(eg: Dreamweaver26-03-2007.reg).

There is no "Export" selection for Win2K, you can go to the Windows tool bar > Registry > Export Registry File...



4. When you want to restore abck the Sites, you just need to double click it(eg: Dreamweaver26-03-2007.reg).



25 March, 2007

學識講廣東話 10 - 攫奪 == 霍奪



漢字
漢語拼音
廣東拼音
同音廣東字

jue2
fok3
霍, 矍

呢排攫奪案件猖獗。。。 搞到人心惶惶,怨氣沖天, 令人髮指。。。

例子: 攫取,攫奪。

P/S: 霍: 霍元甲。 矍: 精神矍鑠(音:shiok3), 精神奕奕之意。

下回預告:

“搜索” 點讀?

21 March, 2007

05 - How To Bypass the Recycle Bin when deleting files/folders

There are two ways to delete files/folders without sending them to Recycle Bin:

1. Right-click on the Recycle Bin and choose Properties.

2. On the Global tab, check the box that says, "Do not move files to the Recycle Bin. Remove files immediately when deleted"

p.s. : After you checked the box, this will permanently delete files directly every time you delete files.



Or

1. Select the files/folders, and press the keyboard button "shift" and do not release the shift key, press the "delete" button at the same time.

p.s. : This method will delete files directly from your hard disk WHEN the Shift key is being pressed.

20 March, 2007

歇後語 05 - 老公撥扇, 老婆擔遮

老公撥扇 ─ ─ 淒涼(妻涼)。

老婆擔遮 ─ ─ 陰功(陰公)。

老公撥扇, 老婆擔遮; 兩個都係可憐嘅意思 。

老公向老婆(妻子)就很涼爽, 所以就取其諧音, “妻”涼==淒涼。

老婆擔遮,擔即係攞住/拿住, 遮即係雨傘,擔遮即係攞住把傘。老婆擔遮幫老公遮太陽,老公陰涼。乜嘢係“陰功”?唔係‘冬陰功’,原意係迷信嘅人認爲,當人在世時做咗好事,嚮陰間可以記功,叫做“陰功”,做咗壞事嘅就叫做“冇陰功”。依家“冇陰功”省略叫做‘陰功’,係‘無天理’,‘殘忍’嘅意思。

15 March, 2007

04 - Windows XP : How to speed up menu (Start button) display

When using the "Start menu > All Programs" then you will notice that there is a delay of the menu displaying.


  1. Start button > Run > Regedit. Click here to learn how to edit registry file.
  2. Look for HKEY_CURRENT_USER\Control Panel\Desktop
  3. Select on the Desktop folder.
  4. Select MenuShowDelay from the list on the right panel.
  5. Right-click on it and select Modify.
  6. Change the value to a lower value (the smaller value means the faster Menu display response, changing this value to zero, and you will see the different).
  7. Reboot your computer.




14 March, 2007

學識講廣東話 09 - 鬼域 == 鬼閾



漢字
漢語拼音
廣東拼音
同音廣東字

yu4
wik3
棫, 閾

呢個字經常被讀錯為“ wak3” 。 “或者”個“或”。

例子: 區域,地域,領域。

P/S: 閾限: 界限之意。More info :http://tw.knowledge.yahoo.com/question/index?qid=1405110510091


下回預告:

“攫奪” 點讀?

13 March, 2007

03 - Windows Xp : How to edit Registry file?


1. Click Start, click Run, type regedit, and then press ENTER button.




p.s : if you have no confidence to edit registry file, please backup the registry file first.

歇後語 04 - 光棍佬教仔

光棍佬教仔 ─ ─ 便宜莫貪

“光棍佬”即係“騙子”意思;专门呃人嘅人教自己個仔,必定係教佢如何避免受騙,最簡單就唔好貪小便宜。 正如,光棍佬曾經利用人個貪念,呃過唔少人,他因此希望自己個仔唔好因為貪心而被人呃。
其他有關“光棍佬”嘅歇後語
光棍佬教女,千祈咪蝕底。
財到光棍手,一去無回頭。

12 March, 2007

02 - Outlook express : Delete mail from the server

To delete mail from the server after several days with Outlook Express:


  • Select Tools > Accounts... from the menu in Outlook Express.
  • Highlight the desired email account.
  • Click Properties.
  • Go to the Advanced tab.
  • Make sure Leave a copy of messages on server is selected(checked).
  • Now also check Remove from server after __ day(s).
  • Specify how long you want messages to be kept at the server.
    • Taking into account how much mail you normally get, something between 3 and 10 days is useful.

  • Click OK.
  • Click Close.

<Tested, Microsoft Outlook Express 6.0>



11 March, 2007

歇後語 03 - 黄皮樹了哥

黄皮樹了哥── 唔熟唔食。
黄皮,一种热带水果, 有食療作用,原產於中國南部,黃皮一定要熟透先至好食 ,而且咁樣先至夠甜。黃皮樹有個特别之处,就係當整個樹都結滿晒D果實之後﹐你就要盡量採晒它﹐否則明年就會欠收﹐就算有雀仔食黃皮﹐D人都唔會趕走佢哋﹐日子久咗﹐發現「了哥」最識揀﹐專揀D又熟又甜嘅嚟食。
意思即係話有D人唔講交情﹐專響老友身上搵著數。

10 March, 2007

學識講廣東話 08 - 餐券 == 餐勸



漢字
漢語拼音
廣東拼音
同音廣東字

quan4
hyun3
勸, 綣, 絢

呢個字經常被讀錯為“ gyun3” 。 試卷,問卷。

例子: 債券,獎券。

P/S: 勸 = 勸告。


下回預告:

“鬼域” 個 “域” 字點讀?

09 March, 2007

01 - Unit 單位

1 Bit
= Binary Digit
最小的資料單位 位元
1 Byte = Byte = 8 Bit
位元組
1 KB = KiloByte
= 1,024 Byte

1 MB
= MegaByte = 1,024 KB = 1,048,576 Byte 百萬
1 GB
= GigaByte = 1,024 MB

= 1,073,741,824 Byte

十億
1 TB
= TeraByte = 1,024 GB = 1,099,511,627,776 Byte 兆(T) 大小約為一家大型醫院的X光片容量
1 PB
= PetaByte = 1,024 TB = 1,125,899,906,842,624 Byte 千兆(P) 大小約為全美圖書館一半的總藏書量
1 EB
= ExaByte
= 1,024 PB
= 1,152,921,504,606,846,976 Byte
百萬兆(E) 大小約為全球人類所講過的談話總量
1 ZB = ZettaByte = 1,024 EB = 1,180,591,620,717,411,303,424 Byte 10^21(Z) 大小約為地球上沙灘的沙子總量
1 YB = YottaByte = 1,024 ZB = 1,208,925,819,614,629,174,706,176 Byte 10^24(Y) 大小約為七千個人體內之微細胞的總合
* 還有 NonaByte (NB), DoggaByte(DB).

08 March, 2007

學識講廣東話 07 - 地支 - “子 丑 寅 卯 辰 巳 午 未 申 酉 戌 亥”


漢字 漢語拼音 廣東拼音 同音廣東字
zi3 zi2 止, 姊, 指
chou3 cau2 秋2, 瞅
yin2 yan3

人, 仁

mao3 maau2

chen2 san3

臣, 晨, 神

si4 zi3

自, 字, 稚

wu3 ng1

五, 伍, 仵

wei4 mei3

味, 寐, 魅

shen1 san1

辛, 新, 身, 燊

you3 yao2

友, 有, 誘

xu1 su.et1

恤, 率, 摔, 蟀

hai4 hoi3

害, 氦



p/s: 丑=cau2; 炒=caau2 (個音長D)。

下回預告:

“餐券” 點讀?

07 March, 2007

學識講廣東話 06 - 天干 - “甲 乙 丙 丁 戊 己 庚 辛 壬 癸”



漢字 漢語拼音 廣東拼音 同音廣東字
jia3 gaap3 夾,岬
yi3 yüet3
bing3 bing2

炳, 秉

ding1 ding1

wu4 mou3

務, 冒

ji3 gei2

紀, 幾

geng1 gang1

羹,更

xin1 san1

新,身

ren2 yam3

吟,任

gui3 gwai3

貴,桂


所謂干支,係天干、地支嘅合稱。天干有十干:甲、乙、丙、丁、戊、己、庚、辛、壬、癸,地支有十二支:子、丑、寅、卯、辰、巳、午、未、申、酉、戌、亥。十同十二嘅最小公倍數係六十,所以配合天干地支,每隔六十年會重複一次。比如甲子年過了六十年,到第六十一年又係甲子年,故以“六十花甲子”或者“六十甲子”稱之為六十年,以“六十花甲”或者“花甲之年”稱六十歲。干支,早在商代甲骨文裡經已出現咗。當時,人民將天干中嘅甲、乙、丙、丁、戊用來表示夜間嘅五個時段,稱之為甲夜、乙夜、丙夜、丁夜、戊夜。十二地支用來表示一晝夜嘅十二個時段,稱之為十二時辰


下回預告:

地支-“子 丑 寅 卯 辰 巳 午 未 申 酉 戌 亥” 點讀?

06 March, 2007

歇後語 02 - 神枱貓屎

神枱貓屎── 神憎鬼厭

係人見到都覺得討厭。
點解係“鬼”?“人神共憤” 會否貼切 D?

05 March, 2007

學識講廣東話 04 - 坎坷 == 嵌可


漢字 漢語拼音 廣東拼音 同音廣東字
kan3 ham2 ,埳,
ke3 ho2 ,

呢個字經常被讀錯為“堪苛 ham4 ho4” 。
例子: -

下回預告:

“我你佢” 點讀?

04 March, 2007

學識講廣東話 03 - 緋 == 飛

漢字 漢語拼音 廣東拼音 同音廣東字
fei1 fei1 飛,非,菲

呢個字經常被讀錯為“fei2” 。
例子: 緋聞 == 。 紅粉緋緋== 紅粉飛飛

下回預告:

“坎坷” 點讀?

03 March, 2007

歇後語 01 - 二打六

二打六──未夠斤兩
“二打六”即係二加上六等於八,中國人以十為圓滿,“十全十美”、“斤兩十足”; 有話 “八”即唔夠一斤,一斤=十六兩,半斤=八兩。所以“二打六”係未夠班,唔夠資格!所以二打六係用0黎形容無關重要嘅角色及人物。

p/s :響中國大陸用嘅係市斤,一斤係500公克, 響馬來西亞/台灣/香港用嘅是臺(台)斤,1斤係600公克。 但係有D地方都亂曬大籠, 同一個國家有唔同嘅秤法?!因爲有公制以及市用制之分。公制:一公斤係500公克,但係一般傳統市場依然沿用市用制(臺斤)。

所謂嘅臺斤,其實就係清朝時全國各地所使用嘅“斤”。1895年,臺灣割讓俾日本,日本人推行公制,但係臺灣人仍然沿襲自己嘅習慣,繼續使用舊有嘅度量衡。當中國大陸都唔再使用清朝嘅舊制時,臺灣使用嘅舊制度量衡,就自然成為所謂嘅“臺制”了。

***嘅 = gea1
***歇 = hit4 帶歇; 唔係 kit4 揭(揭穿), 竭(衰竭)

02 March, 2007

學識講廣東話 02 - 女==餒,男 == 南

漢字 漢語拼音 廣東拼音 同音廣東字
nan2 nam3 南, 喃, 楠
nü3 ne.oi2
餒,釹

p/s : 餒 ==> 氣餒, hei1 neoi2


‘男’呢個字經常被讀錯為“laam3”,應該是“n”聲母不是“l”聲母。

例子: 男人 == 人。 男孩子== 子。


‘女’呢個字經常被讀錯為“leui2”,應該是“n”聲母不是“l”聲母。

例子: 女人 == 餒人。 英女王== 英餒王。


將“N”音同“L”音混淆讀錯,係懶音。例如n聲母「男」讀成l聲母「藍」、 ng聲母「蛾」讀成沒有聲母的「哦」、 ang韻母「行」讀成an韻母「痕」、 aak韻母「百」讀成aat韻母「八」等等,都係懶音。


下回預告:

“緋聞” 點讀?

01 March, 2007

學識講廣東話 01 - 糾 == 九

漢字 漢語拼音 廣東拼音 同音廣東字
jiu1


呢個字經常被讀錯為"dau2 "。

例子: 糾纏 == 九前。 糾正== 九政。



下回預告:

"女人 ,男人" 點讀?