Problem in IE: setting UL style.height in dropdown menu

E

e271828

Hello,

The following code for a UL/LI dropdown menu works in FF, but not in
IE:

function menu_close(menu) {
var menu_style = document.getElementById("menu" + menu).style;
menu_style.display = "none";
}

function menu_open(menu) {
var menu_style = document.getElementById("menu" + menu).style;
menu_style.display = "inline";
menu_style.position = "relative";
menu_style.top = "-16px";
menu_style.left="185px";

parentmenu = document.getElementById("menu" +
menu).parentNode.style;
parentmenu.height = "16px";
parentmenu.position = "relative";
parentmenu.left = "15px";
}

function menumouseover(menu) {
menu_open(menu);
}

function menumouseout(menu) {
menu_close(menu);
}

--

The parentmenu.style declarations in the menu_open(menu) function don't
seem to be working. When I mouse over the UL, the series of LI should
pop out to the left; their parent node (a UL) should have its height
set to 16px and not expand to fit the series of LI's. I haven't been
able to find an IE workaround to get the UL to remain at 16px and not
expand to fit the LI's -- does anyone have an idea on how this could be
done? To see the problem, go to http://masspolicy.org/newindex.php and
move over the menu on the left in IE and FF. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top