background scroll

           

Source:WWW.CodeFoot.com
Important:
Insert the following script immediately *after* the body tag tag:

BACKGROUND:

===========

This is an interesting effect that causes the background image of

your page to scroll underneath the page content.

INSTRUCTIONS:

=============

Step One:

---------

Make a background image and add it to your page

as you normally would, like this:

<body background="someImage.jpg">

Step Two:

---------

Insert the following script immediately *after* the

<body> tag:

<script>

<!-- // Source: CodeFoot.com

// set the speed

// larger numbers = slower scroll

var howQuick = 10;

// do not edit below

// -----------------

var beIE = document.all?true:false;

var iWhere = 0;

function scrollBackGround(){

if (beIE){

iWhere = iWhere + 1;

if (iWhere > 1000000) iWhere = 1;

document.body.style.backgroundPosition = "0 " + iWhere;

window.setTimeout("scrollBackGround()",howQuick);

}

}

scrollBackGround();

//-->

</script>

USE NOTES:

==========

Note that only IE supports this use; other browsers will ignore

the script and display the background image normally.