|
From: Antoine Q. <an...@gr...> - 2001-09-17 08:14:46
|
Yo,
Before I ask on svg-dev, I was wondering if you knew how to use
addEventListener. I think this is the method I need, but I'm not sure.
What I want to do is to add function calls to "onmousemove" and such
events on SVG elements. Right now, I am using
element.setAttribute('onmousemove', 'my_sub(evt)'); which works but is a
pain when you already have a sub handling a "onmousemove" event on that
element (I guess it is just plainly overridden in this example).
So what I would want is a DOM method that just adds the new sub.
antoine
|