Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:07

Vertical Scroll Bar Should Not Appear


Poster: cshontz
Dated: Thursday October 2 2003 - 22:04:17 BST

A vertical scroll bar appears in my main Internet Explorer 6.0 window after an initial page load or refresh, and then *POOF* - it disappears when I pull down the a certain menu.

The "certain" menu is currently the only menu with content, so that I could debug this problem. This menu happens to have a large list of items in it with a long overflow. It looks like when the page initially loads, it sets the page length to accomodate this long list of items and activates the scrollbar - but when I pull down the menu, the main window scroll bar is deactivated as it should have been from the start.

Is this the nature of the Milonic DHTML menu software, or do I have something set up improperly?

Here is the URL to the work-in-progress:
http://209.123.24.26/rgallery.asp?vehicle=56


Poster: cshontz
Dated: Thursday October 2 2003 - 22:04:49 BST

Top part of menu data file:

-----

_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_followSpeed=5 // Follow scrolling speed
_followRate=40 // Follow scrolling Rate
_subOffsetTop=10 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset
_scrollAmount=3 // Only needed for Netscape 4.x
_scrollDelay=20 // Only needed for Netcsape 4.x

with(mainStyle=new mm_style()){
onbgcolor="#dfdfdf";
oncolor="#000000";
offbgcolor = "#ffffff";
offcolor="#000000";
bordercolor="#000000";
borderstyle="solid";
//borderwidth=0;
separatorcolor="#000000";
separatorsize="0";
padding=2;
fontsize="12";
fontstyle="normal";
fontfamily="Arial,Helvetica";
pagecolor="000000";
pagebgcolor="#ffffff";
headercolor="#000000";
headerbgcolor="#ffffff";
//subimage="arrow.gif";
subimagepadding="2";
//overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
//outfilter="randomdissolve(duration=0.3)";
}


Poster: cshontz
Dated: Thursday October 2 2003 - 22:06:09 BST

Dynamic menu body, ASP script:

-----

<%
set rsCust = Server.CreateObject("ADODB.Recordset")
rsCust.ActiveConnection = MyDSN
rsCust.Source = "SELECT DISTINCT rides.customerid, customers.lastname, customers.firstname, clubs FROM rides LEFT JOIN customers ON rides.customerid = customers.customerid WHERE rides.mainimage IS NOT NULL ORDER BY customers.lastname, customers.firstname"
rsCust.CursorType = 3
rsCust.CursorLocation = 3
rsCust.LockType = 3
rsCust.Open

strCustList = ""
While NOT rsCust.EOF
strCustList = strCustList & "aI(""text=" & rsCust("lastname") & ", " & rsCust("firstname") & ";url=rgallery.asp?owner=" & rsCust("customerid") & ";"");" & vbcrlf
rsCust.MoveNext
Wend

rsCust.Close
Set rsCust = Nothing
%>

<SCRIPT language=JavaScript type=text/javascript>
with(milonic=new menuname("menu")){_c=1
style = mainStyle;
alwaysvisible = 1;
orientation="horizontal";
position="relative";
aI("text=&nbsp;&nbsp;Home&nbsp;&nbsp;;url=http://209.123.24.26");
aI("text=&nbsp;&nbsp;Vehicles&nbsp;&nbsp;;showmenu=vehicles");
aI("text=&nbsp;&nbsp;Owners&nbsp;&nbsp;;showmenu=owners");
aI("text=&nbsp;&nbsp;Clubs&nbsp;&nbsp;;showmenu=clubs");
}

with(milonic=new menuname("Owners")){_c=1
style = mainStyle;
borderwidth=1;
overflow="scroll";
<%=strCustList%>}

</SCRIPT>


Poster: cshontz
Dated: Thursday October 2 2003 - 22:07:25 BST

Some output:

-----

