2010年11月22日 星期一

Lab 31 Create Image using DOM

1. Open KompoZer
2. Hand code a javascript that loads an image from Internet based on
the DOM model.
3. Take a look at the sample code that shows how window.onload to load the image.
4. Use a button to load the image. Try how onclick works.


開啟網頁後會自動顯示圖片

開啟網頁後點擊按鈕

出現啦!!!

其實也不是很難,很興奮的給他按了很多下

沒有留言:

張貼留言