Simple background parallax scrolling in javascript.
[ scroll up, down, left, and right ]
iex.8+, fir.10+, ope.10+, chr.10+, saf.5+, etc. compatible.
<script>
window.onscroll=function() {
var speed=4.0;
var ypos=(document.all) ? document.body.scrollTop : window.pageYOffset;
var xpos=(document.all) ? document.body.scrollLeft : window.pageXOffset;
document.body.style.backgroundPosition=(-xpos / speed+"px") +" "+ (-ypos / speed+"px");
}
</script>
Info & Experiments by: s c r i p t s h o w
Bienvenido Bienvenue Benvenuto Bemvindo Welcome Willkommen - Thanks: FerWeb | parascroll