with(milonic=new menuname("Owners")){_c=1
style = mainStyle;
overflow="scroll";
aI("text=Abbott, Heather;url=rgallery.asp?owner=2;");
aI("text=Althouse, Josh;url=rgallery.asp?owner=3;");
aI("text=Anaya, Mario;url=rgallery.asp?owner=4;");
aI("text=Applegate, Rich;url=rgallery.asp?owner=5;");
aI("text=Attinello, J.C.;url=rgallery.asp?owner=7;");
aI("text=Baker, Phil;url=rgallery.asp?owner=10;");
aI("text=Beahm, Reed;url=rgallery.asp?owner=11;");
aI("text=Beatty, Colin;url=rgallery.asp?owner=12;");
aI("text=Behn, Courtney ;url=rgallery.asp?owner=13;");
aI("text=Bennett, Richard;url=rgallery.asp?owner=14;");
aI("text=Biviano, Chris ;url=rgallery.asp?owner=15;");
aI("text=Boiros, Rick;url=rgallery.asp?owner=16;");
aI("text=Brower, Patrick;url=rgallery.asp?owner=18;");
aI("text=Burgstresser, Guy;url=rgallery.asp?owner=19;");
aI("text=Burkhart, Miles;url=rgallery.asp?owner=20;");
aI("text=Burns, Chris;url=rgallery.asp?owner=21;");
aI("text=Carbone, Tedd;url=rgallery.asp?owner=22;");
aI("text=Carroll JR, Denny;url=rgallery.asp?owner=23;");
aI("text=Carter, Ken;url=rgallery.asp?owner=24;");
aI("text=Cassetty, Robert;url=rgallery.asp?owner=25;");
aI("text=Cawthern, Ned;url=rgallery.asp?owner=26;");
aI("text=Chadwick, Chris;url=rgallery.asp?owner=28;");
aI("text=Clayton, RJ;url=rgallery.asp?owner=30;");
aI("text=Coates, Derrick;url=rgallery.asp?owner=31;");
aI("text=Coleman, Jeff;url=rgallery.asp?owner=32;");
aI("text=Collison, Adrian;url=rgallery.asp?owner=33;");
aI("text=Condrack, Keith;url=rgallery.asp?owner=34;");
aI("text=Connon, Ryan;url=rgallery.asp?owner=35;");
aI("text=Cooper, Jackie;url=rgallery.asp?owner=36;");
aI("text=Cornell, Shawn;url=rgallery.asp?owner=37;");
aI("text=Cox, Lee;url=rgallery.asp?owner=38;");
aI("text=Cunningham, Scott ;url=rgallery.asp?owner=39;");
aI("text=Davis, Matt;url=rgallery.asp?owner=40;");
aI("text=DeGregoris, Matt;url=rgallery.asp?owner=41;");
aI("text=Denaster, Mike ;url=rgallery.asp?owner=42;");
aI("text=Dietz, David;url=rgallery.asp?owner=45;");
aI("text=Dixon, Joe;url=rgallery.asp?owner=46;");
aI("text=Dixon, John;url=rgallery.asp?owner=47;");
aI("text=Domenick, Greg;url=rgallery.asp?owner=48;");
aI("text=Dugan, Andrew;url=rgallery.asp?owner=50;");
aI("text=Eckert, Travis;url=rgallery.asp?owner=51;");
aI("text=Edwards, Brian;url=rgallery.asp?owner=52;");
aI("text=Ernest, Gary;url=rgallery.asp?owner=56;");
aI("text=Evans, Nathan;url=rgallery.asp?owner=57;");
aI("text=Falk, Dave;url=rgallery.asp?owner=58;");
aI("text=Fan, Marty;url=rgallery.asp?owner=59;");
aI("text=Fellows, Matthew;url=rgallery.asp?owner=60;");
aI("text=Finkenstadt, Daniel;url=rgallery.asp?owner=62;");
aI("text=Flannigan, Pat ;url=rgallery.asp?owner=64;");
aI("text=Fletcher, Brian;url=rgallery.asp?owner=65;");
aI("text=Fletcher Jr, Rik;url=rgallery.asp?owner=66;");
aI("text=Floyd, Chip;url=rgallery.asp?owner=67;");
aI("text=Forbes, James;url=rgallery.asp?owner=68;");
aI("text=Ford, Cole;url=rgallery.asp?owner=69;");
aI("text=Fryberger, Terri;url=rgallery.asp?owner=70;");
aI("text=Gardner, Harry;url=rgallery.asp?owner=72;");
aI("text=Gasslein, Greg;url=rgallery.asp?owner=74;");
aI("text=Gelatka, Frank;url=rgallery.asp?owner=75;");
aI("text=Gordon, Bill;url=rgallery.asp?owner=78;");
aI("text=Graham, Chris;url=rgallery.asp?owner=80;");
aI("text=Graham , Bill;url=rgallery.asp?owner=79;");
aI("text=Grover, Jason;url=rgallery.asp?owner=81;");
aI("text=Guzenski, Paul;url=rgallery.asp?owner=83;");
aI("text=Haagen, Ray;url=rgallery.asp?owner=84;");
aI("text=Harnett, Matt;url=rgallery.asp?owner=86;");
aI("text=Hartell, Frederic;url=rgallery.asp?owner=88;");
aI("text=Hassel, Ralph;url=rgallery.asp?owner=89;");
aI("text=Heffelfinger, Nick;url=rgallery.asp?owner=90;");
aI("text=Heistand, Jinks;url=rgallery.asp?owner=91;");
aI("text=Hirner, Erik;url=rgallery.asp?owner=92;");
aI("text=Hyde, Ainek;url=rgallery.asp?owner=93;");
aI("text=Ipes, Erika;url=rgallery.asp?owner=94;");
aI("text=Jennings, Josh;url=rgallery.asp?owner=97;");
aI("text=Kabbash, Al;url=rgallery.asp?owner=98;");
aI("text=Kansanback, Dustin;url=rgallery.asp?owner=99;");
aI("text=karg, Scott;url=rgallery.asp?owner=100;");
aI("text=Kemp, Braden;url=rgallery.asp?owner=101;");
aI("text=Kendel, Wayne ;url=rgallery.asp?owner=102;");
aI("text=Kinney, John;url=rgallery.asp?owner=103;");
aI("text=Kite, Dave;url=rgallery.asp?owner=104;");
aI("text=Kolb, John;url=rgallery.asp?owner=105;");
aI("text=Kosinski, Robert ;url=rgallery.asp?owner=106;");
aI("text=Kraemer, Mark;url=rgallery.asp?owner=107;");
aI("text=Krapf, Darryl;url=rgallery.asp?owner=108;");
aI("text=Kraus, Brandon;url=rgallery.asp?owner=109;");
aI("text=kroskie, christie;url=rgallery.asp?owner=110;");
aI("text=Krouse, Bill;url=rgallery.asp?owner=111;");
aI("text=Kuritz, Maurice;url=rgallery.asp?owner=112;");
aI("text=Kurtz, Steve;url=rgallery.asp?owner=114;");
aI("text=LaCombe, Dean;url=rgallery.asp?owner=115;");
aI("text=LaCombe, Robbie;url=rgallery.asp?owner=116;");
aI("text=Large, Travis;url=rgallery.asp?owner=118;");
aI("text=Lessard, Marty;url=rgallery.asp?owner=120;");
aI("text=Lesser, Andrew;url=rgallery.asp?owner=121;");
aI("text=Levanti, Joseph;url=rgallery.asp?owner=122;");
aI("text=Lewis, Gavin;url=rgallery.asp?owner=123;");
aI("text=Licciardi, Philip ;url=rgallery.asp?owner=124;");
aI("text=Liebl, Jandy ;url=rgallery.asp?owner=126;");
aI("text=Luebcke, Josh;url=rgallery.asp?owner=127;");
aI("text=Lynum, Mark;url=rgallery.asp?owner=128;");
aI("text=MacDonald, Cameron;url=rgallery.asp?owner=129;");
aI("text=Machen, Dan;url=rgallery.asp?owner=130;");
aI("text=Maguire, Kris;url=rgallery.asp?owner=131;");
aI("text=Marquez, Mike;url=rgallery.asp?owner=132;");
aI("text=Martinez, Mark;url=rgallery.asp?owner=133;");
aI("text=Maruschak, Jesse;url=rgallery.asp?owner=135;");
aI("text=Masucci, Jimmy;url=rgallery.asp?owner=136;");
aI("text=McCartney, Jeffrey;url=rgallery.asp?owner=138;");
aI("text=McClay, Jamie;url=rgallery.asp?owner=139;");
aI("text=McKinney, Mark;url=rgallery.asp?owner=140;");
aI("text=Mensinger, Steve;url=rgallery.asp?owner=141;");
aI("text=Mesko, John;url=rgallery.asp?owner=142;");
aI("text=Middendorf, Marshall;url=rgallery.asp?owner=144;");
aI("text=Miller, Christopher;url=rgallery.asp?owner=147;");
aI("text=Moore, Jeremy;url=rgallery.asp?owner=148;");
aI("text=Mosser, Shannon;url=rgallery.asp?owner=149;");
aI("text=Mount, Brian;url=rgallery.asp?owner=150;");
aI("text=Murphy, Andy;url=rgallery.asp?owner=151;");
aI("text=myers, phil;url=rgallery.asp?owner=152;");
aI("text=Nelson, Lennie;url=rgallery.asp?owner=153;");
aI("text=Nowak, Charlie;url=rgallery.asp?owner=154;");
aI("text=OBrien, Michael;url=rgallery.asp?owner=155;");
aI("text=Oostdyk, Jim;url=rgallery.asp?owner=156;");
aI("text=Orlando, Vince ;url=rgallery.asp?owner=157;");
aI("text=Osburn, Matt;url=rgallery.asp?owner=158;");
aI("text=Owens, Brian;url=rgallery.asp?owner=160;");
aI("text=Owens, Randy;url=rgallery.asp?owner=161;");
aI("text=Perin, Rob;url=rgallery.asp?owner=164;");
aI("text=peters, lee;url=rgallery.asp?owner=165;");
aI("text=Piazza, Jared;url=rgallery.asp?owner=166;");
aI("text=Pikerowski, Brian ;url=rgallery.asp?owner=168;");
aI("text=Pinbal, Pinbal;url=rgallery.asp?owner=169;");
aI("text=Raflo, Scott;url=rgallery.asp?owner=171;");
aI("text=rees, dave;url=rgallery.asp?owner=172;");
aI("text=Reilly, Chris;url=rgallery.asp?owner=173;");
aI("text=Riegel, Keith;url=rgallery.asp?owner=175;");
aI("text=riggs, jeremy;url=rgallery.asp?owner=176;");
aI("text=Rivera, J;url=rgallery.asp?owner=177;");
aI("text=Rohrbaugh, Evans;url=rgallery.asp?owner=178;");
aI("text=Rossi, Matt;url=rgallery.asp?owner=179;");
aI("text=Runyon, Ted;url=rgallery.asp?owner=181;");
aI("text=Saccente, Mike;url=rgallery.asp?owner=183;");
aI("text=Schulte, Paul;url=rgallery.asp?owner=184;");
aI("text=scott, dave;url=rgallery.asp?owner=185;");
aI("text=Sensinger, Chuck;url=rgallery.asp?owner=186;");
aI("text=Sheldon, Joe;url=rgallery.asp?owner=187;");
aI("text=Shontz, Chris;url=rgallery.asp?owner=1;");
aI("text=Sickles, Jeff;url=rgallery.asp?owner=189;");
aI("text=Sickles, Rob;url=rgallery.asp?owner=190;");
aI("text=Simmons, Jeff;url=rgallery.asp?owner=191;");
aI("text=Smalley, Erik;url=rgallery.asp?owner=182;");
aI("text=Soldan, Lee;url=rgallery.asp?owner=192;");
aI("text=Spain, Robert;url=rgallery.asp?owner=193;");
aI("text=Sperling, Dave;url=rgallery.asp?owner=194;");
aI("text=Stamm, Scott;url=rgallery.asp?owner=195;");
aI("text=Stogner, Bob;url=rgallery.asp?owner=196;");
aI("text=stoveken III, jim;url=rgallery.asp?owner=197;");
aI("text=Stump, Michael;url=rgallery.asp?owner=198;");
aI("text=Sycz, Adam J;url=rgallery.asp?owner=199;");
aI("text=Sysko, Mark;url=rgallery.asp?owner=200;");
aI("text=Sysko, Matt;url=rgallery.asp?owner=201;");
aI("text=Tinker, Matthew;url=rgallery.asp?owner=202;");
aI("text=Torbert, Frank;url=rgallery.asp?owner=203;");
aI("text=Troxel, Bobbi;url=rgallery.asp?owner=204;");
aI("text=Turner, Jim;url=rgallery.asp?owner=205;");
aI("text=Unes, John;url=rgallery.asp?owner=206;");
aI("text=Updyke, Doug;url=rgallery.asp?owner=207;");
aI("text=Vallin, Bo;url=rgallery.asp?owner=208;");
aI("text=Vanhorn, Henry;url=rgallery.asp?owner=210;");
aI("text=von Czoernig, Chris;url=rgallery.asp?owner=211;");
aI("text=wallace, wade;url=rgallery.asp?owner=212;");
aI("text=White, Mike;url=rgallery.asp?owner=214;");
aI("text=Wickham Jr., Scott;url=rgallery.asp?owner=215;");
aI("text=Williams, Ken;url=rgallery.asp?owner=216;");
aI("text=Williams, Scott;url=rgallery.asp?owner=217;");
aI("text=Young, Kevin;url=rgallery.asp?owner=218;");
aI("text=Zanni, Mark;url=rgallery.asp?owner=221;");
}


