Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Layer Scrolling?

Layer Scrolling?
Thread Tools
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jun 6, 2003, 05:03 PM
 
can anyone figure out how this page is scrolling while the bottom image and top image remain fixed???

http://www.macrabbit.com/cssedit/index.html

How would i implement something like this?
     
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Jun 6, 2003, 05:16 PM
 
It's done with CSS:
Code:
body { ...snip... url(../images/rightbg2.gif) no-repeat fixed 100% 80px; ...snip... }
That's the code for the image of the rabbit on the right side. I don't see any other fixed images when I visit the page but that might just be a bad render by Windows IE. Anyway, that's what you need to know.
Travis Sanderson
     
mdc
Addicted to MacNN
Join Date: Feb 2003
Location: NY²
Status: Offline
Reply With Quote
Jun 6, 2003, 07:56 PM
 
or if you are not using .css

replace [ with <
[body background='blah.png' bgproperties='fixed']

that will get you a background image that does not scroll
     
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
Jun 9, 2003, 07:37 PM
 
Hey,
Their page is down now, but does anyone know how in god's name they got that translucent top border thing where the rest of the page scrolled<I>UNDER</I> it working?!

I'd LOVE to know, and I haven't seen it anywhere else!

Thanks,
gabe
(Last edited by Zimwy; Jun 9, 2003 at 07:43 PM. )
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Jun 9, 2003, 09:36 PM
 
how about a div with a z-index higher then the main content. that would have something above.

a semi transparent png image might let you see through... I don't know for sure though

--will
     
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
Jun 10, 2003, 12:02 AM
 
I tried a translucent gif but it won't let you save the translucency, only transparency. How do you set the z index of a div box?

Thanks,
gabe
     
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Jun 10, 2003, 06:07 AM
 
Originally posted by Zimwy:
I tried a translucent gif but it won't let you save the translucency, only transparency.
Yeah, gif only allows transparency. PNG allows a whole range of translucent options.
     
Junior Member
Join Date: Aug 2000
Location: Califon, NJ
Status: Offline
Reply With Quote
Jun 10, 2003, 01:15 PM
 
They are using transparent png's and the css property of "position : fixed;" with a high z-index to get them to "float" above the page.

This doens't work in IE on windows because microsoft conveintly does not support the fixed position.

http://www.w3.org/Style/Examples/007/menus.html

This link should help you out. If not just take a look at macrabbit's css.
Peter Leing
17" 1.67GHz PowerBook
450MHz G4 Cube
     
Dedicated MacNNer
Join Date: Feb 2001
Location: Manhattan
Status: Offline
Reply With Quote
Jun 10, 2003, 02:12 PM
 
Originally posted by pumpkinapo:
They are using transparent png's and the css property of "position : fixed;" with a high z-index to get them to "float" above the page.

This doens't work in IE on windows because microsoft conveintly does not support the fixed position.

http://www.w3.org/Style/Examples/007/menus.html

This link should help you out. If not just take a look at macrabbit's css.
...nor does IE properly support png's...
     
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Jun 10, 2003, 06:32 PM
 
Yeah they don't support PNG-32 (the one with the alpha channel that allows translucency rather than only absolute transparency) but there is hope. I've read about a hack to make it work before and I think this is it:

http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html

I don't have time to check it out right now..if someone gets a chance to before me, report back
Travis Sanderson
     
Junior Member
Join Date: Aug 2000
Location: Califon, NJ
Status: Offline
Reply With Quote
Jun 10, 2003, 09:07 PM
 
There's also a similar solution in the thread:

http://forums.macnn.com/showthread.p...;highlight=png

I use it and it works fine.
Peter Leing
17" 1.67GHz PowerBook
450MHz G4 Cube
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:40 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2