当滑动条滑动到某一位置触发js

var t =document.documentElement.scrollTop||document.body.scrollTop;

判断t的位置,进行触发相应的js

 

posted @ 2017-05-26 12:32  Harry-  阅读(446)  评论(0编辑  收藏  举报