I’d like to move mouse in my site browser window like here: http://www.lmsify.com.
How can I do this?
(javascript, flash, activex)
Regards,
LisaM
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They’re not really moving the mouse cursor (you can’t do that with browser-based JavaScript; I can’t speak for Flash and I stay away from ActiveX), they’re moving an image that looks like a mouse cursor (in their case, http://www.lmsify.com/cursor.png).
You can move elements around the page using positioning (absolute, relative) and position properties (
left,top,right,bottom). For instance, here’s how to make an absolutely-positioned version of that cursor jump left and down each time it’s clicked:Live copy
But obviously that’s very crude. Various libraries like jQuery, Prototype + script.aculo.us, YUI, Closure, or any of several others can help you animate elements.