Click to See Complete Forum and Search --> : simple drop down menu


troika_ness
12-15-2005, 10:17 AM
Hey hey,
Can anyone help me create a regular drop down menus like this
java drop down (http://javascript.internet.com/generators/drop-down-menu.html) .

I need to create 2 seperate drop downs on one html page. However using the script in that link, I can only get one drop down working.

Thanks in advance.
X

phpnovice
04-20-2006, 01:07 PM
I can't take the time to look at that script, but the most likely cause is that script uses the window.onload event to trigger building of the dropdown menus. Thus, to use two of those scripts, you must remove a line similar to this:
window.onload = BuildMenus;
and create your own onload handler that does something like this:
window.onload = function() {
BuildMenus();
BuildMenus2();
return true;
}

vwphillips
04-20-2006, 01:32 PM
each SelectList must have a unique name