The program shown below implements animated parallax scrolling of three different levels in JavaScript.
To see the source code, navigate to http://thiscouldbebetter.wordpress.com/2013/04/12/parallax-scrolling-of-background-images-in-javascript/.