2009年2月19日 星期四

try & catch

Try...Catch Statement


The try...catch statement allows you to test a block of code for errors. The try block
contains the code to be run, and the catch block contains the code to be
executed if
an error occurs.


Syntax







try<br />{<br />//Run some code here<br />}<br />catch(err)<br />{<br />//Handle errors here<br />}


Note that try...catch is written in lowercase letters. Using uppercase
letters will generate a JavaScript error!



2008年11月1日 星期六

leature1

css中關於超鏈結的四個屬性一般正常順序為:link,visited,hover,active,即


原始CSS 其意義如下


一般連結:{顏色:藍色}
參觀過的連結:{顏色:灰色}
正在執行的連結:{顏色:綠色}
當滑鼠移到連結上:{顏色:紅色}