Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2005
    Location
    Toronto
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Stop Scrolling behavior to the onmousewheel event

    hi all,

    I am building a website using jsp.
    I create a form which contains 3 tables. Everything work fine except the only problem is that when i use the mouse wheel over the table area, the table scroll/move with the mousewheel instead of the web page.

    Is there a way to overcome this problem such that when I use the mousewheel over the table the web page scroll/move ONLY instead of the table in the form or unless I click on the table area or move the vertical scrollBar then it makes sense for the table to scroll/move with the mousewheel.

    I tried <Form onMouseWheel="return false"> but it doesn't work.

    Thank you very much for your help.

    Sincerely,
    RT.
    Last edited by Ramy; 01-31-2005 at 05:16 PM. Reason: typo

  • #2
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts
    hey u wanna post a link and let us see exactly wot u mean. Have you set your css overflow properties correctly?
    I'm gonna find a way to download the internet if its the last thing I do...
    Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    for IE only:

    PHP Code:
    <table onmousewheel="return false"
    *keep it simple (TM)

  • #4
    New Coder
    Join Date
    Jan 2005
    Location
    Toronto
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Replying to jaywhy13

    Hi,

    Thanks.
    Could you please look under the heading "Mouse Over Gives Popup" in the Threads in Forum: Javascript Programming where rgn1703 post a table and when we use the mouseWheel within the table, the table scroll/move. Is there a way such that when I have not click on the table and use the mouse wheel ONLY the web page move and ONLY when I click on the table then it should scroll/move. Thanks for any ideas or hint.
    once again, thanks.

    Ramy.

  • #5
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    That's a behaviour of the browser.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •