• 27-05-2014, 15:55:41
    #1
    arkadaşlar mouse göre kayan sayfa javascripti var elimde ama çok hızlı hareket ediyor mouse göre. buna nasıl hız değeri ekleyebiliriz.

    Alıntı
    <script>
    // Variables for current position
    var x, y;


    function handleMouse(e) {
    // Verify that x and y already have some value
    if (x && y) {
    // Scroll window by difference between current and previous positions
    window.scrollBy(e.clientX - x, e.clientY - y) ;

    }

    // Store current position
    x = e.clientX;
    y = e.clientY;
    }

    // Assign handleMouse to mouse movement events
    document.onmousemove = handleMouse;

    </script>
  • 28-05-2014, 09:02:35
    #2
    javascript kod üzerinde mouse hızını nasıl ayarlayabilirim dünden beri çok aradım ama sonuç çıkaramadım.