Changing the Movie’s Background Color

When we reduced the size of the movie on the previous page, its background became visible (and ugly). You can change the background color to make it more attractive (or to make it disappear).

Figure 18.22. The bgcolor attribute is only used if the movie is smaller than the height and width you’ve specified.

To change the movie’s background color:

Within each object element, type <param name="bgcolor" value="color" />, where color is one of the sixteen predefined values or a hexadecimal representation of a color (see page 126 and the inside back cover).

Figure 18.23. Now the background is bright yellow ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.