I'm using supersized ( http://buildinternet.com/project/supersized/ ) for a full size image background slideshow, but I need the background image to s开发者_C百科croll as the user scrolls up/down to read text.
The site i'm using as a reference is http://www.samsung.com/latin/ They used flash for the background slideshow.
Is there any way to achieve the same with js?
Thanks
This will do the trick, I'm using it myself:
#supersized {
position:absolute;
top:0;
left:0;
}
Using position:relative as others have suggested won't work, nor will using position:absolute by itself.
I am not filmier with Supersized, but taking a look at the demo site, it appears to be a simple CSS problem. Try changing #supersized
from position: fixed;
to position:relative;
If you change #superzised
from position:fixed;
to position:absolute;
you should get a scrolling image.
精彩评论