本文介绍了“滚动结束”事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

滚动结束时我可以陷阱吗?这就是我想要的 - 当网站访问者开始滚动主页时​​,计算器

消失。我正在用onScroll()做

功能。我带着计算器带回来了一个

" onMouseup()"当滚动条释放时,我会激活它,但是它不会被释放。我真正想要的是一个offScroll()。但是有没有这样的东西!


Can I trap when the scroll is ended? This is what I want - the calculator
disapears when the site visitor starts scrolling the main page. I''m doing
that with an "onScroll()" function. I''m bringing the calculator back with a
"onMouseup()" which I thoguht would activate when the scroll bar was
released but it doesn''t. What I really want is an "offScroll()" but there is
no such thing!

http://www.mississippiprinting.com/M...Size=8%20x%209

推荐答案





仔细想想你在问什么。滚动的过程

包含一系列连续滚动动作,每个动作将

页面移动一定量,每个动作必须在另一个动画开始之前结束。

将决定触发''offscroll''事件?

要重新显示你的div或其他什么,你需要监控页面的时间/>
位移保持不变。

除了使用onscroll事件隐藏div之外,还可以设置/刷新超时以恢复可见性



-

SC



Think carefully about what you are asking. The process of scrolling
consists of a series of sequential scroll actions, each of which moves the
page by a set amount, and each must end before another can start. What would
determine the triggering of an ''offscroll''event?
To re-show your div or whatever, you need to monitor the time that the page
displacement has remained the same.
In addition to using the onscroll event to hide the div, it could
set/refresh a timeout for restoring visibility.

--
S.C.



这篇关于“滚动结束”事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 07:54
查看更多