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 5 of 5

Thread: Need help!

  1. #1
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help!

    Well i just started to html, and i needed to put a drop down menu bar in my Vbulletin forums, so i put the code into the header.

    I want the drop down menu, which it has! Then i need links to work, now there actually on the menu and all, but when i clock on them nothing happens!

    can you guys help me!.

    </script></div>
    <div style="position: absolute; width: 100px; height: 23px; z-index: 1; left: 152px; top: 20px" id="laag1">
    <span class="network bar">

    <option value="#" selected >--Network Websites</option>
    <option value="http://www.gunzcommunity.nl.tt">Gunz Community</option>
    <option value="">GC Network Forums</option>

    </select> </span></td>

    </select></span></div>

    can any of you add to this to make these things work! please help!

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    I could not find the following function

    MM_jumpMenu('parent',this,0)

    so give this a try

    PHP Code:
    <select name=select2  onChange="if(this.options.selectedIndex!=0){window.location.href=(this.options[selectedIndex].value)}" style="background-color: #979797; color: #FFFFFF; font-family: Tahoma, Verdana; FONT-SIZE: 11px">

          <
    option value="#" selected >--Network Websites</option>
          <
    option value="http://www.gunzcommunity.nl.tt">Gunz Community</option>
          <
    option value="">GC Network Forums</option>

    </
    select
    I also noticed you have a few orphaned closing tags which need removing
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #3
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    cheers dude it worked but the code ive got here makes the bar appear on the right, but the links still dont work!

    <html>
    <head>
    <script language="Javascript" type="text/javascript" src="/includes/js/chooser.js"></script>
    </head>
    <body>
    <center>
    <form action="/chooser.php" method="post" name="Chooser" onsubmit="return choose(true);" target="_top">
    <table width="100%">
    <tr>
    <td align="right" valign="middle" class="right">
    <table>
    <tr>
    <td align="right" valign="middle" class="right">
    <select name="Destination" onchange="choose(false);">
    <option value="NULL" selected="selected">--Network Choices</option>
    <option value="http://www.gunzcommunity.nl.tt/">Gunz Community</option>
    <option value="http://www.gcn.uk.tt/">GCN Forums</option>

    </select>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </form>
    </center>
    </body>
    </html>

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Give this a try

    PHP Code:
    <html>
    <
    head>

    <
    script type="text/javascript">

    function 
    test(obj){

    if(
    obj.selectedIndex!=0){
    window.location.href=obj.value
    }

    }

    </script>
    </head>
    <body>
    <center>
    <form action="/chooser.php" method="post" name="Chooser" onsubmit="return choose(true);" target="_top">
    <table width="100%">
    <tr>
    <td align="right" valign="middle" class="right">
    <table>
    <tr>
    <td align="right" valign="middle" class="right">
    <select name="Destination" onchange="test(this)">
    <option value="NULL" selected="selected">--Network Choices</option>
    <option value="http://www.gunzcommunity.nl.tt/">Gunz Community</option>
    <option value="http://www.gcn.uk.tt/">GCN Forums</option>

    </select>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </form>
    </center>
    </body>
    </html> 

    NOTE:

    Because I did not have the chooser.js I had to take out the following to prevent the error message

    <script language="Javascript" type="text/javascript" src="/includes/js/chooser.js"></script>

    and

    choose(false)
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #5
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks again


  •  

    Posting Permissions

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