Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Alan S on April 19, 2006, 09:35:40 AM

Title: Drop Down Sub Menu Buttons
Post by: Alan S on April 19, 2006, 09:35:40 AM
would it be possible to add a drop down sub menu to the smf menu like they have in vB so you would have your normal menu button and when you click on it a list of other things drops down

(http://img526.imageshack.us/img526/47/eg3xr.gif)
Title: Re: Drop Down Sub Menu Buttons
Post by: teenagegluesniffer on April 20, 2006, 01:00:58 AM
You'll need to make drop down menus.

http://www.alistapart.com/articles/horizdropdowns

It's pretty simple.
Here's an example:

<form name="menu1">
<select name="externallinks" onChange="location=document.menu1.externallinks.options.value">
<option value="#">Select a great links!</option>
<option value="http://link1.com">link1</option>
<option value="http://link2.com">link2</option>
<option value="http://link3.com">link3</option>
<option value="http://link4.com">link4</option>
</select>
</form>


You could use that, as reference.
Hope that helps.
If you have any questions, just ask and i'll do my best to help.
Title: Re: Drop Down Sub Menu Buttons
Post by: Bigguy on April 20, 2006, 02:16:22 AM
There is code around for this somewhere
Title: Re: Drop Down Sub Menu Buttons
Post by: Sverre on April 20, 2006, 07:46:53 AM
Quote from: Bigguy on April 20, 2006, 02:16:22 AM
There is code around for this somewhere

I remember there were a few people working on something like this right after RC2 was released, but I don't know if they ever finished it.

http://www.simplemachines.org/community/index.php?topic=63378.0