The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Dropdown in sidebar forum

View previous topic View next topic Go down

Solved Dropdown in sidebar forum

Post by Chocoladesnoepje on January 9th 2015, 10:17 pm

Hello guys,

I would like a simple drop down menu, that I can put in a forum widget. The "values" I enter, should work as links. Is this possible on forummotion?


Thanks in advance!


Last edited by Chocoladesnoepje on January 13th 2015, 11:40 am; edited 1 time in total

Chocoladesnoepje
Forumember

Male Posts : 33
Reputation : 1
Language : Dutch
Location : Belgium

Back to top Go down

Solved Re: Dropdown in sidebar forum

Post by Ange Tuteur on January 10th 2015, 1:38 am

Hello @Chocoladesnoepje,

Yes, it's possible. Here's an example for you, add the following to a widget.
Code:
<script type="text/javascript">//<![CDATA[
function dropDownGo() { window.location = document.dropdown.menu.options[document.dropdown.menu.options.selectedIndex].value }  
//]]></script>
<form name="dropdown">
  <select name="menu">
    <option value="/">Home</option>
    <option value="/profile?mode=editprofile">Profile</option>
    <option value="/memberlist">Memberlist</option>
  </select>
  <a href="javascript:dropDownGo();">Go</a>
</form>

value of the option element is where you'll place your redirect link.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Dropdown in sidebar forum

Post by Chocoladesnoepje on January 13th 2015, 11:39 am

Thank you! ^.^

Chocoladesnoepje
Forumember

Male Posts : 33
Reputation : 1
Language : Dutch
Location : Belgium

Back to top Go down

Solved Re: Dropdown in sidebar forum

Post by Base on January 13th 2015, 11:44 am

Solved => Archived

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum