既然你正在使用jquery,你可以使用jQuery.scroll():
$(window).scroll(function() {
if ($(window).scrollTop() > $(window).height() / 2) {
alert('At Half the screen');
}
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2206 次 |
| 最近记录: |