WoodiE55
09-12-2006, 07:33 AM
I'm creating my own custom navbar using a horizontal css menu and I'd like one of the text links to be the Quick Links menu, however I can't figure out how to get the quick links drop down menu to appear after the Quick Links link is clicked.
Can anyone help?
Noppid
09-12-2006, 08:19 AM
So on the stock vB menu bar, the quick links menu worked? Then you moved the link and it no longer works?
I'mnot a css expert by any means, but I thought the drop downs were javascript?
WoodiE55
09-12-2006, 09:16 AM
Here is what it used to be:
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
An this is what the new nav bar is now, the Quick links is the second from last LI
<ul id="navlist">
<li><a href="index.php">Home</a></li>
<li><a href="usercp.php">UserCP</a></li>
<li><a href="memberlist.php">Members</a></li>
<li><a href="search.php">Search</a></li>
<li><a href="$show[nojs_link]#usercptools">Quick Links</a><script type="text/javascript"> vbmenu_register("usercptools", true); </script></li>
<li><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" style="border: none">Logout</a></li>
</ul>
In the default navbar menu it works fine, however in the new custom navbar it's not bringing up the pop-up menu.
WoodiE55
09-12-2006, 09:19 AM
Nevermind I figured it out. Guess all I needed to do was to take a break for a few minutes and then take another look at it. Below in BOLD is what needed to be added so that the quicklinks would work with the new navbar:
<ul id="navlist">
<li><a href="index.php">Home</a></li>
<li><a href="usercp.php">UserCP</a></li>
<li><a href="memberlist.php">Members</a></li>
<li><a href="search.php">Search</a></li>
<li id="usercptools"><a href="$show[nojs_link]#usercptools">Quick Links</a><script type="text/javascript"> vbmenu_register("usercptools", true); </script></li>
<li><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" style="border: none">Logout</a></li>
</ul>
Thanks anyways!
Peggy
09-12-2006, 09:20 AM
Be sure to show us the results when finished. I'd like to see it
WoodiE55
09-12-2006, 12:22 PM
Peggy,
I've pretty much used this code (http://css.maxdesign.com.au/listamatic/horizontal03.htm) for my navbar.
Enjoy!