/    Sign up×
Community /Pin to ProfileBookmark

javascript drop down menu

I need all these drop down menus to work on the same page. Please help. I am not a programmer. Thanks in advance Ihave posted the code below. Thank you

<html>

<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<meta name=”GENERATOR” content=”Microsoft FrontPage 4.0″>
<meta name=”ProgId” content=”FrontPage.Editor.Document”>
<title>FORTY GEMS SAYINGS OF THE HOLY PROPHET – Hadith 8</title>
</head>

<body>

<p align=”center”><font face=”Times New Roman” color=”#008000″ size=”3″>
<b>Web Page<br>
<br>
</b></font>
<select name=”menu” onChange=”location=document.jump.menu.options[document.jump.menu.selectedIndex].value;” value=”GO”>
<option value=”#”>Contents</option>
<option value=”http://softbyteinc.com/40gems/home.htm”>Home</option>
<option value=”http://www.msn.com”>The Author</option>
<option value=”http://www.cisco.com”>Preface</option>
<option value=”http://www.cnn.com”>Introduction</option>

</select><select name=”D1″ onChange=”location=document.jump.menu.options[document.jump.menu.selectedIndex].value;” value=”GO”>
<option value=”#”>Chapter 1 – 10</option>
<option value=”http://www.abc.com”>chapter 1</option>
<option value=”http://www.cbs.com”>chapter 2</option>
<option value=”http://www.opencube.com”>chapter 3</option>

<option value=”http://softbyteinc.com/40gems/h10″>chapter 100</option>
</select><select name=”D2″ onChange=”location=document.jump.menu.options[document.jump.menu.selectedIndex].value;” value=”GO”>
<option value=”#”>chapter 11 – 20</option>
<option value=”http://www.webdeveloper.com”>chapter 11</option>
<option value=”http://verizonwireless.com”>chapter 12</option>
<option value=”http://www.msnbc.com”>chapter 13</option>

</select><select name=”D3″ onChange=”location=document.jump.menu.options[document.jump.menu.selectedIndex].value;” value=”GO”>
<option value=”#”>chapter 21 – 30</option>
<option value=”http://www.msnbc.com”>chapter 21</option>
<option value=”http://www.nasa.com”>chapter 22</option>
<option value=”http://www.cbs.com”>chapter 23</option>

</select><select name=”D4″ onChange=”location=document.jump.menu.options[document.jump.menu.selectedIndex].value;” value=”GO”>
<option value=”#”>chapter 31 – 40</option>
<option value=”http://www.greatschools.net”>chapter 31</option>
<option value=”http://www.netsol.com”>chapter 32</option>
<option value=”http://www.dell.com”>chapter 33</option>

</select></p>
<div align=”center”>
<center>
<table border=”1″ width=”77%” cellspacing=”0″ cellpadding=”5″ bordercolorlight=”#008000″ bordercolordark=”#008000″>
<tr>
<td width=”100%” align=”left”>This is a test example of the page
</td>
</tr>
</table>
</center>
</div>
<p align=”center”>&nbsp;
</p>
<div align=”center”>
<center>
<table border=”2″ width=”77%” bordercolorlight=”#008000″ bordercolordark=”#008000″ cellpadding=”0″ cellspacing=”0″>
<tr>
<td width=”81%”>
<p align=”center”><a name=”h2″><br>
</a></td>
<td width=”19%”>
<p align=”center”><b><font color=”#0000FF”><a href=”#top of page”>MOVE UP</a></font></b>
<p align=”center”>&nbsp;
<p align=”center”>&nbsp;
<p align=”center”>&nbsp;</td>
</tr>
</table>
</center>
</div>
<p align=”center”><span style=”mso-bidi-font-size: 12.0pt”><font face=”Times New Roman” size=”3″ color=”#FFFFFF”>“I
was ordered </font></span></p>

</body>

</html>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@steelersfan88Mar 23.2004 — change the lines to:[CODE]location=this.options[this.selectedIndex].value[/CODE] rather than:location=document.jump.menu.options[document.jump.menu.selectedIndex].value
×

Success!

Help @osprey spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...