zuccabella
April 3rd, 2001, 10:32
Would anyone happen to know the script to make a drop down menu refresh to the a particular option after another option has been chosen?
Here is the script that I have:
<script language="JavaScript">
<!-- Begin
function formHandler(form) {
var windowprops = "height=500,width=500,location=no,"
+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
var URL = form.site.options[form.site.selectedIndex].value;
popup = window.open(URL,"MenuPopup",windowprops);
}
// End -->
</script>
<form name=form><font face="Arial, Helvetica, sans-serif" size="2">Related Sites</font><br>
<select name=site style="font-size:8pt;" size=1 onChange="formHandler(this.form)">
<option selected>Choose a site</option>
<option value="http://www.site1.org">Site 1</option>
<option value="http://www.site2.org">Site 2</option>
<option value="http://www.site3.org">Site 3</option>
<option value="http://www.site4.org">Site 4</option>
<option value="http://www.site5.org">Site 5</option>
<option value="http://www.site6.org">Site 6</option>
<option value="http://www.site7.org">Site 7</option>
</select>
</form>
After a person selects one of the sites, I would really like the menu to return to the 'Choose a site' view. If anyone has a suggestion, I would really appreciate it! Thanks, so much!
Even if you don't know the script, let me know if you know of a place where I can find the answer. Thanks.
Here is the script that I have:
<script language="JavaScript">
<!-- Begin
function formHandler(form) {
var windowprops = "height=500,width=500,location=no,"
+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";
var URL = form.site.options[form.site.selectedIndex].value;
popup = window.open(URL,"MenuPopup",windowprops);
}
// End -->
</script>
<form name=form><font face="Arial, Helvetica, sans-serif" size="2">Related Sites</font><br>
<select name=site style="font-size:8pt;" size=1 onChange="formHandler(this.form)">
<option selected>Choose a site</option>
<option value="http://www.site1.org">Site 1</option>
<option value="http://www.site2.org">Site 2</option>
<option value="http://www.site3.org">Site 3</option>
<option value="http://www.site4.org">Site 4</option>
<option value="http://www.site5.org">Site 5</option>
<option value="http://www.site6.org">Site 6</option>
<option value="http://www.site7.org">Site 7</option>
</select>
</form>
After a person selects one of the sites, I would really like the menu to return to the 'Choose a site' view. If anyone has a suggestion, I would really appreciate it! Thanks, so much!
Even if you don't know the script, let me know if you know of a place where I can find the answer. Thanks.