發表文章

[Javascript] Preview an image after browse the file

Preview an image after browse the file Javascript in Page function readURL ( input ) { if ( input . files && input . files [ 0 ]) { var reader = new FileReader (); reader . onload = function ( e ) { $ ( '#image' ). attr ( 'src' , e . target . result ); } reader . readAsDataURL ( input . files [ 0 ]); } } $ ( "#upload" ). change ( function (){ readURL ( this ); });   HTML in Page: <form id = "form1" runat = "server" > <input type = 'file' id = " upload " /> <img id = " image " src = "#" alt = "your image" /> </form>

Standard Chartered Hong Kong Marathon 2014

圖片
Standard Chartered Hong Kong Marathon 2014 I joined Half Marathon Run 2 (半馬拉松2組) Official Time: 01:57:27 Net Time: 01:56:50 Photos from: http://www.marathon-photos.com/scripts/event.py?event=Sports/2014/Hong%20Kong%20Marathon&match=E4270&name=Chan%20Nga%20Hei&new_search=1

Future of Web Design London 2014

Future of Web Design London 2014 http://futureofwebdesign.com/london-2014/

Nice web design

Nice web design http://www.southbankcentre.co.uk/

Dummy text for different languages

Dummy text for different languages Source from: http://generator.lorem-ipsum.info/

Yii: gii - Error 403 You are not allowed to access this page.

In Yii, if you have error 403 in gii " Error 403 You are not allowed to access this page." You can set the following code for IP Filters in protected/config/main.php ipFilters '=>array($_SERVER[' REMOTE_ADDR ']),

南灣

南灣 係淺水灣再入的沙灘!!! Views : Southern District, Hong Kong by hei chan