From: Pascal B. <pb...@oi...> - 2000-11-21 11:39:43
|
you can also add an eventlistener to the dyndocument: myListener=new EventListener(DynAPi.document) myListener.onmousemove=function(e) { var o=e.getTarget() // your code here } DynAPI.document.addEventListener(myListener) Note that once you move the mouse over a dynlayer on the document it will not trigger on the document. Pascal Bestebroer pb...@oi... http://www.oibv.com -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens David C. Bros Verzonden: dinsdag 21 november 2000 12:34 Aan: dyn...@li... Onderwerp: [Dynapi-Help] How can I capture de mouse coordinates? Hi all! I recently begin to use the DynAPI2. I want to make an image that follows the mouse cursor. But I don't know how to capture the mouse coordinates. I tried but I only can add an eventlisenter to a DynLayer, and I want an mouseover event triggered anywhere on the document. Thanks! |