From: Pascal B. <pa...@dy...> - 2001-02-16 17:22:06
|
this would also be the way if would (not saying it will) be included: in a seperate file, because it's not crossbrowser available. Pascal Bestebroer pa...@dy... http://www.dynamic-core.net > -----Oorspronkelijk bericht----- > Van: dyn...@li... > [mailto:dyn...@li...]Namens Doug Melvin > Verzonden: vrijdag 16 februari 2001 20:24 > Aan: dyn...@li... > Onderwerp: Re: [Dynapi-Dev] DynAPI new event > > > I would not recommend modifiying events.js > You COULD extend events.js (the same way events.js extends Dynlayer.js) > and put your code in IE_events.js or some such. > > ----- Original Message ----- > From: "Gilles Bayon" <gil...@la...> > To: <dyn...@li...>; > <dyn...@li...> > Sent: Friday, February 16, 2001 5:40 AM > Subject: [Dynapi-Dev] DynAPI new event > > > > 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-Dev mailing list > > Dyn...@li... > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > > --- > Outgoing mail is certified Virus Free by AVG Free Edition > http://www.grisoft.com/html/us_index.cfm > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01 > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > |