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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2003
    Location
    Spokane, WA
    Posts
    512
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Menu Bar Scrollbar Help

    I have a navigation bar script, and it works great, 'cept for 1 tiny little problem. Whenever the thing loads, i get a pretty huge horizontal scrollbar and a ton of extra empty space to the right side of the screen. I think it has something to do with these lines of code. Does anyone know what the deal is? I will put a link to all the files if necessary.

    // find the inner width and height of the browser window
    var bW=window.innerWidth;
    var bHe=window.innerHeight;

    // compensate for lack of scrollbar if applicable
    //djochange added the if loop checking for Konqi. Konqi doesn't need to be adjusted
    if (!konqi&&!op6) {
    if(mz7){
    if(document.width < (innerWidth-17)){bW-=17;}
    if(menuALIGN=="free"){bW-=17;}
    } else if(ns6){
    if(document.width <= (innerWidth-30)){bW-=14;}
    if(menuALIGN=="free"){bW-=14;}
    }
    }
    //end djochange

    //override width if defined
    if(documentWIDTH>0){bW=documentWIDTH;}

    // find the nav width and horizontal space

    var eS=0;
    var nS=0;
    for (j=0;j<mI.length;j++){
    if(mI[j][2]==""){mI[j][2]=10;}
    if(mI[j][1]==""){mI[j][1]='&nbsp;';
    }
    nS+=mI[j][2]+bSIZE;
    }
    eS=bW-nS-bSIZE;

    if(menuALIGN!="free"&&(bW<nS)){menuALIGN="left"; aL=0; stretchMENU=false; showBORDERS=false;}


    Thanks!

    -Ben
    Thoughts determine what you want,
    Actions determine what you get.

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    a link will be helful
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Regular Coder
    Join Date
    Jun 2003
    Location
    Spokane, WA
    Posts
    512
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thoughts determine what you want,
    Actions determine what you get.


  •  

    Posting Permissions

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