?
? ????? PHP ??? ???? ??? ?? ??
頁面滾動停止時彈出信息:
效果預覽 ?$(document).on("scrollstop",function(){
? alert("Stopped scrolling!");
});
scrollstop是頁面滾動停止時觸發(fā)的事件。
提示: 此事件通常附加到文檔。
提示: scrollstart是頁面開始滾動時觸發(fā)的事件。
$("selector").on("scrollstop",function(event){...})
參數(shù) | 描述 |
---|---|
function(event) | 必須。指定 scrollstop 事件觸發(fā)時執(zhí)行的函數(shù)。 該函數(shù)有可選的事件對象 ,事件對象可以是任何 jQuery 事件屬性 (例如 event.target, event.type, 等)。更多信息請查閱 jQuery 事件參考手冊 。 |
滾動停止計數(shù)
計算 scrollstop 事件觸發(fā)的次數(shù)。
事件對象
使用 event.target 屬性返回 scrollstop 事件觸發(fā)的DOM元素。