I found this script for cascading menus, however, I cannot reach the
author to solve the bug I am having when I add a second menu to it.
My problem is this:
If I click on the first link, the menu displays well. If I then click
on the second link, the first menu from the first link still displays.
How do I get make the first menu disappear when I click on the second
and vice versa? Please help...thanks.
Code is as follows:
/*************** *************** *************** *********
* HMenu.js - v. 1.05 000710 *
* Cascading menu creation system *
* by Aaron Prenot *
* Copyright (c) 2000 Aaron Prenot *
* http://www.redrival.com/aprenot *
* *
* Published and Documented at *
* o www.redrival.com/aprenot *
* o www.webdevelopersjournal.com *
* *
* You may use this code on a public web site only *
* if this entire copyright notice appears *
* unchanged. We would also appreciate you *
* creating a link to *
* http://www.webdevelopersjournal.com somwhere on *
* your site. *
* *
* *
* Please send questions and bug reports to: *
* aprenot@hotmail .com *
*************** *************** *************** *********/
<br>
<br>
<STYLE TYPE="text/css">
..menu {position: absolute;
font-family: MS Sans Serif;
font-size: 10pt;
background-color: menu;
color: menutext;
border: 2px threedhighlight outset;
cursor: default;
visibility: hidden;
line-height: 140%;}
..visibleMenu {position: absolute;
font-family: MS Sans Serif;
font-size: 10pt;
background-color: menu;
color: menutext;
border: 2px threedhighlight outset;
cursor: default;
visibility: visible;
line-height: 140%;}
..menuItem {color: menutext;
background-color: menu;
padding-left: 10px;
padding-right: 15px;
text-decoration: none;}
..menuItemOver {color: highlighttext;
background-color: highlight;
padding-left: 10px;
padding-right: 15px;
text-decoration: none;}
..menuItemOver A {color: highlighttext;
background-color: highlight;
padding-left: 10px;
padding-right: 15px;
text-decoration: none;
cursor: default;}
..menuItem A {color: menutext;
background-color: menu;
padding-left: 10px;
padding-right: 15px;
text-decoration: none;
cursor: default;}
..more {font-family: WebDings;
text-align: right;
z-index: 100;
position:relati ve;}
</style>
<SCRIPT LANGUAGE="JavaS cript" TYPE="text/javascript">
var menus = new Array();
var activeItem = null;
var IE4 = ((navigator.app Name == "Microsoft Internet Explorer") &&
(parseInt(navig ator.appVersion ) >= 4 ) &&
!(navigator.app Version.indexOf ("5") > -1 ));
function Menu(){
this.id = "";
this.subMenus = new Array();
this.items = new Array();
this.hasChildre n = false;
this.isChild = false;
this.parentMenu = null;
this.parentItem = null;
}
function Item(){
this.id = "";
this.hasMenu = false;
this.menu = null;
this.parentMenu = null;
}
function initMenu(){
// test for IE4+, it won't work otherwise
if(!document.al l) return false;
findMenus();
menuContainer.a ctiveMenu = null;
menuContainer.c loseAll = closeAll;
attachMenus();
}
function findMenus(){
var cTag = menuContainer.c hildren;
for(var i=0; i < cTag.length; i++){
tcTag = cTag[i];
if(tcTag.classN ame == "menu"){
var tMenu = findSubMenus(tc Tag);
menus[menus.length] = tMenu;
}
}
var tHTML = "<div id=\"menuContai ner\">";
for(var i=0; i < menus.length; i++){
var tcTag = menus[i]
tHTML += moveHTML(tcTag) ;
}
tHTML += "</div>";
menuContainer.o uterHTML = "";
document.body.i nnerHTML += tHTML;
for(var i=0; i < menus.length; i++){
var tcTag = menus[i];
setupMenu(tcTag );
}
}
function findSubMenus(me nu){
var cMenu = menu.children;
var tMenu = new Menu();
tMenu.id = menu.id;
for(var i=0; i < cMenu.length; i++){
var tcMenu = new Item();
tcMenu.id = cMenu[i].id;
if(tcMenu.id.in dexOf("subMenu" ) != -1){
++i;
var subMenu = cMenu[i];
tMenu.subMenus[tMenu.subMenus. length] =
findSubMenus(su bMenu)
tMenu.subMenus[(tMenu.subMenus .length
- 1)].isChild = true;
tMenu.subMenus[(tMenu.subMenus .length
- 1)].parentMenu = tMenu;
tMenu.subMenus[(tMenu.subMenus .length
- 1)].parentItem = tcMenu;
tMenu.hasChildr en = true;
tcMenu.hasMenu = true;
tcMenu.menu =
tMenu.subMenus[(tMenu.subMenus .length - 1)];
}
tcMenu.parentMe nu = tMenu;
tMenu.items[tMenu.items.len gth] = tcMenu;
}
return tMenu;
}
function moveHTML(menu){
var tHTML = "";
if(menu.hasChil dren == true){
for(var i=0; i < menu.subMenus.l ength; i++){
tHTML += moveHTML(menu.s ubMenus[i]);
}
}
var tMenu = eval(menu.id);
var tMenuHTML = tMenu.outerHTML ;
tMenu.outerHTML = "";
tHTML += tMenuHTML;
return tHTML;
}
function setupMenu(menu) {
if(menu.hasChil dren == true){
for(var i=0; i < menu.subMenus.l ength; i++){
setupMenu(menu. subMenus[i]);
}
}
tMenu = eval(menu.id);
tMenu.noWrap = true;
tMenu.hasChildr en = menu.hasChildre n;
tMenu.hasVisibl eChild = false;
tMenu.visibleCh ild = null;
tMenu.isChild = menu.isChild;
tMenu.onselects tart = returnFalse;
tMenu.onclick = handleMenuClick ;
tMenu.currWidth = 0;
tMenu.items = menu.items;
for(var i=0; i < menu.items.leng th; i++){
setupItem(menu. items[i]);
}
tMenu.style.pix elWidth += 5;
for(var i=0; i < menu.items.leng th; i++){
var tItem = eval(menu.items[i].id);
if(!IE4){
tItem.style.wid th = "100%";
if(tItem.hasMen u == true) {
tItem.more.styl e.position =
"absolute";
tItem.more.styl e.pixelLeft =
(tMenu.style.pi xelWidth - 17);
}
}
}
if(menu.isChild == true){
tMenu.parentMen u = eval(menu.paren tMenu.id);
tMenu.parentIte m = eval(menu.paren tItem.id);
}
}
function setupItem(item) {
tItem = eval(item.id);
tItem.highlight = highlight;
tItem.onmouseov er = tItem.highlight ;
tItem.parentMen u = eval(item.paren tMenu.id);
tItem.hasMenu = false;
tItem.menu = null;
tItem.onclick = handleItemClick ;
tItem.ondragsta rt = returnFalse;
tItem.noWrap = true;
if(item.hasMenu == true){
tItem.innerHTML += "<span id=\"" + item.id +
"_more\" class=\"more\"> 4</span>";
tItem.more = eval(item.id + "_more");
tItem.menu = eval(item.menu. id);
tItem.hasMenu = true;
}
if(!IE4) {
tItem.parentMen u.style.pixelWi dth =
Math.max(tItem. parentMenu.curr Width, tItem.offsetWid th);
}
}
function highlight(){
if(activeItem != null){
if(activeItem != this){
unhighlight(act iveItem);
} else {
return;
}
}
event.cancelBub ble = true;
this.className = "menuItemOv er";
activeItem = this;
// dont open a menu thats already open
if((this.hasMen u == true) &&
(this.parentMen u.hasVisibleChi ld == true) &&
(this.parentMen u.visibleChild == this.menu)) return;
// if there is a menu open, close it
if(this.parentM enu.hasChildVis ible == true){
hideMenu(this.p arentMenu.visib leChild);
}
// if this item has a menu, show it
if(this.hasMenu ){
showMenu(this.m enu);
}
}
function unhighlight(men u){
event.cancelBub ble = true;
menu.className = "menuItem";
}
function showMenu(menu, x, y){
event.cancelBub ble = true;
if(menu){
if(IE4){
for(var i=0; i < menu.items.leng th;
i++){
tItem = eval(menu.items[i].id);
if(tItem.hasMen u == true) {
tItem.more.styl e.pixelLeft = (menu.offsetWid th - tItem.more.offs etLeft
- 17);
}
}
}
if(menu.isChild == true){
menu.style.pixe lTop =
menu.parentItem .offsetTop + menu.parentMenu .offsetTop + 4;
menu.style.pixe lLeft =
menu.parentMenu .offsetLeft + menu.parentMenu .offsetWidth - 4;
menu.parentMenu .hasChildVisibl e =
true;
menu.parentMenu .visibleChild = menu;
menu.style.zInd ex =
menu.parentMenu .style.zIndex + 1;
} else if(x && y){
menu.style.pixe lTop = y;
menu.style.pixe lLeft = x;
menuContainer.a ctiveMenu = menu;
document.onclic k =
menuContainer.c loseAll;
}
} else {
menu = eval(this.menu) ;
if(IE4){
for(var i=0; i < menu.items.leng th;
i++){
tItem = eval(menu.items[i].id);
if(tItem.hasMen u == true) {
tItem.more.styl e.pixelLeft = (menu.offsetWid th - tItem.more.offs etLeft
- 17);
}
}
}
menu.style.pixe lTop = event.clientY;
menu.style.pixe lLeft = event.clientX;
menuContainer.a ctiveMenu = menu;
document.onclic k = menuContainer.c loseAll;
}
menu.className = "visibleMen u";
return false;
}
function hideMenu(menu){
// to handle the careless child menu hiding down below
if(menu == null) return false;
event.cancelBub ble = true;
// i do this kind of carelessly. i was having trouble
otherwise
hideMenu(menu.v isibleChild);
if(menu.isChild == true){
menu.parentMenu .hasChildVisibl e = false;
menu.parentMenu .visibleChild = null;
} else {
document.onclic k = "";
menuContainer.a ctiveMenu = null;
}
menu.className = "menu";
}
function closeAll(){
hideMenu(menuCo ntainer.activeM enu);
}
// simple function to return false
function returnFalse(){r eturn false;}
// function to be used for later functionality
// for now it just keeps the menu open when it receives a click;
function handleMenuClick (){
event.cancelBub ble = true;
return false;
}
// just like the function above, only it closes the menu
function handleItemClick (){
event.cancelBub ble = true;
menuContainer.c loseAll();
}
// searches the document for elements with a menu paramater
function attachMenus(){
for(var i in document.all){
if(document.all[i].menu){
document.all[i].onclick = showMenu;
}
}
}
</script>
</head>
<body onload="initMen u()">
<a href="#" menu="menu1">Br ands of Shampoo</a>
<div id="menuContain er">
<div id="menu1" class="menu">
<div id="subMenu1_1 " class="menuItem "><a href="/hair/index.html">Hai r
Products</a></div>
<div id="menu1_1" class="menu">
<div id="menuItem1_1 _1" class="menuItem "><a
href="/hair/shampoo.html">S hampoo</a></div>
<div id="menuItem1_1 _2" class="menuItem "><a
href="/hair/gel.html">Gel</a></div>
</div>
<div id="subMenu1_2 " class="menuItem "><a href="/skin/index.html">Ski n
Care Products</a></div>
<div id="menu1_2" class="menu">
<div id="menuItem1_2 _1" class="menuItem "><a
href="/skin/lotion.html">Lo tions</a></div>
<div id="subMenu1_2_ 2" class="menuItem "><a
href="/skin/ointments/index.html">Oin tments</a></div>
<div id="menu1_2_2" class="menu">
<div id="menuItem1_2 _2_1" class="menuItem "><a
href="/skin/ointments/bengay.html">Be n-Gay</a></div>
<div id="menuItem1_2 _2_2" class="menuItem "><a
href="/skin/ointments/icyhot.html">Ic y Hot</a></div>
<div id="menuItem1_2 _2_3" class="menuItem "><a
href="/skin/ointments/burncream.html" >Burn Cream</a></div>
</div>
<div id="menuItem1_2 _3" class="menuItem "><a
href="/skin/powder.html">Po wder</a></div>
</div>
<div id="menuItem1_3 " class="menuItem "><a href="/nailpolish.html ">Nail
Polish</a></div>
</div>
</div>
<br>
<a href="#" menu="menu2">Br ands of Shampoo</a>
<div id="menu2" class="menu">
<div id="subMenu2_1 " class="menuItem "><a href="/hair/index.html">Hai r
Products</a></div>
<div id="menu2_1" class="menu">
<div id="menuItem2_1 _1" class="menuItem "><a
href="/hair/shampoo.html">S hampoo</a></div>
<div id="menuItem2_1 _2" class="menuItem "><a
href="/hair/gel.html">Gel</a></div>
</div>
<div id="subMenu2_2 " class="menuItem "><a href="/skin/index.html">Ski n
Care Products</a></div>
<div id="menu2_2" class="menu">
<div id="menuItem2_2 _1" class="menuItem "><a
href="/skin/lotion.html">Lo tions</a></div>
<div id="subMenu2_2_ 2" class="menuItem "><a
href="/skin/ointments/index.html">Oin tments</a></div>
<div id="menu2_2_2" class="menu">
<div id="menuItem2_2 _2_1" class="menuItem "><a
href="/skin/ointments/bengay.html">Be n-Gay</a></div>
<div id="menuItem2_2 _2_2" class="menuItem "><a
href="/skin/ointments/icyhot.html">Ic y Hot</a></div>
<div id="menuItem2_2 _2_3" class="menuItem "><a
href="/skin/ointments/burncream.html" >Burn Cream</a></div>
</div>
<div id="menuItem2_2 _3" class="menuItem "><a
href="/skin/powder.html">Po wder</a></div>
</div>
<div id="menuItem2_3 " class="menuItem "><a href="/nailpolish.html ">Nail
Polish</a></div>
</div>
</div>
</body>
</html>
author to solve the bug I am having when I add a second menu to it.
My problem is this:
If I click on the first link, the menu displays well. If I then click
on the second link, the first menu from the first link still displays.
How do I get make the first menu disappear when I click on the second
and vice versa? Please help...thanks.
Code is as follows:
/*************** *************** *************** *********
* HMenu.js - v. 1.05 000710 *
* Cascading menu creation system *
* by Aaron Prenot *
* Copyright (c) 2000 Aaron Prenot *
* http://www.redrival.com/aprenot *
* *
* Published and Documented at *
* o www.redrival.com/aprenot *
* o www.webdevelopersjournal.com *
* *
* You may use this code on a public web site only *
* if this entire copyright notice appears *
* unchanged. We would also appreciate you *
* creating a link to *
* http://www.webdevelopersjournal.com somwhere on *
* your site. *
* *
* *
* Please send questions and bug reports to: *
* aprenot@hotmail .com *
*************** *************** *************** *********/
<br>
<br>
<STYLE TYPE="text/css">
..menu {position: absolute;
font-family: MS Sans Serif;
font-size: 10pt;
background-color: menu;
color: menutext;
border: 2px threedhighlight outset;
cursor: default;
visibility: hidden;
line-height: 140%;}
..visibleMenu {position: absolute;
font-family: MS Sans Serif;
font-size: 10pt;
background-color: menu;
color: menutext;
border: 2px threedhighlight outset;
cursor: default;
visibility: visible;
line-height: 140%;}
..menuItem {color: menutext;
background-color: menu;
padding-left: 10px;
padding-right: 15px;
text-decoration: none;}
..menuItemOver {color: highlighttext;
background-color: highlight;
padding-left: 10px;
padding-right: 15px;
text-decoration: none;}
..menuItemOver A {color: highlighttext;
background-color: highlight;
padding-left: 10px;
padding-right: 15px;
text-decoration: none;
cursor: default;}
..menuItem A {color: menutext;
background-color: menu;
padding-left: 10px;
padding-right: 15px;
text-decoration: none;
cursor: default;}
..more {font-family: WebDings;
text-align: right;
z-index: 100;
position:relati ve;}
</style>
<SCRIPT LANGUAGE="JavaS cript" TYPE="text/javascript">
var menus = new Array();
var activeItem = null;
var IE4 = ((navigator.app Name == "Microsoft Internet Explorer") &&
(parseInt(navig ator.appVersion ) >= 4 ) &&
!(navigator.app Version.indexOf ("5") > -1 ));
function Menu(){
this.id = "";
this.subMenus = new Array();
this.items = new Array();
this.hasChildre n = false;
this.isChild = false;
this.parentMenu = null;
this.parentItem = null;
}
function Item(){
this.id = "";
this.hasMenu = false;
this.menu = null;
this.parentMenu = null;
}
function initMenu(){
// test for IE4+, it won't work otherwise
if(!document.al l) return false;
findMenus();
menuContainer.a ctiveMenu = null;
menuContainer.c loseAll = closeAll;
attachMenus();
}
function findMenus(){
var cTag = menuContainer.c hildren;
for(var i=0; i < cTag.length; i++){
tcTag = cTag[i];
if(tcTag.classN ame == "menu"){
var tMenu = findSubMenus(tc Tag);
menus[menus.length] = tMenu;
}
}
var tHTML = "<div id=\"menuContai ner\">";
for(var i=0; i < menus.length; i++){
var tcTag = menus[i]
tHTML += moveHTML(tcTag) ;
}
tHTML += "</div>";
menuContainer.o uterHTML = "";
document.body.i nnerHTML += tHTML;
for(var i=0; i < menus.length; i++){
var tcTag = menus[i];
setupMenu(tcTag );
}
}
function findSubMenus(me nu){
var cMenu = menu.children;
var tMenu = new Menu();
tMenu.id = menu.id;
for(var i=0; i < cMenu.length; i++){
var tcMenu = new Item();
tcMenu.id = cMenu[i].id;
if(tcMenu.id.in dexOf("subMenu" ) != -1){
++i;
var subMenu = cMenu[i];
tMenu.subMenus[tMenu.subMenus. length] =
findSubMenus(su bMenu)
tMenu.subMenus[(tMenu.subMenus .length
- 1)].isChild = true;
tMenu.subMenus[(tMenu.subMenus .length
- 1)].parentMenu = tMenu;
tMenu.subMenus[(tMenu.subMenus .length
- 1)].parentItem = tcMenu;
tMenu.hasChildr en = true;
tcMenu.hasMenu = true;
tcMenu.menu =
tMenu.subMenus[(tMenu.subMenus .length - 1)];
}
tcMenu.parentMe nu = tMenu;
tMenu.items[tMenu.items.len gth] = tcMenu;
}
return tMenu;
}
function moveHTML(menu){
var tHTML = "";
if(menu.hasChil dren == true){
for(var i=0; i < menu.subMenus.l ength; i++){
tHTML += moveHTML(menu.s ubMenus[i]);
}
}
var tMenu = eval(menu.id);
var tMenuHTML = tMenu.outerHTML ;
tMenu.outerHTML = "";
tHTML += tMenuHTML;
return tHTML;
}
function setupMenu(menu) {
if(menu.hasChil dren == true){
for(var i=0; i < menu.subMenus.l ength; i++){
setupMenu(menu. subMenus[i]);
}
}
tMenu = eval(menu.id);
tMenu.noWrap = true;
tMenu.hasChildr en = menu.hasChildre n;
tMenu.hasVisibl eChild = false;
tMenu.visibleCh ild = null;
tMenu.isChild = menu.isChild;
tMenu.onselects tart = returnFalse;
tMenu.onclick = handleMenuClick ;
tMenu.currWidth = 0;
tMenu.items = menu.items;
for(var i=0; i < menu.items.leng th; i++){
setupItem(menu. items[i]);
}
tMenu.style.pix elWidth += 5;
for(var i=0; i < menu.items.leng th; i++){
var tItem = eval(menu.items[i].id);
if(!IE4){
tItem.style.wid th = "100%";
if(tItem.hasMen u == true) {
tItem.more.styl e.position =
"absolute";
tItem.more.styl e.pixelLeft =
(tMenu.style.pi xelWidth - 17);
}
}
}
if(menu.isChild == true){
tMenu.parentMen u = eval(menu.paren tMenu.id);
tMenu.parentIte m = eval(menu.paren tItem.id);
}
}
function setupItem(item) {
tItem = eval(item.id);
tItem.highlight = highlight;
tItem.onmouseov er = tItem.highlight ;
tItem.parentMen u = eval(item.paren tMenu.id);
tItem.hasMenu = false;
tItem.menu = null;
tItem.onclick = handleItemClick ;
tItem.ondragsta rt = returnFalse;
tItem.noWrap = true;
if(item.hasMenu == true){
tItem.innerHTML += "<span id=\"" + item.id +
"_more\" class=\"more\"> 4</span>";
tItem.more = eval(item.id + "_more");
tItem.menu = eval(item.menu. id);
tItem.hasMenu = true;
}
if(!IE4) {
tItem.parentMen u.style.pixelWi dth =
Math.max(tItem. parentMenu.curr Width, tItem.offsetWid th);
}
}
function highlight(){
if(activeItem != null){
if(activeItem != this){
unhighlight(act iveItem);
} else {
return;
}
}
event.cancelBub ble = true;
this.className = "menuItemOv er";
activeItem = this;
// dont open a menu thats already open
if((this.hasMen u == true) &&
(this.parentMen u.hasVisibleChi ld == true) &&
(this.parentMen u.visibleChild == this.menu)) return;
// if there is a menu open, close it
if(this.parentM enu.hasChildVis ible == true){
hideMenu(this.p arentMenu.visib leChild);
}
// if this item has a menu, show it
if(this.hasMenu ){
showMenu(this.m enu);
}
}
function unhighlight(men u){
event.cancelBub ble = true;
menu.className = "menuItem";
}
function showMenu(menu, x, y){
event.cancelBub ble = true;
if(menu){
if(IE4){
for(var i=0; i < menu.items.leng th;
i++){
tItem = eval(menu.items[i].id);
if(tItem.hasMen u == true) {
tItem.more.styl e.pixelLeft = (menu.offsetWid th - tItem.more.offs etLeft
- 17);
}
}
}
if(menu.isChild == true){
menu.style.pixe lTop =
menu.parentItem .offsetTop + menu.parentMenu .offsetTop + 4;
menu.style.pixe lLeft =
menu.parentMenu .offsetLeft + menu.parentMenu .offsetWidth - 4;
menu.parentMenu .hasChildVisibl e =
true;
menu.parentMenu .visibleChild = menu;
menu.style.zInd ex =
menu.parentMenu .style.zIndex + 1;
} else if(x && y){
menu.style.pixe lTop = y;
menu.style.pixe lLeft = x;
menuContainer.a ctiveMenu = menu;
document.onclic k =
menuContainer.c loseAll;
}
} else {
menu = eval(this.menu) ;
if(IE4){
for(var i=0; i < menu.items.leng th;
i++){
tItem = eval(menu.items[i].id);
if(tItem.hasMen u == true) {
tItem.more.styl e.pixelLeft = (menu.offsetWid th - tItem.more.offs etLeft
- 17);
}
}
}
menu.style.pixe lTop = event.clientY;
menu.style.pixe lLeft = event.clientX;
menuContainer.a ctiveMenu = menu;
document.onclic k = menuContainer.c loseAll;
}
menu.className = "visibleMen u";
return false;
}
function hideMenu(menu){
// to handle the careless child menu hiding down below
if(menu == null) return false;
event.cancelBub ble = true;
// i do this kind of carelessly. i was having trouble
otherwise
hideMenu(menu.v isibleChild);
if(menu.isChild == true){
menu.parentMenu .hasChildVisibl e = false;
menu.parentMenu .visibleChild = null;
} else {
document.onclic k = "";
menuContainer.a ctiveMenu = null;
}
menu.className = "menu";
}
function closeAll(){
hideMenu(menuCo ntainer.activeM enu);
}
// simple function to return false
function returnFalse(){r eturn false;}
// function to be used for later functionality
// for now it just keeps the menu open when it receives a click;
function handleMenuClick (){
event.cancelBub ble = true;
return false;
}
// just like the function above, only it closes the menu
function handleItemClick (){
event.cancelBub ble = true;
menuContainer.c loseAll();
}
// searches the document for elements with a menu paramater
function attachMenus(){
for(var i in document.all){
if(document.all[i].menu){
document.all[i].onclick = showMenu;
}
}
}
</script>
</head>
<body onload="initMen u()">
<a href="#" menu="menu1">Br ands of Shampoo</a>
<div id="menuContain er">
<div id="menu1" class="menu">
<div id="subMenu1_1 " class="menuItem "><a href="/hair/index.html">Hai r
Products</a></div>
<div id="menu1_1" class="menu">
<div id="menuItem1_1 _1" class="menuItem "><a
href="/hair/shampoo.html">S hampoo</a></div>
<div id="menuItem1_1 _2" class="menuItem "><a
href="/hair/gel.html">Gel</a></div>
</div>
<div id="subMenu1_2 " class="menuItem "><a href="/skin/index.html">Ski n
Care Products</a></div>
<div id="menu1_2" class="menu">
<div id="menuItem1_2 _1" class="menuItem "><a
href="/skin/lotion.html">Lo tions</a></div>
<div id="subMenu1_2_ 2" class="menuItem "><a
href="/skin/ointments/index.html">Oin tments</a></div>
<div id="menu1_2_2" class="menu">
<div id="menuItem1_2 _2_1" class="menuItem "><a
href="/skin/ointments/bengay.html">Be n-Gay</a></div>
<div id="menuItem1_2 _2_2" class="menuItem "><a
href="/skin/ointments/icyhot.html">Ic y Hot</a></div>
<div id="menuItem1_2 _2_3" class="menuItem "><a
href="/skin/ointments/burncream.html" >Burn Cream</a></div>
</div>
<div id="menuItem1_2 _3" class="menuItem "><a
href="/skin/powder.html">Po wder</a></div>
</div>
<div id="menuItem1_3 " class="menuItem "><a href="/nailpolish.html ">Nail
Polish</a></div>
</div>
</div>
<br>
<a href="#" menu="menu2">Br ands of Shampoo</a>
<div id="menu2" class="menu">
<div id="subMenu2_1 " class="menuItem "><a href="/hair/index.html">Hai r
Products</a></div>
<div id="menu2_1" class="menu">
<div id="menuItem2_1 _1" class="menuItem "><a
href="/hair/shampoo.html">S hampoo</a></div>
<div id="menuItem2_1 _2" class="menuItem "><a
href="/hair/gel.html">Gel</a></div>
</div>
<div id="subMenu2_2 " class="menuItem "><a href="/skin/index.html">Ski n
Care Products</a></div>
<div id="menu2_2" class="menu">
<div id="menuItem2_2 _1" class="menuItem "><a
href="/skin/lotion.html">Lo tions</a></div>
<div id="subMenu2_2_ 2" class="menuItem "><a
href="/skin/ointments/index.html">Oin tments</a></div>
<div id="menu2_2_2" class="menu">
<div id="menuItem2_2 _2_1" class="menuItem "><a
href="/skin/ointments/bengay.html">Be n-Gay</a></div>
<div id="menuItem2_2 _2_2" class="menuItem "><a
href="/skin/ointments/icyhot.html">Ic y Hot</a></div>
<div id="menuItem2_2 _2_3" class="menuItem "><a
href="/skin/ointments/burncream.html" >Burn Cream</a></div>
</div>
<div id="menuItem2_2 _3" class="menuItem "><a
href="/skin/powder.html">Po wder</a></div>
</div>
<div id="menuItem2_3 " class="menuItem "><a href="/nailpolish.html ">Nail
Polish</a></div>
</div>
</div>
</body>
</html>
Comment