X52.9755 Lecture 8: Thursday, April 9, 1998
In-class examples
- Last week's example of
changing
the value of a property of an object.
- One of the students wrote
Monday's child.
- I wrote a
multi-way
if on the board last week.
- Document has moved
(the old
way).
- Document has moved
(the new
way).
Look at the status line before you click.
- 100 Bottles of Beer on the Wall
- The
COLOR
attribute of the <FONT> tag.
- The
HEIGHT and WIDTH
attributes of the <IMG> tag.
- An
array
of words.
- Nested
loops.
- Last week, we made
one
cookie;
this week,
we'll make
three.
Uses arrays and for loops.
- Package statements into a
function.
- Event handlers
in a client-side imagemap
- List of the names of the event handlers:
- World
Wide Web Consortium
HTML documentation
- Netscape
JavaScript documentation
- Flanagan,
pp. 162-163.
- Wagner,
p. 220.
- Event handlers in a
form.
Style sheet
World Wide Web Consortium
deprecates
the
<FONT>
tag.
Helvetica
SIZE = 1
Pack my box with five dozen liquor jugs.
SIZE = 2
Pack my box with five dozen liquor jugs.
SIZE = 3
Pack my box with five dozen liquor jugs.
SIZE = 4
Pack my box with five dozen liquor jugs.
SIZE = 5
Pack my box with five dozen liquor jugs.
Roman
SIZE = 1
Pack my box with five dozen liquor jugs.
SIZE = 2
Pack my box with five dozen liquor jugs.
SIZE = 3
Pack my box with five dozen liquor jugs.
SIZE = 4
Pack my box with five dozen liquor jugs.
SIZE = 5
Pack my box with five dozen liquor jugs.