2016年6月18日星期六

JavaScript 03: Create Event

Create Event

Intro:

一個簡單的實習。
Click一下 Go button,透過JS code generate 一個click event,去click 一下paragraph1 和paragraph2。
當element被click時,text field就會顯示clicked字眼,一石二烏。
GIF:
GIF
Code:
JS Fiddle code: Create Event

2016年5月30日星期一

JavaScript02:Computed Stycle,"getComputedStyle",

原因:

如果想知道某一個element的現時style,就需要用到getComputedStyle(elemnet,xxx) method.
第二個參數xxx一定為null或不寫,如想查的是一般的element。
JS Fiddle:https://jsfiddle.net/js_Test4fun/qejv4yd0/17/

2016年4月29日星期五

Excel VBA : Copy image from website into Excel


Cause:

Wondering how to copy image from a internet source and paste to Excel using the VBA.

There are many examples on the internet if you google "copy image from web vba". However, those are too complicate as I just want to copy from a particular website and particular one image.That's it. No more other things.

So I keep searching on the internet to find a proper method.

One of the method is using "URLDownloadToFile API", it is too complicate for me as I am just a beginner of VBA.....

Then I find a good example from stactoverflow. By using AddPicture(x,x,x,x,) method, it is very easy to copy a image to Excel!

However, you must know the URL of the image first...

Luckily, I know the basic DOM knowlege through my studies on Javascript.



Action:

How to know the URL of the source of the particular image:


2015年11月9日星期一

堡獅龍國際 00592.

高息。現價0.69。可作10年長線。短期會下跌到0.6x。
1202:现价0.62,技术上可入。破势位:0.55,反弹位,0.7


2016 9 23更新:上年的預測,幾準。價位到了破勢位,真的一路向下到最低0.45。現價0.5。破勢位:0.45。

2015年11月5日星期四

思捷環球 00330.


入市位,支持位,8.4。失势位7.5。

1112:看來8.5有支持。將來都覺得會下跌。(yes)
1221:现价8.04。未跌穿失势位。但跌破支持位。预计会再跌到7.5

2015年11月4日星期三

國美電器 00493.

上升,橫行,上升。1.55是阻力。1.32是支持。
由底位到現在一個月,升了32%,但九成九的日子是橫行。其中兩日突然上升。
估計會橫行大概一個月,或突然間上升突破1.55。
短期會向下走。