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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with layers/backgrounds

Status
Not open for further replies.

naiku

Technical User
Joined
Apr 25, 2002
Messages
346
Location
US
Hi All

I am using Javascript on a background layer to resize it so that it always fills the screen. However I want to keep the background fixed and scroll the text/content of the page.
Since I am a beginner I am not 100% sure how to achieve this. I know I can use CSS to keep a background fixed and scroll the text, but the background is on a layer with the Z index of -1 so I don't know if I can keep that static.

Is there a way that my background layer can remain fixed and I can scroll the text over that layer?

Any help greatly appreciated

Naiku
 
just make the background your BACKGROUND IMAGE dont put in in a layer "blah blah blah blah blah..."-Dennis Quaid
 
Would changing it to a background image affect the Javascript? or would the background image still resize regardless of whether it is a layer or just a background image as long as I changed the variables in the Javascript?

Naiku
 
You will have to use JS and put the background in a layer in order for it to resize. I have not done that but once you write or find a free script please post it here. Peace
BT
 
ok get the presistent layers extension from macromedia exchange. It will keep your layer fixed. also there is an extension at macromedia exchange called backgrounds that fit. That is a resize script that streaches or compresses a layer according to size Ranjan
fragments of dream, weave them together
 
or you can use css "blah blah blah blah blah..."-Dennis Quaid
 
Hey all

thanks for the replys, not back in the office until Monday now but will try everything then.

I have got a free script which I will post here incase anyone else needs it

naiku
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top