|
By Eddy R.
5-29-00
Have you ever seen web pages where the text is the only thing that
moves as you scroll down? If not, you'll se what I'm talking about
in a little while. If so, and you've asked how it's done, you are
in luck because I'll go ahead and show you how to accomplish the
effect in two different ways.
BACKGROUND PROPERTIES
This is the easiest way to accomplish the fixed background effect,
simply add the following code inside the BODY tag of your document.
bgproperties="fixed"
<body bgproperties=fixed background="/images/your_graphic_file.gif">
STYLE SHEETS
You can also use style sheets to accomplish this effect, like so.
<STYLE type="text/css">
<!--
body
{
background-image:URL(http://www.yoursite.com/images/your_graphic_file.gif);
background-attachment:fixed;
}
-->
</STYLE>
This code goes in the BODY of your document.
Unfortunately, Netscape 4 and previous versions do not support
either format - that is the background properties and style sheets,
however Netscape 6 promises to support CSS so the fixed background
effect should work on it just fine.
SEE IT IN ACTION
BGPROPERTIES
STYLE SHEETS
|