Poster: Hergio
Dated: Thursday October 2 2003 - 22:08:08 BST

Seems like the browser is "seeing" it before it gets hidden and the menu truncates it into a menu layer object with scroll bar. I'll have to think about it more....but it sounds like it may be the menu. But then again, only Andy knows for sure. :D


Poster: cshontz
Dated: Friday October 3 2003 - 3:22:45 BST

Update: To further debug this issue, I tested it using a static menu, and plugged my data into the sample 5 RC14 menu.htm file under "Links". Upon load, the vertical scrollbar persists until "Links" is touched by the mouse.

http://209.123.24.26/write/menu/menu.htm

I appreciate any help you guys can offer on this. It may be a minor issue, as it doesn't affect usability, but ... I'll notice it every time I load the page, and it'll bug the hell out of me until it is fixed. :)


Poster: Hergio
Dated: Saturday October 4 2003 - 20:43:00 BST

I think I know why its happening. When the menu is generated, it is actually that length, its huge, but invisible. When andy creates it, he does not care about the size of the window or the menu, because it is basically not a big deal. Once the menu is called upon to be visible, the menu does a quick check of the menu, its size, and its relation to the surrounding window borders. If it encroaches on any of the edges, he shortens the menu to a size that stays within the window, and thus the window then sees no reason to have a scroll bar anymore and removes it. Off the top of my head, I can't think of anything that would fix this problem besides quickly making the menu visible and then invisible on load so that it truncates itself...<body onLoad="popup('links');popdown();"> but I dont know if the users would notice it. The other thing, maybe Andy could implement a menuheight property that would take effect ONLY for windows with overflow scrolling turned on, it would then force the menus height on load. Hmm andy?


