Hello.
I have made some code that looks like this.
function bringToFront(e) {
curObj = e.getTarget()
for (var i=0; i<myLayer.children.length; i++)
{
var otherObj=myLayer.children[i]
if (otherObj!==curObj)
{
otherObj.setZIndex(1)
}
if (otherObj==curObj)
{
curObj.setZIndex(2)
}
}
}
I haven't tested the code in IE6 and NS6, but it's working in ns4 and IE5
-Kasper
----- Original Message -----
From: "Jozef Pierlejewski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 12:05 PM
Subject: [Dynapi-Help] bring to front?
> is there a function for bringing a layer to the front?
>
> i see michael has one in the AfroAPI but i didnt see one in the DynAPI
>
>
> presumably i could add this in the setup code of a page..i just dont know
> what goes in the middle ;)
>
>
> DynLayer.prototype.bringToFront=function()
> {
>
> }
>
>
> thanks
> joe
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help