Change Image on Scroll Position
I would like to change an image on a certain scroll position. For example: Scroll 100px show img1.jpg Scroll 200px show img2.jpg Scroll 300px show img3.jpg Here I found an example what I mean. Any ideas? You can use the onScroll event to listen for scrolling, check at what position the scrollbar is and make the image change or whatever your heart desires. You can read more about onScroll event here . A basic code will be something like this: var onScrollHandler = function() { var newImageUrl = yourImageElement.src; var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;