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>
関連記事
- onUnload
- onSubmit
- onStop
- onStart
- onSelectStart
- onSelectionChange
- onSelect
- onScroll
- onResizeStart
- onResizeEnd
- onResize
- onReset
- onreadystatechange
- onPaste
- onMoveStart
- onMoveEnd
- onMove
- onMouseWheel
- onMouseUp
- onMouseOver
- onMouseOut
- onMouseMove
- onMouseLeave
- onMouseEnter
- onMouseDown
- onLoad
- onKeyUp
- onKeyPress
- onKeyDown
- onHelp
- onFocusOut
- onFocusIn
- onFocus
- onFinish
- onError
- onDragStart
- onDragOver
- onDragLeave
- onDragEnter
- onDragEnd
- onDrag
- onDblClick
- onCut
- onCopy
- onContextMenu
- onClick
- onChange
- onBlur
- onBeforeUnload
- onBeforePrint
- onBeforePaste
- onBeforeCut
- onBeforeCopy
- onAfterPrint
- onAbort
- event.y
- event.x
- event.wheelDelta
- event.type
- event.toElement
- event.screenY
- event.screenX
- event.keyCode
- event.pageY
- event.pageX
- event.offsetY
- event.offsetX
- event.srcElement
- event.detail
- event.clientY
- event.clientX
スポンサーリンク