2009年5月15日 星期五

Lab Create Image using DOM

1. Open Nvu
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.


source code
結果

clickclick

click

0 意見:

  © Free Blogger Templates Blogger Theme II by Ourblogtemplates.com 2008

Back to TOP