By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,956 Members | 1,722 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,956 IT Pros & Developers. It's quick & easy.

Menus

P: 1
I am trying to create a menu so that after you click on the drop down, the drop down menu stays open when you click on the link in the drop down menu and it brings you to a new page. I feel like the toggle part of the onclick command is not correct. Please help!!! I have to meet deadline soon and I am stuck! .


<li class="LeftSideNavigation"><a href="" onclick="toggle('meetings_events'); return false;">Meetings &amp; Event Space</a></li>
<ul type="circle" id="meetings_events">
<li class="SecondNavigation">Reservable Areas:
<ul type="square" >
<li><a href="ballroom.shtml" class="SecondNavigation">Grand Ballroom</a></li>
<li><a href="allegheny.shtml" class="SecondNavigation">Allegheny Room</a></li>
</ul>
</li>
Oct 26 '06 #1
Share this Question
Share on Google+
1 Reply


drhowarddrfine
Expert 5K+
P: 7,435
<li class="LeftSideNavigation"><a href="" onclick="toggle('meetings_events'); return false;">Meetings &amp; Event Space</a></li>
<ul type="circle" id="meetings_events">
<li class="SecondNavigation">Reservable Areas:
<ul type="square" >
<li><a href="ballroom.shtml" class="SecondNavigation">Grand Ballroom</a></li>
<li><a href="allegheny.shtml" class="SecondNavigation">Allegheny Room</a></li>
</ul>
</li>

I am not up on my js but here are the potential problems with other parts of your code:
1) The 'type' attribute is deprecated
2) You haven't closed your Second Navigation <li>
3) There is a </li> at the bottom but not attached to anything
4) I am wondering which doctype you are using
5) In some cases, type case is significant.
Oct 26 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.