MyBB Community Forums

Full Version: Eaiest way to implement dropdown menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What's the easiest way to implement a dropdown menu?
For MyBB 1.6: http://community.mybb.com/thread-82696.html

For MyBB 1.8:

Quote:<a href="http://example.com" id="example_menu">
Example Dropdown Menu
</a>
 
<div id="example_menu_popup" class="popup_menu" style="display: none;">

<div class="popup_item_container"><a href="http://example.com" class="popup_item" id="example_menu_dropdown">Example link 1</a></div>

<div class="popup_item_container"><a href="http://example.com">example link 2</a></div>

</div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
$("#example_menu_dropdown").popupMenu();
}
// -->
</script>

I haven't tested this code specifically, but it's essentially the same code that is used for the quick reply dropdown. It should work just fine.