Hi, does anyone know how to hide submenu area like when you're on the homepage? Several other top menu links doesn't have submenu items, eg. 'forum' and 'Chat', so it looks stupid with the empty area still showing...
Cheers,
Dorit
Hi, does anyone know how to hide submenu area like when you're on the homepage? Several other top menu links doesn't have submenu items, eg. 'forum' and 'Chat', so it looks stupid with the empty area still showing... Cheers, Dorit |
You could write some PHP that checks for the existence of sub menu items - if not exist, changes the display:none on the sub menu div.
I cant think of any other way to accomplish this.
D |
Oh, sorry, I must have expressed myself unclear. What I mean is the actual area that opens op and stays when you click on a topmenu link. The area where submenu links are posted - on top of the .subMenu (with the image: h_menu_bg.png). This is not open, when 'home' topmenu link is active. This is logical since 'home' doesn't have any submenu items. 'Forum' and 'chat' doesn't have any submenu items either, and therefore I find i logical for them to not have the submenu (now blank since no submenu links!) open and visible either. Cheers, Dorit |