Web Analytics Made Easy -
StatCounter Drop down menu w/ description - CodingForum

Announcement

Collapse
No announcement yet.

Drop down menu w/ description

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Drop down menu w/ description

    Hi there!

    I want to use this magnificant 'Drop down' script from dynamicdrive (like the 'forum jump' in this forum), but I use frames and I want to define the target of the link. In html I would type: ....A href ="url.html" target="window_right"....

    Who can help me withe this topic?

    Thanx,

    Jeroen

  • #2
    You would modify the onClick in the input button like this:
    <input type="button" value="Go"
    onClick="parent.frame_name.location=document.a294.a969.options[document.a294.a969.selectedIndex].value">

    Frame name would be what you named the frame that you want to load your page into in your frameset code.

    Comment


    • #3
      Modification Help

      This script is perfect for something I have built for work except it is a jump menu.

      I have a form that I need to pass the value of the select element with a couple of other form elements.

      Can some one assist me in modifying the script so it is not a jump menu but just a regular select element with descriptions?

      Thanks for any advice/assitance.

      Comment


      • #4
        help!!!!!!!!

        Hi, Im currently in year 11 (Im in Australia), n i wanted to use the Drop down menu w/ description in my website im creating for my school, but im using frames and the above description on how to make this script work wont work for me, so below is the section of script from my site and could somebody please do it for me , i need the links from the Drop down menu to load in the base frame which is called "basefreme.htm", so far it may look a bit messed up because i have been tryin to get it to work, i can only get it to load in its own frame someone help me plzz

        code:

        <form name="form1">
        <div align="center">
        <select name="select1" size="1" style="background-color:#FFFFD7" onChange="displaydesc(document.form1.select1,thetext1,'textcontainer1')">
        <option selected value="index.htm">Test 1</option>
        <option value="index.htm">Test 2</option>
        <option value="index.htm">Test 3</option>
        <option value="index.htm">Test 4</option>
        <option value="index.htm" target="basefreme.htm"> Test 5</option>
        </select>
        <input type="button" value="Go"
        onClick="jumptolink(document.form1.select1)">
        <br>
        <span id="textcontainer1" align="left" style="font:italic 13px Arial">
        </span> </div>
        </form>

        Comment

        Working...
        X