JavaScript Tutorial/Window/onscroll
Версия от 21:52, 25 мая 2010; (обсуждение)
Use window.onscroll to add the onscroll event handler
<source lang="javascript">
<html>
<head> <title>OnScroll Example</title> <script type="text/javascript"> window.onscroll = function () { alert("scrolling"); } </script> </head> <body>
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
Try scrolling this window.
</body>
</html></source>