Adding A Drop-Down Menu Code

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
SLGray
Administrator
Administrator

Male Posts : 46132
Reputation : 3254
Language : English
Location : United States

https://help.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>
avatar
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.


Adding A Drop-Down Menu Code Slgray10

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

Male Posts : 46132
Reputation : 3254
Language : English
Location : United States

https://help.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
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


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