Menu.js Gary Smith.. blank space when too much elements in my menus

G

Graig S.

Hi,

I am using the menu component of Gary Smith. Although, I have a
problem when my menu becomes big with many elements and submenus. When
I have many elements in each menu and many elements in submenus, my
webpage becomes really long, (I can scrolldown the page), with a blank
space at the end of my data.

If I reduce my menus this blank space disappear...
Can I set an attribute in the menu.js script in order to not "give a
space" to each element of the menu then my page would have a normal
lenght?

see the menu code below,
(you can try it with menu.js included and put some text in the <body>
part then you will see what I mean)


/// MENU CODE :

<script type="text/javascript">
<!--
function onLoad() {
window.menu6 = new Menu();
menu6.addMenuItem('<span>Domco</span>', "window.location =
'https://localhost:9443/cgi-bin/development.jsp'");
menu6.addMenuItem('<span>Tarkett</span>', "window.location =
'https://localhost:9443/cgi-bin/development2.jsp'");
menu6.disableDrag = true;

window.menu7 = new Menu();
menu7.addMenuItem('<span>Domco</span>', "window.location =
'https://localhost:9443/cgi-bin/development3.jsp'");
menu7.addMenuItem('<span>Tarkett</span>', "window.location =
'https://localhost:9443/cgi-bin/development4.jsp'");
menu7.disableDrag = true;

window.menuSM5miscoli = new Menu("Misco Lisomething");
menuSM5miscoli.addMenuItem('<span>Nafco</span>', "window.location =
'https://localhost:9443/cgi-bin/header_list.jsp'");
menuSM5miscoli.addMenuItem('<span>Domco</span>', "window.location =
'https://localhost:9443/cgi-bin/header_list2.jsp'");
menuSM5miscoli.addMenuItem('<span>Tarkett</span>', "window.location =
'https://localhost:9443/cgi-bin/header_list3.jsp'");
menuSM5miscoli.addMenuItem('<span>Azrock</span>', "window.location =
'https://localhost:9443/cgi-bin/header_list4.jsp'");

window.menuSM5MISCOCH = new Menu("Misco Chicago");
menuSM5MISCOCH.addMenuItem('<span>Nafco</span>', "window.location =
'https://localhost:9443/cgi-bin/header_listA.jsp'");
menuSM5MISCOCH.addMenuItem('<span>Domco</span>', "window.location =
'https://localhost:9443/cgi-bin/header_listB.jsp'");
menuSM5MISCOCH.addMenuItem('<span>Tarkett</span>', "window.location =
'https://localhost:9443/cgi-bin/header_listC.jsp'");
menuSM5MISCOCH.addMenuItem('<span>Azrock</span>', "window.location =
'https://localhost:9443/cgi-bin/header_listD.jsp'");

window.menuSM5MISCOSL = new Menu("Misco St-Louis");
menuSM5MISCOSL.addMenuItem('<span>Nafco</span>', "window.location =
'https://localhost:9443/cgi-bin/header_list5.jsp'");
menuSM5MISCOSL.addMenuItem('<span>Domco</span>', "window.location =
'https://localhost:9443/cgi-bin/header_list6.jsp'");
menuSM5MISCOSL.addMenuItem('<span>Tarkett</span>', "window.location =
'https://localhost:9443/cgi-bin/header_list7.jsp'");
menuSM5MISCOSL.addMenuItem('<span>Azrock</span>', "window.location =
'https://localhost:9443/cgi-bin/header_list8.jsp'");

window.menuSM5MISCOCL = new Menu("Misco Cleveland");
menuSM5MISCOCL.addMenuItem('<span>Nafco</span>', "window.location =
'https://localhost:9443/cgi-bin/header_listE.jsp'");
menuSM5MISCOCL.addMenuItem('<span>Domco</span>', "window.location =
'https://localhost:9443/cgi-bin/header_listF.jsp'");
menuSM5MISCOCL.addMenuItem('<span>Tarkett</span>', "window.location =
'https://localhost:9443/cgi-bin/header_listG.jsp'");
menuSM5MISCOCL.addMenuItem('<span>Azrock</span>', "window.location =
'https://localhost:9443/cgi-bin/header_listH.jsp'");

window.menu5 = new Menu();
menu5.addMenuItem(menuSM5miscoli);
menu5.addMenuItem(menuSM5MISCOCH);
menu5.addMenuItem(menuSM5MISCOSL);
menu5.addMenuItem(menuSM5MISCOCL);
menu5.disableDrag = true;

window.menu10 = new Menu();
menu10.addMenuItem('<span>Domco</span>', "window.location =
'https://localhost:9443/cgi-bin/development.jsp?page_title=pricelist&USER_ORIGIN=MISCOSL'");
menu10.addMenuItem('<span>Tarkett</span>', "window.location =
'https://localhost:9443/cgi-bin/development.jsp?page_title=pricelist&USER_ORIGIN=MISCOSL'");
menu10.disableDrag = true;

window.menuSM8miscoli = new Menu("Misco Lisomething");
menuSM8miscoli.addMenuItem('<span>Domco</span>', "window.location =
'https://localhost:9443/cgi-bin/shipinfo1.jsp'");
window.menuSM8MISCOCH = new Menu("Misco Chicago");
menuSM8MISCOCH.addMenuItem('<span>Domco</span>', "window.location =
'https://localhost:9443/cgi-bin/shipinfo2.jsp'");

window.menuSM8MISCOSL = new Menu("Misco St-Louis");
menuSM8MISCOSL.addMenuItem('<span>Domco</span>', "window.location =
'https://localhost:9443/cgi-bin/shipinfo3.jsp'");

window.menu8 = new Menu();
menu8.addMenuItem(menuSM8miscoli);
menu8.addMenuItem(menuSM8MISCOCH);
menu8.addMenuItem(menuSM8MISCOSL);
menu8.disableDrag = true;

window.menu9 = new Menu();
menu9.addMenuItem('<span>Tarkett</span>', "window.location =
'https://localhost:9443/cgi-bin/development.jsp'");
menu9.disableDrag = true;

window.menu4 = new Menu();
menu4.addMenuItem('<span>Nafco</span>', "window.location =
'https://localhost:9443/cgi-bin/inventory_inquiry_param.jsp'");
menu4.addMenuItem('<span>Domco</span>', "window.location =
'https://localhost:9443/cgi-bin/inventory_inquiry_paramA.jsp'");
menu4.addMenuItem('<span>Tarkett</span>', "window.location =
'https://localhost:9443/cgi-bin/inventory_inquiry_paramB.jsp'");
menu4.addMenuItem('<span>Azrock</span>', "window.location =
'https://localhost:9443/cgi-bin/inventory_inquiry_paramC.jsp'");
menu4.disableDrag = true;

window.menu0 = new Menu();
menu0.writeMenus();
}
//-->
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top