Don't put the select so close to the menu. Or hide it when the menu drops down - put this:
Code:
if (ie4){
selects=['sel1', 'sel2']
sels=ie4.tags('select')
for (var i_tem = 0; i_tem < sels.length; i_tem++){
for (var j_tem = 0; j_tem < selects.length; j_tem++)
if (sels[i_tem].id==selects[j_tem])
sels[i_tem].style.visibility='hidden'
}
}
right after this:
Code:
function dropdownmenu(obj, e, menucontents, menuwidth){
and this:
Code:
if (ie4){
for (var i_tem = 0; i_tem < sels.length; i_tem++){
for (var j_tem = 0; j_tem < selects.length; j_tem++)
if (sels[i_tem].id==selects[j_tem])
sels[i_tem].style.visibility='visible'
}
}
right after this:
Code:
function hidemenu(e){
This line is where you configure the ids to use (they can be the existing selects id's if they have them):
selects=['sel1', 'sel2']
If they don't have them, give your select(s) ids:
HTML Code:
<select id="sel1" name="select">
If you only have one select, you still need two ids configured in:
selects=['sel1', 'sel2']
for it to work, the second one can be a dummy. You can add as many id's as you need:
selects=['sel1', 'sel2', 'sel3', 'sel4']
Bookmarks