...

View Full Version : Menu Bar Scrollbar Help



Ben@WEBProp
10-13-2003, 11:56 PM
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

Kor
10-14-2003, 10:48 AM
a link will be helful

Ben@WEBProp
10-15-2003, 10:09 PM
http://www.users.qwest.net/~wpinc1/dscript89



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum