|
Credit: Mulchaey et al (ST Sci/UMD/NASA)
Here are some optional homework assignments that you might wish to try:
- Write a simple JavaScript/HTML program which prints out, using
a plain text window, the line "Mary had 26 lambs" when you
click on a button (see this
for the result.
- Write a JavaScript/HTML program that computes the average GPA of
a number of students. See this
for
the result.
- Write a JavaScript program that replaces one GIF image with another
when you click a button. See this
for the result.
- In the
Image replacement and animation program, replace the current image set
with a different set (and number) of images. Note: you can copy the
program
as follows:
- Click on View > Source
- Click on Edit > Select All
- Use the *right* mouse button to click on a highlighted part of
the text and select Copy
- Login to Homer or Dante, go to the desired directory in your
public_html directory, use the "Pico" editor to
create a file, and then use the *right* mouse to select
Paste and then save the file.
- Create a set of GIF files that are the same size
- Modify the number and names of the GIF files in the program
|
|
 |
|
 |