Click to See Complete Forum and Search --> : drop box & frames


cpdj
11-16-2003, 02:17 PM
I have a frame page were the following drop box is in the top frame called "menu" and I want the links to open in the bottom frame called "photo". I have tried everything I know and cannot get it to work.

Any help would be appreciated.

Thanks



<Script Language="JavaScript">
<!-- Hide the script from old browsers --
function goto(form) { var index=form.select.selectedIndex
if (form.select.options[index].value != "0") {
location=form.select.options[index].value;}}//--> </SCRIPT>
<FORM NAME="form1">
<SELECT NAME="select" ONCHANGE="goto(this.form)" SIZE="1">
<OPTION VALUE="">-----Family Photo Albums-----
<OPTION VALUE="photo-page-one.htm">Home
</SELECT>
</FORM>

Jona
11-16-2003, 04:00 PM
<script type="text/javascript">
<!--
function goto(f){
var idx=f.sel.selectedIndex;
if(f.sel.options[idx].value!=0){
top.frames["photo"].location.href=f.sel.options[idx].value;
&nbsp;}
}
//--></script>
<form name="frm" action="atn.cgi">
<select name="sel" onchange="goto(this.form)" size="1">
<option value="0">-----Family Photo Albums-----</option>
<option value="photo-page-one.htm">Home</option>
</select>
<noscript><button type="submit">Submit</button></noscript>
</form>


[J]ona

cpdj
11-16-2003, 06:09 PM
Thanks I will try that.