滚动事件触发 ScrollStop
- 授权协议: Unlicense
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/ssorallen/jquery-scrollstop
软件介绍
ScrollStop 是一个 jQuery 插件,当在 Windows 系统上开始滚动和停止滚动的时候,jQuery 会触发两个事件:scrollstart 和 scrollstop。
示例代码:
$(window)
.on("scrollstart", function() { // Paint the world yellow when scrolling starts.
$(document.body).css({background: "yellow"});
})
.on("scrollstop", function() { // Paint it all green when scrolling stops.
$(document.body).css({background: "green"});
})
JavaScript实战手册
David Sawyer McFarland / 李强 / 机械工业出版社 / 2009 / 89.00元
在《JavaScript实战手册》中,畅销书作者David McFarland教你如何以高级的方式使用JavaScript,即便你只有很少或者没有编程经验。一旦掌握了这种语言的结构和术语,你将学习如何使用高级的JavaScript工具来快速为站点添加有用的交互,而不是一切从头开始编写脚本。和其他的Missing Manuals图书不同,《JavaScript实战手册》清楚、精炼,手把手地讲解。 ......一起来看看 《JavaScript实战手册》 这本书的介绍吧!
