WEB stop body from scrolling

Discussion in 'OT Technology' started by RiKuN, Aug 23, 2007.

  1. RiKuN

    RiKuN New Member

    Joined:
    Sep 20, 2006
    Messages:
    37
    Likes Received:
    0
    Is there a way to stop the body from scrolling if the mouse is over a certain div? I don't want to make the scrollbar go away, I just want to localize the scrollwheel events to that div. I've tried doing document.body.scrollTo(0,0) but that makes it all jittery and somewhat dizzying.
     
  2. Aslan

    Aslan My avatar is the new hotness... yours... Old and b

    Joined:
    Jun 1, 2001
    Messages:
    4,823
    Likes Received:
    0
    Location:
    NW burbs o' Chicago
    can you show me an example?
     

Share This Page