-->

2007年12月31日 星期一

Lab Create Img using DOM

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

Hint: The javascript code should be enclosed by script tags.
Reference: DOM (Document Object Model)
Reference:
Scripting For The 6.0 Browsers, By Scott Andrew LePera
 
先定義一個button。
 
 
在html的地方打上指令,並且找到你要顯示出的圖片後儲存。
 
 
開啟就會出現圖片。

0 COMMENT: