Adding A Drop-Down Menu Code
2 posters
Page 1 of 1
Adding A Drop-Down Menu Code
<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.
<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.
Re: Adding A Drop-Down Menu Code
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
Re: Adding A Drop-Down Menu Code
Thanks, Dion. It worked perfectly. Thanks for taking the time to fix it for me.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Adding drop down menu to a custom navbar
» Drop Down menu problem
» How can I make this a drop-down menu?
» Menu drop down problem
» Color Changes with a Drop-Down Menu
» Drop Down menu problem
» How can I make this a drop-down menu?
» Menu drop down problem
» Color Changes with a Drop-Down Menu
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum