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.

Adding A Drop-Down Menu Code

View previous topic View next topic Go down

Solved Adding A Drop-Down Menu Code

Post by SLGray on July 27th 2011, 5:31 am

<form name="Site Related Discussions">
<select style="font-size:12px;color:#696969;font-family:verdana;background-color:#ffffff;" name="menu" onChange="window.open(document.Site Related Discussions.menu.options[document.Site Related Discussions.menu.selectedIndex].value);">
<option value=''>Please Choose A Subforum</option>
<option value="http://zootycoonwildlife.aforumfree.com/f12-introductions-goodbyes">Introductions/Goodbyes</option>
<option value="http://zootycoonwildlife.aforumfree.com/f2-news-updates-announcements">Announcements/News/Updates</option>
<option value="http://zootycoonwildlife.aforumfree.com/f3-questions-suggestions">Questions/Suggestions</option>
</select>
</form>

The above code is a drop-down menu code I am trying to add to my forum. The site where I am getting the code from says it is a html code. I am adding it to one of my forum's description. It is showing up correctly, but when I select one of the choices; it does not load the page for that choice.

SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Adding A Drop-Down Menu Code

Post by Guest on July 27th 2011, 9:07 am

This should work:

Code:
<select style="font-size:12px;color:#696969;font-family:verdana;background-color:#ffffff;" onchange="if(this.options[this.selectedIndex].value != '-1'){window.location=this.options[this.selectedIndex].value}">
  <option value="-1">Please Choose A Subforum</option>
  <option value="-1"></option>
  <option value="/f12-">Introductions/Goodbyes</option>
  <option value="/f2-">Announcements/News/Updates</option>
  <option value="/f3-">Questions/Suggestions</option>
</select>

Guest
Guest


Back to top Go down

Solved Re: Adding A Drop-Down Menu Code

Post by SLGray on July 27th 2011, 5:59 pm

Thanks, Dion. It worked perfectly. Thanks for taking the time to fix it for me.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Adding A Drop-Down Menu Code

Post by Base on July 27th 2011, 6:03 pm

Solved => Locked

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