DOMMouseScroll

マウスのホイールが回された時に発生します。Firefoxで利用できます。

構文

オブジェクト.addEventListener("DOMMouseScroll", "イベント発生時の処理", フラグ)

例文

<html>
 <head>
  <title>DOMMouseScroll</title>
  <script type="text/javascript"><!--
  window.onload = function() {
   document.getElementById("result").addEventListener("DOMMouseScroll", 
   function(){ 
    document.getElementById("result").innerHTML = "DOM Mouse Scroll Event";
   } ,false);
  }
  // --></script>
 </head>
 <body>
 <h1 id="header">DOMMouseScroll</h1>
 <div id="result" style="width:300px;height:200px;border:1px solid black"></div>
 </body>
</html>

関連記事

スポンサーリンク

Live Commerceとは

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る