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.

Adding A Drop-Down Menu Code

2 posters

Go down

Solved Adding A Drop-Down Menu Code

Post by SLGray 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 : 51519
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Adding A Drop-Down Menu Code

Post by Guest 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 July 27th 2011, 5:59 pm

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


drop down menue - 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 : 51519
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Adding A Drop-Down Menu Code

Post by Base 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

- Similar topics

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