new angle prop

Klaus Major kmajor at metascape.org
Wed Apr 24 03:29:01 EDT 2002


Hi lovely list,


there is this wonderful new property for images "angle".

Can someone eventually supply a smart script to do the following ?

Supposed i have an image of an arrow (i actually do :-).

What should i script in a "mousemove"-handler to make that arrow
always point to the cursor ?

I know that i have to calculate the appropriate angle from the images loc
and the mouseloc. But how ?

No, i wont use "mouseloc" but "x,y" that are supplied with the mousemove 
function ;-)

A code-snippet would be heavily appreciated.

Thanks in advance.


Regards

Klaus Major
kmajor at metascape.org




More information about the metacard mailing list