Results 1 to 5 of 5

Thread: problem with scrollbar

  1. #1
    Join Date
    Sep 2008
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Unhappy problem with scrollbar

    Can any one help to add scrollbar with menu using java script?Infect i added all the code but its working in firefox and in any other browser but not in internet explorer

    Here is the code i am using
    function initScrollLayer() {
    var navWin = document.getElementById('lnavwin');
    if (navWin != null && navWin != 'undefined' )
    {
    if (navWin.addEventListener)
    navWin.addEventListener('DOMMouseScroll', lmWheel, false);
    var dataLayer = getLayerName(currentSection);
    if (dataLayer!='lnav-data') document.getElementById('lnav-data').style.visibility='hidden';
    var wndo = new dw_scrollObj('lnavwin', dataLayer);
    wndo.bSizeDragBar = false;
    document.getElementById('dragBar1').style.visibility='';
    wndo.setUpScrollbar("dragBar1", "track1", "v", 1, 0);

    dw_scrollObj.scrollTo('lnavwin', 0, scrollTo, 1);

    }
    }

    you can also check the live page

    http://www.zonetechsystems.com/terms.asp.

    am waiting for response ..

    thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,030
    Thanks
    44
    Thanked 3,211 Times in 3,173 Posts
    Blog Entries
    12

    Default

    IE doesn't have addEventListener or DOMMouseScroll. Your function lmWheel at least looks like it attempts to be cross browser, so all you may have to do is:

    Code:
    if (navWin.addEventListener)
    navWin.addEventListener('DOMMouseScroll', lmWheel, false);
    else if (navWin.attachEvent)
    navWin.attachEvent('onmousewheel', lmWheel);
    There could also be other problems.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    sameera (09-13-2008)

  4. #3
    Join Date
    Sep 2008
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    this change didnt fix the problem.....can you tell me what other problems could b there?

  5. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,030
    Thanks
    44
    Thanked 3,211 Times in 3,173 Posts
    Blog Entries
    12

    Default

    You have too many other scripts on the page, and several script errors that may or may not be related. If you setup a demo page with only the code for the scrolling menu on it, I'll troubleshoot that.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. The Following User Says Thank You to jscheuer1 For This Useful Post:

    sameera (09-14-2008)

  7. #5
    Join Date
    Sep 2008
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    When i use the code only for menu..its work fine both in IE or in FF..here is the lnk for tht page.

    http://www.zonetechsystems.com/v/testmenu.asp

    but when i integrate it with the other html and java script..scroll bar is not working in IE.....

    here is the link for tht page..

    http://www.zonetechsystems.com/Returns.asp

    please if you can help me..i will b very thankful to you...


    am waiting for your reply.

Bookmarks

Posting Permissions

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