EXERCISES


1:

Create a CSS style sheet that makes all h1 elements italic and blue.

2:

Define a class called title that can be used on an element to make the font face Arial, extra large, and bold.

3:

Create a style for a paragraph with a unique ID that will define a style for a font family, font size, and font color .

4:

Create a style that will affect all the cells in an HTML table.

5:

Create a style that be used with a <div> tag to produce a light green box, positioned in the left-hand corner of the screen, with a solid, dark green border. The <div> container will contain a paragraph of italic text.

6:

Write a JavaScript program that will tell you the name and version of your browser and whether it is DOM compliant.

7:

Rewrite Example 15.34 to use an Array constructor in the init() function. Each image will be referenced as an array element when the Image constructor is called.

8:

Create an animation of a stickman running. You will need to draw several stickmen of the same size in different running positions . Your program will give the illusion of the stickman running.




JavaScript by Example
JavaScript by Example (2nd Edition)
ISBN: 0137054890
EAN: 2147483647
Year: 2003
Pages: 150
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net