Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder Bengal313's Avatar
    Join Date
    Jun 2002
    Metro Detroit
    Thanked 0 Times in 0 Posts

    drop down menu with a target

    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.
    "Knowledge Speaks But Wisdom Listens"

  2. #2
    Senior Coder
    Join Date
    Aug 2002
    Thanked 0 Times in 0 Posts
    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>
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts