JavaScript Tutorial/Window/onscroll — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:24, 26 мая 2010
Use window.onscroll to add the onscroll event handler
<html>
<head>
<title>OnScroll Example</title>
<script type="text/javascript">
window.onscroll = function () {
alert("scrolling");
}
</script>
</head>
<body>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
<P>Try scrolling this window.</p>
</body>
</html>