MyBB Community Forums

Full Version: JavaScript Dropdown Menus Explained
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8
any update with this?
(2012-04-11, 01:01 PM)Alan Shepperson Wrote: [ -> ]
(2012-04-06, 10:58 AM)GalaxyFreak Wrote: [ -> ]Is there also the option that the dropdown menu is showing up of you go with the mouse over it without clicking?? So if you move the mouse over the option the popup wil show up???

Thanks!

You'd need to edit the JavaScript to do that.
Anyone have this script?
Wow nice tutorial, work good on me
thank you
My problem has been completed
and I have put in a few places for this dropdown Big Grin
Thanks this was very helpful Big Grin
Alan S,

Wow, Thank you so much for the awesome tutorial. I have one question about it and hope this can be done.

If my main menu link is called "leagues" and I add "NBA, NFL, MLB, etc" under "leagues" can I add more under "NBA, NFL, MLB, etc"?

Thanks

tom
How would i go about doing this for a username, clicking the username and a dropdown appears with, usercp, pms, logout e.c.t, thanks.
how to make it auto drop when mouse hover?? that you dont need to click on it
Here's an update for the code so that it will work on 1.8:

<a href="link.php" id="whatever_name">Main Link</a>
    <div id="whatever_name_popup" class="popup_menu" style="display: none;">
      <div class="popup_item_container">
        <a href="link1" class="popup_item">Just a Link</a>
      </div>
      <div class="popup_item_container">
        <a href="link2.php" class="popup_item">Another Link</a>
      </div>
  </div>
<script type="text/javascript">
// <!--
	if(use_xmlhttprequest == "1")
	{
		$("#whatever_name").popupMenu();
	}
// -->
</script>
Pages: 1 2 3 4 5 6 7 8