From: jirka <li...@in...> - 2001-06-27 11:33:32
|
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: dyn...@li... ::[mailto:dyn...@li...]On Behalf Of ::Eytan Heidingsfeld ::Sent: Wednesday, June 27, 2001 12:20 AM ::To: dyn...@li... ::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 ::Dyn...@li... ::http://lists.sourceforge.net/lists/listinfo/dynapi-help :: |