Forum Moderators: open

Message Too Old, No Replies

Form - drop down menu

problems with linking to frames

         

ZEROmedia

2:55 am on Aug 29, 2005 (gmt 0)



im currently setting up our company web site and as a sub menu we are using a drop down menu from a form.

I'm currently using the following code for the drop down links - it works fine, but we have setup our website with a top and bottom frame. The drop down menu is in the bottom frame and when you click on a link it takes away the frames - instead of opening the link in the bottom frame:

--------------------------------------

<select name="DropDown" onChange="if(this.options[this.selectedIndex].value) top.location.href=(this.options[this.selectedIndex].value)" class="Form">
<option value="services.html" selected>Design Services:</option>
<option value="services.html#WebDesign">Web Design</option>
<option value="services.html#FlashDesign">Flash Design</option>
<option value="services.html#Programming">Programming</option>
</select>

--------------------------------------

I know its got something to do with ' onChange ' code - i just don't know what to do with it.

Thanks.

zeoncitizen

1:19 pm on Aug 30, 2005 (gmt 0)

10+ Year Member



you can use this online tool for dropdown menu generating.

it works with frames too!

[echoecho.com...]