I am trying to setup a navbar on my homepage, but this navbar will have completely different options from the one in the forum. I am trying to keep things looking consistent from the HP to the Forum.
Any how, at this point I am pulling in my forum CSS and JAVA files just fine, at least I believe so. I added an alert to vbmenu_register() and the function was triggered when the page loaded plus my navbar looks like my forum navbar. My problem is, my dropdown menu isn't being displayed.
Here are some snippets of my code:
I am including these files:
HTML Code:
<SCRIPT type="text/javascript" src="./forum/clientscript/vbulletin_global.js?v=367"></SCRIPT>
<SCRIPT type="text/javascript" src="./forum/clientscript/vbulletin_menu.js?v=367"></SCRIPT>
<SCRIPT type="text/javascript" src="./forum/clientscript/vbulletin_inlinemod.js?v=367"></SCRIPT>
Here is my NAVBAR code:
HTML Code:
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="950" align="center" style="border-top-width:1px; border-bottom-width:1px">
<tr align="center">
<td id="navbar_x" class="vbmenu_control"><a href="#">X Info</a><script type="text/javascript"> vbmenu_register("navbar_x"); </script></td>
</tr>
</table>
Here is my pop-up:
HTML Code:
<div class="vbmenu_popup" id="navbar_x_menu" style="display:none">
<table width=140 cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="vbmenu_option"><a href="http://www.somelink.com/" target="_blank">Option A</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="http://www.someotherlink.com" target="_blank">Option B</a></td>
</tr>
</table>
</div>
At this point everything looks fine and appears to be working with the exception of my dropdown menu being displayed? Any help?
Thanks!
Nevermind, I figured it out....
When the page loads you need to issue
HTML Code:
vBmenu.activate(true)
to activate the menu system.