Results 1 to 9 of 9

Thread: Multiple Dropdowns Needed

  1. #1
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Multiple Dropdowns Needed

    Hi all ...

    In the following website of mine I am looking for a way to have multiple "Main Menus" on this page. Everytime I try something the second one does not work and remains open and is not clickable. It is imperative that both drop down and both allow (or three or four or five) "javascript:alert" functions as I will need them to open into an embedded flash player. .

    Can anyone help ?

    Here is the website showing the drop down menu I wish to have multiple ones of ... on the same page of course.

    http://24.57.231.129/websites_test.htm

    Best
    Don Barone

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Try looking at this. You can change the styling to more match your own design. I don't see any reason for your javascript alerts not to work with this as well.

  3. #3
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Medyman ...

    Perhaps I did not explain myself properly. Almost all other dropdowns I have found work only to open an htm or html file, they do not have an active javascript:alert or javascript: get player" function. such as this:

    <div id="sample_attach_menu_parent" class="sample_attach">Main Menu</div>
    <div id="sample_attach_menu_child">
    <a class="sample_attach" href="javascript:alert('Item 1');">Item 1</a>
    <a class="sample_attach" href="javascript:alert('Item 2');">Item 2</a>
    <a class="sample_attach" href="javascript:alert('Item 3');">Item 3</a>

    </div>

    I need to duplicate this several times on the website.

    If I cut and paste it does not work so it must need another section to allow more than one menu and that is what I need help on. I would not have bothered this forum if I had not exhasuted all other possibilities.

    Cheers
    Don Barone

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    No, I understood you. But I don't think you understood me.

    You're not going to find a pre-made CSS dropdown menu that has javascript alerts attached as that's not really a reasonable use for them. If you need that functionality, that's fine but you should expect to do some "customization".

    Now, the dropdown menu that I linked you to will give you the drop down functionality you need. You just need to go in and add the links! Replace the href="#" with href="javascript:alert('Alert Message');".

  5. #5
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Medyman ...

    Your posting of Replace the href="#" with href="javascript:alert('Alert Message');". was a great help and thanks but it really did not solve my major problem of how to get two seperate dropdown displays on the same page.

    Here are some examples of the websites I am working on and it would be great if someone could tell me how to get more than one dropdown on a page.

    http://donbarone.selfip.net/The_4400_Video_page.htm

    http://donbarone.selfip.net/Deadwood...%20Series.html

    Here is the one you suggested

    http://donbarone.selfip.net/New%20Code.htm

    and it works great but as you can see problem is it goes under and not overtop of the flash viewing screen. Can you make it stay on top ?

    By the way the credit for this great use of Flash and linking goes to an unknown source as unfortunately I have forgotten where I got it. I was searching Google for "insert flash player" and somehow arrived on a site which gave it to me. I just fine tuned it.

    Here is my original site http://donbarone.selfip.net/FLV_Website_Player.htm where I used the program but as you can see it got a bit clutterred so that's why I was looking for a dropdown program to clean it up a bit.

    Cheers to all
    Don Barone

  6. #6
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Did you look at the instructions on the page? You can easily have two dropdowns on the same page!

    1. Just copy and paste the HTML portion twice
    2. In the second menu, change <ul id="treemenu1"> to <ul id="treemenu2">
    3. In the javascript add the menu id to the menuids array, like so:

    Code:
    var menuids=["treemenu1","treemenu2"] //Enter id(s) of SuckerTree UL menus, separated by commas
    and voila! two menus on the same page.
    Like I explained to you before. Not everything is going to come premade so you can just plug and play.

  7. #7
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Medyman ...

    Again thanks for taking the time to respond but that particular menu is not the one I want. Here is the one I would like to use.

    http://donbarone.selfip.net/Dropdown/sample.html

    Do you know a way of getting say 2 or 3 or more of these spread out all over a website ?

    Everything I have tried leaves the second menu open.

    Very frustrating.

    Cheers
    Don Barone

  8. #8
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    What you have isn't calibrated to have more than one menu. You could alter the javascript to get what you want.

    But why waste time/effort when you have the one I showed you? Just change the styling and it'll be exactly like the one you have.

  9. #9
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Medyman.

    Money is on it's way so that you can buy yourself a beer. Many thanks for your patience as I now have what I want. Here is an early version but it is obviously exactly what I was looking for !

    So a tip of the hat and a HUNDRED THANKS !!!!

    http://donbarone.selfip.net/testing%20code.htm

    Cheers
    Don Barone

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
  •