Web Analytics Made Easy -
StatCounter Drop down menus - CodingForum

Announcement

Collapse
No announcement yet.

Drop down menus

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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.

    Comment


    • #3
      thanks

      Comment


      • #4
        It's still not working- I'm inept grrrr.

        Comment


        • #5
          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.

          Comment


          • #6
            Sorry about that mate, I was working on it on a test page... here's the link

            Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!

            Comment

            Working...
            X