you can do it like this:

// event listeners for icon mouse events
function addEtoI(e) {
        for (i=1; i<=5; i++) {
        var L = eval ("i" +i+ "L")
        eval ("i" +i+ "E = new EventListener(i" +i+ "L)")
                        var E = eval ("i" +i+ "E")
                        E.onmouseover=function(e) {iOver(e.getTarget());}
                        E.onmouseout=function(e){iOut(e.getTarget());}
                        E.onclick=function(e){iClick(e.getTarget())}
                L.addEventListener(E)
        }
}

i leave it up to you to figure out what the "e" passed to the function is.
mind the syntax, this code is from version 2000.01.21.

good luck,
jirka


::-----Original Message-----
::From: [EMAIL PROTECTED]
::[mailto:[EMAIL PROTECTED]]On Behalf Of
::Eytan Heidingsfeld
::Sent: Wednesday, June 27, 2001 12:20 AM
::To: [EMAIL PROTECTED]
::Subject: RE: [Dynapi-Help] How to get the id of the current layer?
::
::
::Why don't you just use the this reference?
::
::_______________________________________________
::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

Reply via email to