The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Change Body Border color on Scroll Reply To: Change Body Border color on Scroll


Ok…figured it out with a little Googling.

I added a common class to each of your border divs so I can select them with Jquery.

Then when the window is scrolled a certain amount another class is added (or removed) that has a different bg color:

As I said, if you want multiple colors at different scroll points then that’s beyond my current skills.