Multiple drop down menus

This is a discussion on "Multiple drop down menus" within the Web Page Design section. This forum, and the thread "Multiple drop down menus are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 5th, 2008, 18:49
New Member
Join Date: Mar 2008
Location: South Shields
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Multiple drop down menus

I'm trying to achieve 4 drop down menus side by side but cant get the following html to work.
Anyone please tell me why?

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="25%">
<p align="center"><font face="Verdana">Season Viewer:</font></td>
<td width="25%">
<p align="center"><font face="Verdana">League Documents:</font></td>
<td width="25%">
<p align="center"><font face="Verdana">Meeting Viewer:</font></td>
<td width="25%">
<p align="center"><font face="Verdana">Venue Profiles:</font></td>
</tr>
<tr>
<td width="25%"><font face="Verdana"><p style="text-align: center;"> <select name="menu" style="font-size: 12px; color: rgb(0, 102, 153); font-family: verdana; background-color: rgb(255, 255, 255);">

<option value="http://www.northeast8ball.co.uk/index.php?option=com_content&task=view&id=33">2008 </option>
<option value="http://www.northeast8ball.co.uk/index.php?option=com_content&task=view&id=18">2007 </option>
<option value="http://www.northeast8ball.co.uk/index.php?option=com_content&task=view&id=22">2006 </option>
<option value="http://www.northeast8ball.co.uk/index.php?option=com_content&task=view&id=12">2005 </option>
</select> <input type="button" value="Go" onclick="location=document.form1.menu.options[document.form1.menu.selectedIndex].value;" style="font-size: 12px; color: rgb(255, 255, 255); font-family: verdana; background-color: rgb(0, 102, 153);" /> </p>
</font>
</td>
<td width="25%"><p style="text-align: center;"><font face="Verdana"> <select name="menu" style="font-size: 12px; color: rgb(0, 102, 153); font-family: verdana; background-color: rgb(255, 255, 255);">

<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/STPL_Fixtures_2008.xls">2008 Fixtures</option>
<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/2008_Playing_Rules.doc">2008 Rules</option>
<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/PROCEDURAL RULES.doc">2008 Procedural Rules</option>
<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/South_Tyneside_Scorecards.doc">Scorecards</option>
<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/Singles _ Pairs.doc">Singles/doubles form</option>
<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/South_Tyneside_Venues.doc">Venues contact</option>
</select> <input type="button" value="Go" onclick="location=document.form2.menu.options[document.form2.menu.selectedIndex].value;" style="font-size: 12px; color: rgb(255, 255, 255); font-family: verdana; background-color: rgb(0, 102, 153);" /></font></p>
</td>
<td width="25%"><font face="Verdana"><p style="text-align: center;"> <select name="menu" style="font-size: 12px; color: rgb(0, 102, 153); font-family: verdana; background-color: rgb(255, 255, 255);">

<option value="http://www.microsoft.com">Microsoft</option>
<option value="http://www.ebay.com">Ebay</option>
<option value="http://www.google.com">Google</option>
</select> <input type="button" value="Go" onclick="location=document.form3.menu.options[document.form3.menu.selectedIndex].value;" style="font-size: 12px; color: rgb(255, 255, 255); font-family: verdana; background-color: rgb(0, 102, 153);" /> </p>
</font>
</td>
<td width="25%"><font face="Verdana"><p style="text-align: center;"> <select name="menu" style="font-size: 12px; color: rgb(0, 102, 153); font-family: verdana; background-color: rgb(255, 255, 255);">

<option value="http://www.abc.com">abc</option>
<option value="http://www.def.com">def</option>
<option value="http://www.ghi.com">ghi</option>
</select> <input type="button" value="Go" onclick="location=document.form4.menu.options[document.form4.menu.selectedIndex].value;" style="font-size: 12px; color: rgb(255, 255, 255); font-family: verdana; background-color: rgb(0, 102, 153);" /> </p>
</font>
</td>
</tr>
</table>
Reply With Quote

  #2 (permalink)  
Old Mar 5th, 2008, 19:53
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Multiple drop down menus

Not quite sure what you mean.

All your drop down menus would be better if created using CSS, there are some css elements within your code. If you check out the CSS forum it should help you.
Reply With Quote
  #3 (permalink)  
Old Mar 5th, 2008, 20:02
Junior Member
Join Date: Mar 2008
Location: Torquay, Devon, UK
Age: 23
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Multiple drop down menus

Try this mate.
You can keep the names and change the script to getElementByName if you like, but i prefer IDs.
Got it working for me ^^

