標籤

2012年5月28日 星期一

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

Lab 34 Hand code a form


Before you do this lab, you must understand what is CGI(Common Gateway Interface) and Form.

1. So please search the answer and post your opinion in your blog.

2. Hand code a HTML or use KompoZer to edit an HTML so that the webpage can send a request to Google like
http://maps.google.com/maps?q=24.9586,+121.24114

Use Form CGI that includes action, input, and submit.

Try a few different coordinates..



2012年5月20日 星期日

Lab 33 Lab Form and Action

1. Copy the search box of this search page,inlcuding radio buttons, text input, and submit button.
2. Open your KompoZer HTML editor.
3. Open a new empty HTML file.
4. Paste the search box into this new file.

5. Use KompoZer to add a Form to this search box. Do not hand code the HTML. Just fill the blank in the Form dialog.

6. In the form dialog, set Action="http://google.com/search" and name of Form as "f" and method as "get"
(See Hint if it does not work.)

7. Save your file on your computer. Run your HTML by Firefox. What do you get?





8. Set method as "post"



9. Run your HTML by Firefox. What do you get?



Lab 32 Mash-Up 4 (Calendars)


Lab 31 Mash-up 3 (Blogs)

2012年5月14日 星期一