View Full Version : drop down menu with a target

04-07-2003, 08:00 PM
I need a little help friends.

I need to insert a drop down menu with about 30 links. Having a viewing area of about 10 links at a time. Each link should open on the same page within a iframe named "body". Can this be done, if so where can I find it? Thank you.

04-07-2003, 08:23 PM
You can't (to my knowledge) control the number of items displayed when the menu drops-down.

Everything else, is doable.

<script type="text/javascript">

function jumpMenu( sel )
var val = sel.options[sel.selectedIndex].value;
if ( val != "" )
top.frames['body'].location.href = val;



<select onchange="jumpMenu( this )">
<option value="">Choose one</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.lycos.com">Lycos</option>
<iframe name="body" width"=500" height"300"></iframe>