Looking for script - Background remains stationary?

liunx

Guest
Hi! Hope someone can help. I've been searching for a script which keeps the background stationary when you use the scroll bar. Any help in directing me well be appreciated. ThanksHi!

Try any one of the following:

<!-- m --><a class="postlink" href="http://www.javascript.com">http://www.javascript.com</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.dynamicdrive.com">http://www.dynamicdrive.com</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.a1resources.com">http://www.a1resources.com</a><!-- m -->

I hope you will find the best scripts there.I checked those sites out and wasn't able to find the script. Thanks for the suggestions though.Put this between you <HEAD> and </HEAD> tags:

<style type="text/css">
<!--
body { background-image: url(image.jpg); background-attachment: fixed; background-repeat: no-repeat; background-position: center bottom}
-->
</style>

PS: Bucky, the only way to do this is CSS, it cannot be done with Server Side Scripting, so you should of posted this in the Client Side Scripting forum.Thanks for the info but it did not quite work, I got a small square as my background picture?

I'm new to this forum and have already received mega help (I think this is one of the best forums I've been too - a lot of very knowlegable and very helpful people :), I will try to make my postings in the appropreate areas from now on.The code worked fine for me, Bucky.

Here it is again:

<style type="text/css">
<!--
body { background-image: url(image.jpg); background-attachment: fixed; background-repeat: no-repeat; background-position: center}
-->
</style>

(Be sure to replace image.jpg with the image you want for a background.

If that doesn't work please tell me, as it worked fine for me.Try simply using
<BODY BACKGROUND="image.gif" BGPROPERTIES=FIXED>It worked, but my background jpg is only a small square. I'm not really sure but I think I have to enlarge it to fit the whole screen??Thats IT!!! It worked. Thank you, thank you, thank you!!!
 
Top