# Fixed background when scrolling

**URL:** https://forum.kirupa.com/t/fixed-background-when-scrolling/192728
**Category:** Uncategorized
**Created:** [June 30, 2006, 3:35pm UTC](https://forum.kirupa.com/t/fixed-background-when-scrolling/192728 "2006-06-30T15:35:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)
#### Post date: [June 30, 2006, 3:35pm UTC](https://forum.kirupa.com/t/fixed-background-when-scrolling/192728/1 "2006-06-30T15:35:29Z")

</div>

I’m trying to make a background for a html page remain static so content will scroll on top of it. Here’s the catch. Imagine a horribly designed myspace page with miles of content you have to scroll through from top to bottom. I’d like to be able to have a swf as a background at a set size (i.e. 800x800) an every time a user scrolls down the page, the swf relocates itself to the top of the browser window. I already have the swf in a div behind the content (div), only problem is that it is static at the top of the page. Once a user starts scrolling down you can’t see it anymore obviously.

So does anyone have some sample script or links to tuts to achieve this?  
I know it’s possible through use of DHTML or just some javascript alone, I just can’t figure out a solution for my exact problem.
