i think this can be done using a javascript that shows/hides a div which contains each pulldown menu...
HTML Code:
function Get_P(str)
{
if (document.all)
{
return document.all[str];
}
else
return document.getElementById(str);
}
function HideAll()
{
if (document.all)
{
document.all['item_1'].style.visibility = 'hidden';
document.all['item_1'].style.display = 'none';
document.all['item_2'].style.visibility = 'hidden';
document.all['item_2'].style.display = 'none';
document.all['item_3'].style.visibility = 'hidden';
document.all['item_3'].style.display = 'none';
}
else
{
document.getElementById('item_1').style.visibility = 'hidden';
document.getElementById('item_1').style.display='none';
document.getElementById('item_2').style.visibility ='hidden';
document.getElementById('item_2').style.display='none';
document.getElementById('item_3').style.visibility = 'hidden';
document.getElementById('item_3').style.display='none';
}
}
function show(Element)
{
if (Element.substring(0,4)=='item')
{
// alert(Element);
var obj = Get_P(Element);
if (obj.style.visibility == 'visible')
{
obj.style.visibility = 'hidden';
obj.style.display = 'none';
//HideAll();
}
else
{
HideAll();
obj.style.visibility = 'visible';
obj.style.display ='block';
}
}
}
this is the code i`ve made for a menu on a web site,its not exactly what you need.
It needs some slight modifications and i think it will suit your needs.
item_1,item_2,item_3 would be the name of the divs that contains the pull down menus and you wiill need to add an
HTML Code:
<a href="" onClick="show('item_1')"></a>
to the items in the pulldown menu,and when its clicked it will show the menu.
well...i hope this will help you a little bit..
|