Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: Drop down menus

  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Leeds
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Drop down menus

    Hello,
    I'm having trouble with my drop down menu's. Basically I've got 3 drop down menu's for my links and the top one is working fine, but the bottom 2 open up the link that is in the top drop down menu- If that doesn't make sense... here's the URL http://www.geocities.com/nessdog42/links.html

    What script am I missing??
    Thanks.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    It is becasue your changePage function only refers to the first select box, you could modify it like this:

    <script type="text/javascript">
    function changePage(uri){
    newPage=window.open(uri,"NewPage","height=480,width=640,location=no,scrollbars=yes,menubar=no,toolba r=no,resizable=yes,status=yes");
    }
    </script>

    then in each of the select tags do something like this:

    <select name="pages" size="1" onChange="changePage(this.options[this.selectedIndex].value);">


    <select name="creative" size="1" onChange="changePage(this.options[this.selectedIndex].value);">

    <select name="other" size="1" onChange="changePage(this.options[this.selectedIndex].value);">

    This way you are passing in the value for the page you would like to go to.

  • #3
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Leeds
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks

  • #4
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Leeds
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's still not working- I'm inept grrrr.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    I went back to your page and did not see where you updated the code. Post the code that is not working or change it online so we can see it. Otherwise we can't effectively help you.

  • #6
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Leeds
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry about that mate, I was working on it on a test page... here's the link

    http://www.geocities.com/nessdog42/illustration.html


  •  

    Posting Permissions

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