August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.classes.className.tagName.backgroundImage
The backgroundImage property specifies the background image of an element as associated with the class called className. The definition can also specify a tag or the word all for tagName.
Listing 7.62 makes the image logo.gif the background for the header text.
<html> <script> <!-- Hide //Create a style sheet class that uses an image as a background document.classes.BGI.all.backgroundImage = "logo.gif"; //Hide End ---> </script> <h2 class=BGI>Look at my background image!</h2> </html> |
Read now
Unlock full access