Click to See Complete Forum and Search --> : hiermenu doesn't scroll
samsonart
12-10-2003, 07:40 AM
Hi all,
I have the script that builds only top level menu on page load and that menu has settings (1, // top_is_permanent
1, // top_is_horizontal among others)
HM_Loader.js has a setting HM_GL_ScrollEnabled = true;
But long vertical menus do not scroll (menu just goes below the visible part of a browser.
Does anyone knows where the problem is?
Thanks!
(NT4, IE5.5; W2K IE6)
dragle
12-10-2003, 08:14 AM
Hi,
What version are you using? HierMenus did not support scrolling menus until version 4.2 (and later). If you are using v4.2 or later, be sure the scrolling-specific parameters (i.e., HM_ScrollEnabled, especially) are configured properly. This page from the 4.2 release notes has more:
http://www.webreference.com/dhtml/column62/3.html
Cheers!
samsonart
12-10-2003, 08:59 AM
Dan,
I am using 5.21 and have global variables defined (by default)
HM_GL_ScrollEnabled = true;
HM_GL_ScrollOver = (HM_Opera) ? 1 : 0;
HM_MacN7 = (HM_Mac&&(HM_UserAgent.indexOf('Netscape/7')!=-1))?true:false;
HM_GL_ScrollInterval = (HM_MacN7) ? 100 : 20;
HM_GL_ScrollBarHeight = 16;
HM_GL_ScrollBarColor = "lightgrey";
HM_GL_ScrollImgSrcTop = "HM_More_black_top.gif";
HM_GL_ScrollImgSrcBot = "HM_More_black_bot.gif";
HM_GL_ScrollImgWidth = 9;
HM_GL_ScrollImgHeight = 5;
HM_GL_ScrollBothBars = true;
And page variables override images:
HM_PG_ScrollBarColor = "lightgrey";
HM_PG_ScrollImgSrcTop = "/stellent/images/t3/common/HM_More_black_top.gif";
HM_PG_ScrollImgSrcBot = "/stellent/images/t3/common/HM_More_black_bot.gif";
HM_PG_ScrollImgWidth = 9;
HM_PG_ScrollImgHeight = 5;
...and still no joy. I suspect this is something to do with top level generated automatically as I used static images with 4.2 and had scrolling working. :(
dragle
12-10-2003, 10:06 AM
Yah, I understand you now. You're using position_under, right? Unfortunately the menu scrolling motif was never added to child menus set with position_under. Our original thinking was that these types of child menus were typically designed as a permanent part of the page, but lately our thinking is that they should scroll, too.
The only option that comes to mind is to revert to your static top level menu with specific positioning for the "children" (and note that in 5.2 you can override the keep in window behavior for those menus, so tall children won't be shifted upwards on the page). Then you should get your scrolling menus beneath the static menu as you want them.
HTH,
samsonart
12-10-2003, 11:00 AM
The main reason for doing it the way I did (position_under) is that only top level menu loads otherwise it's a long long waiting for 100+ second level items :(, with Macs just hanging for a minute.
Is there a way to do both static menus and do not load their children onLoad?
Thanks,
Stan
dragle
12-10-2003, 11:50 AM
Yup. Set HM_GL_CreateChildrenJIT to true, and HM_GL_CreateMenusOnLoad to false. Mac IE5 can sometimes be problematic in this regard; you may need to set them to create all menus on load anyway (but if you weren't having Mac IE5 problems with CreateTopOnly then you probably won't have them with the above parameters, either).
See:
http://www.webreference.com/dhtml/hiermenus/inprogress/7/2.html
Cheers!