The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Dropdown in sidebar forum

3 posters

Go down

Solved Dropdown in sidebar forum

Post by Chocoladesnoepje 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
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 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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Dropdown in sidebar forum

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

Thank you! ^.^
Chocoladesnoepje
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 January 13th 2015, 11:44 am

Solved => Archived
Base
Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

Back to top

- Similar topics

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