- <div class=ui-widget" id="bar">
- <div class="ui-widget-header" id="menu">
- <ul>
- <li>
- <a href="/index.php">Home</a>
- </li>
- <li>
- <span class="submenu">Your Account</span>
- <div class="container ui-widget-content ui-corner-bottom">
- <dl class="ui-widget">
- <dd>
- <a id="item_1" href="/profile.php">Your Profile</a>
- </dd>
- <dd>
- <a id="item_2" href="/password.php">Change Your Password</a>
- </dd>
- </dl>
- </div>
- </li>
- </ul>
- </div>
- </div>
Run $('#item_N').button(); on all the menu items where "item_N" is the actual item id like item_1, item_2, and so on... the above demonstrates a menu bar with 2 top level items, one clickable (Home) and for the other one (Your Account) when you mouse over it will produce a drop down with 2 items in it. You can use the <dt> instead of <dd> tag to have non-clickable menu items in the drop down for whatever reason.
And voila... you've got a simple themeable drop down menu bar. Not very pretty, but it works and should hold you over until 1.9 comes out!
I hope this helps someone. Apologies for any error in the code - I typed it directly into this post.