onmousewheelpressdown

Discussion in 'JavaScript' started by Mitchell, Sep 11, 2007.

  1. #1
    Can the mouse wheel turn and push be programed using JavaScript?

    Thanks for any help.
     
    Mitchell, Sep 11, 2007 IP
  2. phper

    phper Active Member

    Messages:
    247
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Hi Mitchell,

    Turning your mouse wheel basically scrolls the page, so you can just use the onscroll event.

    For wheel push, just detect the onclick event and then check which button triggers the event.
     
    phper, Sep 13, 2007 IP
  3. Mitchell

    Mitchell Peon

    Messages:
    204
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks phper, you have been very helpful. This will come in very handy.

    By the way I posted a similar question in HTML & Website Design and
    deathshadow sent me this link.

    http://adomas.org/javascript-mouse-wheel/
     
    Mitchell, Sep 14, 2007 IP