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