Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).scroll(function() {
- var DST = $(document).scrollTop();
- if(DST > 100 && DST < 200) {
- // change the color
- } else if(DST > 200 && DST < 300) {
- // change to another color
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement