Section 5
A BODY BACKGROUND TRICK FOR INTERNET EXPLORER
     There is an on-going battle with web browsers and HTML tags (mostly
between Netscape and Microsoft Internet Explorer).  Each tries to add some
extra features that are not in the 'true' current HTML standard(s).
     One of these is a neat trick that you can use for Internet Explorer in
the <BODY> tag.  You can add the option BGPROPERTIES="fixed" to the <BODY>
tag like this:
<BODY BGCOLOR="#000000" BACKGROUND="m45.jpg" BGPROPERTIES="fixed"
 TEXT="#FFFFFF" LINK="#6699FF" VLINK="#6699FF">
     The above is a <BODY> tag I had used for my "index.html" file, and
also several others, on GeoCities.  If you viewed those web pages with
Internet Explorer, you would have noticed that the star background stayed
put, while the text scrolled up and down on top of it.  Since this is an
Internet Explorer specific HTML tag, Netscape simply ignores it and the
star background scrolls up and down right along with the text.
     Here is the actual BODY Tag being used on this web page:
<BODY BACKGROUND="spacback.gif" BGPROPERTIES="fixed" BGCOLOR="BLACK"
 TEXT="YELLOW" LINK="#6699FF" VLINK="#6699FF" ALINK="#FF0000">
    As long as I am pointing out some of the differences between IE and
Netscape... Here is another one that can also go in the <BODY> tag for IE.
BGSOUND="filename.ext".  This will load/play a wave or midi file (and
several other audio file formats) with Internet Explorer.  Again, Netscape
will simply ignore it, and not load/play the sound file.  Netscape does
their HTML tag for sound files differently.  IE can (sort of) work with the
way Netscape wants it, but I won't get into the sound file stuff right now.
[Previous Section] [Table of Contents] [Addendum] [Milt's Micro Digest Home Page] [Next Section]
The names Microsoft, Internet Explorer, Netscape, and others used in this document
are Trademarks, or Registered Trademarks of the companies represented.
E-mail questions, comments, or suggestions to: miltst@hotmail.com
© 1999 miltst@hotmail.com

Counter
(This page was last modified on: Monday, February 08, 1999)
1