開発環境
- OS X Mavericks - Apple(OS)
- Safari, Firefox + Firebug, Google Chrome(Webプラウザ、プラグイン)
- BBEdit - Bare Bones Software, Inc. (GUI) , Emacs (CUI) (Text Editor)
- JavaScript (プログラミング言語)
Head First JavaScript Programming (Eric T. Freeman (著)、 Elisabeth Robson (著)、 O'Reilly Media )のChapter 9(Handling events: Asynchronous Coding)、BE THE BROWSER(p.392)を解いてみる。
BE THE BROWSER(p.392)
- Assign init(event handler) to the window's onload property.
- init is called, grabbing a reference to the image element(id is zero) and assining it to the image variable, assignining showAnswer(event handler ) to the image's onclick property.
- Grabbing a reference to the image element(id is zero) and assining it to the image variable, assining 'zero.jpg' to the image's src property.
0 コメント:
コメントを投稿