ScrollStop是一个jQuery插件,当在Widows系统上开始滚动和停止滚动的时候,jQuery会触发两个事件:scrollstart和scrollstop。
示例代码:
$(widow) .o("scrollstart",fuctio(){ //Paittheworldyellowwhescrolligstarts. $(documet.body).css({backgroud:"yellow"}); }) .o("scrollstop",fuctio(){ //Paititallgreewhescrolligstops. $(documet.body).css({backgroud:"gree"}); })
评论