Hi,
In short :
Event.observe mousemouse
get position with Event.pointerX and Event.pointerY
position yout element with element.style.top and element.style.left
Regards,
Nico
On 12/23/05, Tarek Ziadé
<ziade.tarek-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hello,
> I have added a fade-in/fade-out floating layer to display infos on Ajax
> request.
> I have used Position to display it on a corner.
>
> Is there a simple way to make this floating layer displayed near the mouse
> and make it follow the mouse movments
>
> Tarek
>
> --
> Tarek Ziadé | www.afpy.org
> Python - why settle for snake oil when you can have the whole snake?
> (Mark Jackson)
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
>
>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs