Log in

View Full Version : Creating A Navbar Drop Down Menu


j_86
04-14-2005, 10:39 PM
Hi there.

I'd like to know how to create my own navbar button that has a drop down list - I know that copy/pasting the existing is not enough.

I have an intermediate experience in HTML and vBulletin template useage - any tips?

Thanks;

Jamie

twoseven
04-14-2005, 10:54 PM
find
<td class="vbmenu_control"><a href="faq.php?$session[sessionurl]" accesskey="5">$vbphrase[faq]</a></td>

after it add

<td id="dropdownname" class="vbmenu_control"><a href="#dropdownname">something here</a> <script type="text/javascript"> vbmenu_register("dropdownname"); </script></td>
then find

<!-- / NAVBAR POPUP MENUS -->
</if>

and add below it

<div class="vbmenu_popup" id="dropdownname_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">something here</td></tr>
<tr><td class="vbmenu_option"><a href="url here">text</a></td></tr>
</table>
</div>

you can replicate vbmenu as much as you need to create the # of elements needed

jesus likes pie
06-09-2005, 03:30 AM
this is sooo kool thkns m8