2013年6月10日 星期一

Lab 29 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.

程式碼:





重覆點選紅色按鈕button:




重複點選按鈕跑出來的多個圖片:




沒有留言:

張貼留言

Loading...