Indonesia
<html> <head> <script type="text/javascript"> fungsi pegangan(delta) { var s = delta + ": "; if (delta <0) s += "turun"; lain s += "naik"; dokumen.getElementById('delta').innerHTML = s; }//dari downcodes.com fungsi roda(acara){ var delta = 0; if (!event) event = window.event; if (event.wheelDelta) { delta = event.wheelDelta/120; if (jendela.opera) delta = -delta; } else if (acara.detail) { delta = -acara.detail/3; } jika (delta) menangani(delta); } /* Kode inisialisasi. */ if (window.addEventListener) window.addEventListener('DOMMouseScroll', wheel, false); window.onmousewheel = dokumen.onmousewheel = roda; </script> </head> <body> <div id="delta">滚动鼠标中间的滚轮可以看到效果</div> </body> </html>