Lecture
Notes:
Next
Week: Quiz, Review of Homework Assignment Set 1,
Forms & Form Validation
Practice
Quizzes:
Homework:
Reading
Assignment
OnLine Tutorial Parts 5, 6,
8, & preparation for
next week 7
Assignment
2: Due 20 Oct
(Note: For this assignment instead of creating
a links page that points to the individual exercises, create a page with
a drop down box that jumps to each exercise. So 231.htm
will be the links page. Template)
- (231.htm) will include status
bar messages that goes from left to right, and looks like a
typewriter is typing the message. The main class example above goes
from right to left & scrolls. In this exercise have the status
bar display several (3 - 4) different messages with a pause
(different than the typing speed) between each message.
NOTE: Don't use a for loop - this can get you into major
trouble.
Hint: A template for
possible use
- (232.htm)
Create a page with HTML & JavaScript that includes a form with
three input fields. The relationship of the values of the fields are
such that the second field is twice the value of the first field,
and the third field is the square of the first field. The user can
input a number in any field and onChange
the appropriate values are outputted to the other fields.
What should happen - if you put :
4 into the 1st field then 8 shows up in the 2nd field, &
16 in the 3rd field.
10 into the 2nd field then 5 shows up in the 1st field, & 25 in
the 3rd field.
36 into the 3rd field then 6 shows up in the 1st field, & 12 in
the 2nd field.
Hints:
A template for possible use
To make this script easier, you will probably want to use some
of the Math methods.
- (233.htm)
- Create an image onMouseOver
that swaps the image and takes the user back to 231.htm when the
user clicks on the image. Use the images on the Images
Page.
- Include a
document.getElementById(...).innerHTML or TITLE
message to go along with
the onMouseOver.
- Make sure that on a onMouseOut
the message disappears when
the user leaves the image.
- Also make sure that you use "if (document.images)"
and pre-load the images.
- Include also one "text hyperlink" on the page that
"points" to & explains 231.htm by using a onMouseOver
Tooltip and onMouseOut
the Tooltip disappears.
Hint: Use this example
- (234.htm)
Create a script that prompts the user for a number x (4 -
6), & then prompts the users x times, each prompt
requires the user to input a single word. Once the user has inputted
a number x (4 - 6) and x number of words, then
print out the words in reverse order. Make sure that each word is on
a separate line.
Hints:
- prompt("How
many Words (4 - 6 is good)?", "4")
- prompt("What's
Word " + x + "?", "") - where x
is 1 - 4 or 6 for example.
|