Hi All,
I'm trying to get a layer to pop up relative to the mouse and a
rollover being fired. Here's the code:
DynAPI.onLoad=function() {
lp = new LoadPanel();
lp.setBgColor('FFFFCC');
lp.setSize(120,20);
lpListener=new EventListener(lp);
lpListener.onhilite=function(e) {
target=e.getTarget();
target.moveTo(e.getPageX, e.getPageY);//******This Line I can't
figure out******
}
lp.addEventListener(lpListener);
DynAPI.document.addChild(lp);
lp.setVisible(false);
}
function toolTip(text){
lp.setHTML(text);
lp.setVisible(true);
}
function hilite(button){
lp.invokeEvent("hilite");
toolTip("<CENTER>Buy Me</CENTER>")
}
Everything works if I do something like target.moveTo(200, 200);, but
of course this is not the effect I'm trying to create. I'm obviously
missing something fundamental about the event and how to get the mouse x
& y. Can anyone offer any advice? All help is much appreciated.
Thanks,
Ron
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help