PDA

View Full Version : Switch Menu



Paulkarl
10-10-2004, 09:48 AM
-------------
http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm
---------------

Hi,

I want to use this fine menu and have a question:

Within the menu I want to create some menutitles which have no submenu (these menutitles should be just links), but when you click such a title/link, it should contracting the rest. That's my problem. Because if I delete the line
<span class="submenu" id="sub4"> ... </span>
under the line
<div class="menutitle" onclick="SwitchMenu('sub4')">XYZ</div>
it doesn't contract the rest.

I know that I can place an "empty" link within the SPAN, but that doesn't look fine if an empty submenu expands.

Hope you understand my bad English...

TIA
Paulkarl