Results 1 to 5 of 5

Thread: Dropdown menu problems

  1. #1
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Exclamation Dropdown menu problems

    Okay, I am trying to change my theme changer so its a drop down menu, instead of the picture/icons I am using now. (Here is the theme changer)

    Here is the code I have for the drop down menu:
    Code:
    <form method="post" name="nameform"> <font color="#000000" 
    size="2" face="Georgia"><select name="tanyasmenu" size="1" style="BACKGROUND: #ffffff; border:1px solid #000000; FONT-FAMILY: 
    Georgia; FONT-SIZE: 12px"> 
    
    <option selected value="#" onclick="setActiveStyleSheet('Monroe'); 
    return false;">Monroe</option> 
    
    <option value="#">Directory</option> 
    
    <option value="#">Design</option> 
    </select> 
    <input type="button" value="Switch" onclick="location 
    = document.nameform.tanyasmenu.options [document.nameform.tanyasmenu.selectedIndex].value;" 
    style="BACKGROUND: #ffffff; COLOR: #000000; FONT-FAMILY: Georgia; 
    FONT-SIZE: 12px"> </form>
    As you can see, I tried it with the first option, however it didn't work, how would I make such a drop down menu that I am trying to achieve?
    ------------------
    Check out my site here and let me know what you think

  2. #2
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    anyone have any ideas?
    ------------------
    Check out my site here and let me know what you think

  3. #3
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    I used your code and it worked just fine. Please post a link to the page where you actually have this code. If you don't have it anywhere, please create a test page so we can take a look.

  4. #4
    Join Date
    Apr 2009
    Location
    India
    Posts
    41
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    Hi

    Your code is working well. give the link in option tag value

    for example
    Code:
    <option value="link">Satellites</option>
    if you given the link and it working well, check it......
    Last edited by Snookerman; 04-22-2009 at 09:34 AM. Reason: removed link

  5. #5
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    Wow I feel dumb >.< lol
    Its working now, however, I would like it so they have to click a button to switch the theme after they choose. How would I do that. Right now, if you click the dropdown bar and then click on it changes the theme, i want them to use the drop down, then click a button and THEN it changes.


    Here under "Theme Changer" is where the drop down menu is, thanks
    ------------------
    Check out my site here and let me know what you think

Bookmarks

Posting Permissions

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