layers? - non-scrolling background

i just saw a really cool thing at www.hmmm.com (yes i was bored).. when you scroll the page down, the background image stays where it is... i think this uses layer but im not sure. i looked at the code and its ... whoa... complicated. can someone explain how to do this with an example (basically i wanna know how to use layers, and specifically how to do this.) ive never used div tags before so bear with me :)

daniel
th_c_manAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oubelkasCommented:
If you want the background image stay where it is, just use bgproperties="fixed" in the body tag.
So like they do it at www.hmmm.com :

<BODY background="../images/nice1.gif" bgproperties="fixed" link=blue>

background="../images/nice1.gif" is the image and the bgproperties="fixed" of course that link=blue is not of any importance with this issue.

J.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
oubelkasCommented:
OH, you want an example ?

<html>
<head>
<title> background fixed </title>
</head>

<body background="mypic.gif" bgproperties="fixed">

<center>scroll down and see what happens</center>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<center>The picture fixed on the background!</center>

</body>
</html>

The many <BR> tags are there to create a scrollbar. The <BR> tag is a break tag and outputs a hard return. Of course use an image you have instead of mypic.gif.

J.
0
messentaryCommented:
Note that this will only work in IE, not Netscape.
0
oubelkasCommented:
Yes, that's true, it's not possible to do so in Netscape. But you viewed hmmm.com also in IE (or else you wouldn't have seen that the background stays fixed), so this must work for you!

J.
0
th_c_manAuthor Commented:
ok, thanx. sheesh! i thought it was gonna be a lot more complex than that! :)

thanx again
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.