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.
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.