顯示具有 DOM 標籤的文章。 顯示所有文章
顯示具有 DOM 標籤的文章。 顯示所有文章

2009年5月15日 星期五

Lab DOM

[Lab]
1. Open NVu
2. Based on the code as in http://www.scottandrew.com/weblog/articles/dom_4 ,
write a code to generate the table of 9*9 products. (九九乘法表)

Hint: The javascript code should be enclosed by script tags.

sourcecode
結果

Read more...

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

Read more...

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

Back to TOP