Patches item #409569, was updated on 2001-03-18 11:44
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=409569&group_id=5757
Category: DynAPI-Layer
Group: None
Status: Closed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Z-index: bringToFront, sendToBack
Initial Comment:
Two very simple functions (which may already exist - I
am new to DynAPI :-)
// Should be kind of obvious from its name. Only point
of interest is this function does a Z-shift relative
to its siblings, not the entire DOM. If you want an
absoluteBringToFront, encapsulate this function within
a function that iterates through all recursive parent
DynLayers.
function bringToFront(obj) {
var o, t, topZ=0;
if (obj.getClass()==DynLayer) {
o=obj.parent.children;
for (var i=0;i<o.length;i++) {
t=o[i].getZIndex();
o[i].setZIndex( t-1 );
if (t>topZ) topZ=t;
}
obj.setZIndex(t);
}
}
function sendToBack(obj) {
var o, t, botZ=0;
if (obj.getClass()==DynLayer) {
o=obj.parent.children;
for (var i=0;i<o.length;i++) {
t=o[i].getZIndex();
o[i].setZIndex( t+1 );
if (t<botZ) botZ=t;
}
obj.setZIndex(t);
}
}
----------------------------------------------------------------------
Comment By: Nicola Marzolla (nicolajazz)
Date: 2001-03-25 18:32
Message:
Logged In: YES
user_id=81559
didn't we have something like getTopZIndex() in the
exstention file and all you gotta do is
myLayer.setZIndex(myLayer.getTopZIndex());
Y
----------------------------------------------------------------------
Comment By: Robert Rainwater (rainwater)
Date: 2001-03-24 22:42
Message:
Logged In: YES
user_id=16618
Could easily made be an layer extension.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=409569&group_id=5757
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev