Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIV Drop Down Menu

Status
Not open for further replies.

kafmil

Technical User
Jul 15, 2002
71
AU
I am using DIV tags and javascript to create a multilevel dropdown menu. The 2 javascript functions I am using are

function HideDisplay(oItems) {

oItems.style.display = "none";

}

function ShowDisplay(oItems) {

oItems.style.display = "block";

}


And the html calling this looks something like this

<div ID='MenuTreeView29chlds'>
<script language='javascript'>HideDisplay(MenuTreeView29chlds);</script>
</div>
<IMG SRC='images/t_dot.gif' WIDTH=24 HEIGHT=18 BORDER=0 ALT=''><IMG SRC='images/dot1.gif' BORDER=0 ALT=''>
<IMG SRC='images/it0.gif' WIDTH=20 ALT='Privacy Policy' BORDER='0'>
<img src='images/t_dot.gif' WIDTH=4 HEIGHT=18 BORDER=0 ALT=''>
<font face='Verdana,Arial,Helvetica' size='2' color='#333399'>
<a href='manager_body.asp?content=mainmenu_1_submenu_1_submenu.xml&type=mainmenu_1_submenu_1_submenu&id=5&extra=local&desc=Privacy Policy'><font color='#333399'>Privacy Policy</a>
</font>
<br>
<div ID='MenuTreeView210chlds'>
<script language='javascript'>HideDisplay(MenuTreeView210chlds);</script>
</div>
</div>

at the moment I am limited to 10 items per level of my menu. I was wondering if this was a javascript problem or a problem with DIV tags and if anyone knows how to get around it. Thanks alot for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top