-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: GLPrasad
Message 3 in Discussion
Hello Suki Applets, IFrame and Combo's have higher precedence in rendering
themselves and cannot be manipulated with Z-Index as far as I know. I am provding you
with a function that will hide the elements that lie within the boundary of your menu.
Send across the outermost element of your menu, so that those underneath it with
higher priority may be hidden. Use this function when your menu element pops up and
dis-appears. This is the most used way in many cases. Point to Note: This will work
in IE, but am not quite sure with Netscape. Check out! Let me know if this helped
you. Regards, Prasad G L
---------------------------------------------------------------------------------------------------------------------------
function hideShowCoveredElems(elemID) {
var tags = new Array("applet", "iframe", "select");
var el = elemID; var p = getAbsPos(el);
var EX1 = p.x;
var EX2 = el.offsetWidth + EX1;
var EY1 = p.y;
var EY2 = el.offsetHeight + EY1; for (var k = tags.length; k > 0; ) {
var ar = document.getElementsByTagName(tags[--k]);
var cc = null; for (var i = ar.length; i > 0;) {
cc = ar[--i];
p = getAbsPos(cc);
var CX1 = p.x;
var CX2 = cc.offsetWidth + CX1;
var CY1 = p.y;
var CY2 = cc.offsetHeight + CY1;
if (this.hidden || (CX1 > EX2) || (CX2 < EX1) || (CY1 > EY2) || (CY2 < EY1)) {
cc.style.visibility = "visible";
} else {
cc.style.visibility = "hidden";
}
}
}
} function getAbsPos(el) {
var r = { x: el.offsetLeft, y: el.offsetTop };
if (el.offsetParent) {
var tmp = getAbsPos(el.offsetParent);
r.x += tmp.x;
r.y += tmp.y;
}
return r;
}
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]