Code: Select all
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="25%">
<p align="center"><font face="Verdana">Season Viewer:</font></td>
<td width="25%">
<p align="center"><font face="Verdana">League Documents:</font></td>
<td width="25%">
<p align="center"><font face="Verdana">Meeting Viewer:</font></td>
<td width="25%">
<p align="center"><font face="Verdana">Venue Profiles:</font></td>
</tr>
<script language="javascript" type="text/javascript">
function Menu(id){
var menu = document.getElementById(id)
location.href = menu.value
}
</script>
<tr>
<td width="25%"><font face="Verdana"><p style="text-align: center;"> <select id="Menu1" style="font-size: 12px; color: rgb(0, 102, 153); font-family: verdana; background-color: rgb(255, 255, 255);">

<option value="http://www.northeast8ball.co.uk/index.php?option=com_content&task=view&id=33">2008 </option> 
<option value="http://www.northeast8ball.co.uk/index.php?option=com_content&task=view&id=18">2007 </option>
<option value="http://www.northeast8ball.co.uk/index.php?option=com_content&task=view&id=22">2006 </option>
<option value="http://www.northeast8ball.co.uk/index.php?option=com_content&task=view&id=12">2005 </option>
</select> <input type="button" value="Go" onclick="javascript:Menu('Menu1');" style="font-size: 12px; color: rgb(255, 255, 255); font-family: verdana; background-color: rgb(0, 102, 153);" /> </p>
</font>
</td>
<td width="25%"><p style="text-align: center;"><font face="Verdana"> <select id="Menu2" style="font-size: 12px; color: rgb(0, 102, 153); font-family: verdana; background-color: rgb(255, 255, 255);">

<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/STPL_Fixtures_2008.xls">2008 Fixtures</option>
<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/2008_Playing_Rules.doc">2008 Rules</option>
<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/PROCEDURAL RULES.doc">2008 Procedural Rules</option>
<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/South_Tyneside_Scorecards.doc">Scorecards</option>
<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/Singles _ Pairs.doc">Singles/doubles form</option>
<option value="http://www.northeast8ball.co.uk/Leagues/SouthTyne/2008/South_Tyneside_Venues.doc">Venues contact</option>
</select> <input type="button" value="Go" onclick="javascript:Menu('Menu2');" style="font-size: 12px; color: rgb(255, 255, 255); font-family: verdana; background-color: rgb(0, 102, 153);" /></font></p>
</td>
<td width="25%"><font face="Verdana"><p style="text-align: center;"> <select id="Menu3" style="font-size: 12px; color: rgb(0, 102, 153); font-family: verdana; background-color: rgb(255, 255, 255);">

<option value="http://www.microsoft.com">Microsoft</option> 
<option value="http://www.ebay.com">Ebay</option>
<option value="http://www.google.com">Google</option>
</select> <input type="button" value="Go" onclick="javascript:Menu('Menu3');" style="font-size: 12px; color: rgb(255, 255, 255); font-family: verdana; background-color: rgb(0, 102, 153);" /> </p>
</font>
</td>
<td width="25%"><font face="Verdana"><p style="text-align: center;"> <select id="Menu4" style="font-size: 12px; color: rgb(0, 102, 153); font-family: verdana; background-color: rgb(255, 255, 255);">

<option value="http://www.abc.com">abc</option> 
<option value="http://www.def.com">def</option>
<option value="http://www.ghi.com">ghi</option>
</select> <input type="button" value="Go" onclick="javascript:Menu('Menu4');" style="font-size: 12px; color: rgb(255, 255, 255); font-family: verdana; background-color: rgb(0, 102, 153);" /> </p>
</font>
</td>
</tr>
</table>

Last edited by RSoftware; Mar 5th, 2008 at 20:06. Reason: didn't tag code.
Reply With Quote
  #4 (permalink)  
Old Mar 6th, 2008, 08:06
New Member
Join Date: Mar 2008
Location: South Shields
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Multiple drop down menus

I don't know anything about CSS dab42pat. HTML is hard enough without adding something else into the mixing pot. Maybe I should............

Thanks for the solution RSoftware. Proper little JavaScript Gem that one. Works a treat.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple drop-down menus ktsirig JavaScript Forum 2 May 28th, 2008 22:54
Drop down menus drop behind flash header theGAME71135 Flash & Multimedia Forum 3 Jan 10th, 2008 09:42
Help with Drop down menus yakisobayum Starting Out 0 Jun 6th, 2007 20:26
Drop down, having certain other menus appear... riotman JavaScript Forum 2 Jan 12th, 2006 20:59
Drop down Menus u2orange Web Page Design 8 Nov 27th, 2003 16:13


All times are GMT. The time now is 09:22.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43