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: Open 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); } } ---------------------------------------------------------------------- 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
