JavaScript Tutorial/Window/onscroll

Материал из Web эксперт
Версия от 11:24, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

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>