Poster: mfurf
Dated: Saturday October 4 2003 - 20:53:41 BST

See my previous post [which I posted before reading about the large scroll menu loading problem], but what the heck, give top= a try. Maybe it's a one size 8O fits all loading/scrolling combos. Can't hurt to try it. I put it on the next line after the style is called. /mfurf


Poster: cshontz
Dated: Tuesday October 7 2003 - 14:01:39 BST

No dice on the "top=" tip. Thanks though, mfurf! :)

Hergio,
Your body tag script was the ticket, although "popdn" generated an object required error for whatever reason, the "popup" portion of the script worked well enough without it.

The vertical scroll bar is only visible for a fraction of a second during cached page loads. It is invisible during page loads that aren't cached. It will do for now, but I'd rather not resort to band-aid fixes.

I would appreciate it if an intra-Milonic solution to this little behavior idiosyncracy was eventually presented, but I know Andy has to be busy, so its cool! I'm a patient person. :)

Thanks again, guys! :D


Poster: John
Dated: Tuesday October 7 2003 - 16:56:07 BST

cshontz wrote:
I'm a patient person. :)

Trust me - we very much appreciate that :!: :D


Poster: Hergio
Dated: Tuesday October 7 2003 - 18:30:06 BST

Yeah this may be fixed in the upcoming versions, it seems like a real enough bug and also I would thnk its easily fixable.

Umm, I gave you bad info on that last one :oops: , dont use popdn, try popdown(). Sorry, I believe popdn was from the ol' version 3 days, hehe. That should keep you from getting any errors, and it may very well keep even cached versions of the page from showing too. I have corrected the post.