HTML and CSS Reference
In-Depth Information
11
Using DOM to
Enhance Web Pages
Objectives
You will have mastered the material in this chapter when you can:
•
Define the Document Object Model
•
Call JavaScript functions directly
(DOM)
Use the Math.random() method to
using the JavaScript command
Use onMouseOver and
•
•
display a different image on a Web
page every time the Web page is
loaded
Describe how mouse event handlers
onMouseOut event handlers to
control pop-up captions
Integrate the <div> tag in JavaScript
•
•
statements for pop-up captions
Define an array and describe how
control image rollovers
Integrate Cascading Style Sheets
•
•
to create an array instance
Create a slide show using image
(CSS) with JavaScript statements to
position elements on a Web page
Use the JavaScript setTimeout() and
•
objects
•
clearTimeout() methods to control a
floating image on a page