Background – No Scroll -Fixed

[Total: 0    Average: 0/5]

IE has a CSS property that allows a background image to not scroll with the rest of the page.

Head Code:

<style type=text/css>
body {background-image: url(http://www.js-examples.com/images/blue_ball0.gif);
      background-attachment: fixed;
}
</style>

Body Code:

<script>
for(i=0;i<40;i++)document.write("<BR>");
</script>
JUST A BUNCH OF BRs to get the window to have a scroll bar.

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *