View Full Version : Multiple Dropdowns Needed
Ahatmose
04-07-2008, 12:40 PM
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
Medyman
04-07-2008, 01:19 PM
Try looking at this (http://www.dynamicdrive.com/style/csslibrary/item/suckertree-menu-horizontal/). 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.
Ahatmose
04-07-2008, 01:59 PM
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
Medyman
04-07-2008, 02:35 PM
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');".
Ahatmose
04-09-2008, 08:51 PM
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%20-%20The%20Complete%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
Medyman
04-09-2008, 11:31 PM
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:
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.
Ahatmose
04-10-2008, 01:10 AM
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
Medyman
04-10-2008, 03:10 AM
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.
Ahatmose
04-10-2008, 01:06 PM
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
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.