I would expect you should be able to determine the position of the element,
however, it does have to be absolutely positioned, so if the site is
centered, the menu is not always going to be in the same place relative to
the page layout unless you also add some code which will rely on the
browser's interpretation of client viewing area -- which is different for
netscape than it is for IE ( surprise! :) ... This is doable, however -- if
you like I can dig up the specific's when I get home...
The issue re: the select box is another ballgame unfortunately ... even the
z-index on your drop-down won't help... There is a solution in at least IE
in which you can set the visibility of all the select boxes ( and other
windowed elements ) to "hidden" while the menu is down and that will prevent
them from breaking through your menu. You then have to reset the visibility
to visible when the menu goes away.
function hideWindowedElements(hide) {
var frm, el;
for (var f in document.forms) {
frm = document.forms[f];
for (var e = 0; e < document.forms[f].length; e++) {
el = frm[e];
if (el.type && el.type.substring(0,6)=="select") {
el.visibility = (hide==true)? "hidden" : "visible" ;
}
}
}
}
This works for IE (the 2nd argument of the el.type.substring() function may
be +/-1 tho) -- not sure how or if this can be done in Netscape...
When the menu opens, call hideWindowedElements(true);
when the menu closes, call hideWindowedElements(false);
hth
Isaac Dealey
Certified Advanced ColdFusion 5 Developer
www.turnkey.to
954-776-0046
> Hello all
> I'm using this tag for my popup menu and submenu but having a few
> problems.
> When the popup menu occurs where there is a drop down menu, the drop down
> appears on top of the popup menu. Its works fine over other form
> elements.
> Also, my page is set to center, and depending on the user's screen
> resolution, the position of the menu varies. Does this tag work for
> something like that or does the menu have to be fixed on the left side of
> the browser window?
> Thanks
>
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists