Hello

IE accept more events than those declared in DynAPI (for exemple
onmouseenter , onresizestart ...) how could I modify the file events.js so
that DynAPI could work with this new event. I want to make listener on a
Dynlayer with this new event.

In events.js, I have modify the fct
DynLayer.prototype.captureMouseEvents
with this line
 elm.onmouseenter
=elm.onmousedown=elm.onmouseup=elm.onmouseover=elm.onmouseout=elm.onclick=el
m.ondblclick=DynLayer.prototype.EventMethod;

and the fct
DynDocument.prototype.captureMouseEvents
with this line
 this.doc.onmouseenter
=this.doc.onmousemove=this.doc.onmousedown=this.doc.onmouseup=this.doc.oncli
ck=this.doc.ondblclick=DynDocument.prototype.EventMethod;

and the fct
DynDocument.prototype.releaseMouseEvents
with this line
 this.doc.onmouseenter =this.doc.onmousemove = this.doc.onmousedown =
this.doc.onmouseup = this.doc.onclick = this.doc.ondblclick = function(e)
{ return false };

I have try to make a dynlayer and an eventlistener like this

mylayer=new DynLayer(null,400,100,50,50);
mylayer.setBgColor('red')
mylayer.setVisible(true)

var l = new EventListener(mylayer);
l.onmouseenter = function(e) {
 var o = e.getTarget();
 alert('EventListener onmouseenter )
}

mylayer.addEventListener(mylayer);

but nothing happens, if someone could help me, I will apreciate.

Thanks.


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to