...

View Full Version : drop down menu with a target



Bengal313
04-07-2003, 07: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.

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

Everything else, is doable.
<html>
<head>
<title>Test</title>

<script type="text/javascript">

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

</script>


</script>

</head>
<body>
<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>
</select>
<iframe name="body" width"=500" height"300"></iframe>
</body>
</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum