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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:41

Hiding multiple DIV's


Poster: ppio __at__ taconic.net
Dated: Monday April 29 2002 - 23:00:52 BST

Andy, yadin, anyone who can help,

I have my pages set up to hide and show a search input box on menu activation, however i want to add another select box next to it. This means that certain menus will cover both of the boxes. How can i set the menu to do this?

I currently have this:
<td height="38" width="200">
<div name="searchtext" id="searchtext"><input type="text" name="textfield" size="18" class="searchbox"></div>
</td>

and my menu currently says:
if(document.layers)m1div="_d.layers['searchtext']"; else m1div="searchtext"

addmenu(menu=["development","offset=3",,150,1,"",style2,,"",effect,,,,,,,,m1div,,,, .....etc.


and i want this:
<td height="38" width="200">
<div name="searchtext" id="searchtext"><input type="text" name="textfield" size="18" class="searchbox"></div>
<div name="searchbox" id="searchbox"><select name="selectbox">
<option value="2000">2000</option> <option value="2001">2001</option> <option value="2002">2002</option>
</select></div>
</td>


the menu will say:
if(document.layers)m1div="_d.layers['searchtext']"; else m1div="searchtext"
if(document.layers)m2div="_d.layers['searchbox']"; else m2div="searchbox"


the question is - how do i write m1div and m2div into the menu?

addmenu(menu=["development","offset=3",,150,1,"",style2,,"",effect,,,,,,,,divs go here,,,, .....etc.



Neil