Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stay Background Stay!

Status
Not open for further replies.

A3OutlawHQ

Programmer
Joined
Dec 10, 2001
Messages
4
Location
US
Hi, I was wondering if there is a possible way to keep the background image still. So when you scroll down the image always stays there without getting scrolled up with the info in the middle of the page. I'm assuming this would have to do with setting the scroll bar somewhere else since the image has to stay still.

-Gene
 
A3OutlawHQ. there's a much simpler method: Put this in the <body> tag:
<body img=&quot;image1.gif&quot; bgproperties=&quot;fixed&quot;>
This make the image stay in one plce no matter how far down the page is scrolled. But this only works in IE and not in NS4.72, it may work in NS6... I have not failed; I merely found 100,000 different ways of not succeding...
 
Ok, cool but there is one other element I forgot to include, if I had icons on the right side that is a layer on the background pic would I be able to make the icons stay along with the background instead of disappearing when scrolling down?

-Gene
 
Hmmmm I tried the html code above and the pic does not seem to load. It just stays blank, possibly I'm doing it wrong?
Can you run it by me again?

-Gene
 
Hi, this is the code:

<body background=&quot;imageName.jpg&quot; bgproperties=&quot;fixed&quot;>

You just put in the <body> tag, and whatever the image is it will not scroll down as it noramly would. Only the text, images, etc on top of the background image will...
As for the icons on the right side of the image, if they are included on the background image then they will stay put, if the icons are placed on top of the background image then it will scroll...understand?? I have not failed; I merely found 100,000 different ways of not succeding...
 
here is a link to the code where there is a layer in page remains in a fixed position of the page change the contents to contain your navigation or your icons and then will also stay fixed even when the page is scrolled

Unicorn11
unicorn11@mailcity.com

[red]Luck is not chance, it's toil; fortune's expensive smile is earned.[red]
 
Thanx a bunch guys! You've been real helpful ^_^

-Gene
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top