Changing the Movie s Background Color


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 instead of dull gray. I think it's an improvement.


Tips

  • To get rid of the background altogether, either adjust the height and width so they match the size of the movie or match the background to the page's background color.

  • If you make the frame just slightly larger than the movie, the bgcolor can look like an attractive border.

  • If you're using two object elements (as I recommend), remember to add the param elements to both.





HTML, XHTML, & CSS(c) Visual QuickStart Guide
HTML, XHTML, and CSS, Sixth Edition
ISBN: 0321430840
EAN: 2147483647
Year: 2004
Pages: 340

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